blob: c1b68eb95559036d365d8b76b0cd2180f0849841 [file] [log] [blame]
Kevin Lubick9b028372023-10-05 15:04:54 -04001/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GpuToolUtils_DEFINED
9#define GpuToolUtils_DEFINED
10
11#include "include/core/SkRefCnt.h"
12#include "include/core/SkTypes.h"
13#include "include/private/base/SkDebug.h"
14
15class SkCanvas;
16class SkImage;
17
18#if defined(SK_GRAPHITE)
19namespace skgpu::graphite {
20struct RecorderOptions;
21}
22#endif
23
24namespace ToolUtils {
25
26sk_sp<SkImage> MakeTextureImage(SkCanvas* canvas, sk_sp<SkImage> orig);
27
28#if defined(SK_GRAPHITE)
29skgpu::graphite::RecorderOptions CreateTestingRecorderOptions();
30#endif
31
32} // namespace ToolUtils
33
34#endif