Flutter Engine
The Flutter Engine
GpuToolUtils.h
Go to the documentation of this file.
1/*
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
14
15class SkCanvas;
16class SkImage;
17
18#if defined(SK_GRAPHITE)
19namespace skgpu::graphite {
20struct RecorderOptions;
21}
22#endif
23
24namespace ToolUtils {
25
27
28#if defined(SK_GRAPHITE)
29skgpu::graphite::RecorderOptions CreateTestingRecorderOptions();
30#endif
31
32} // namespace ToolUtils
33
34#endif
sk_sp< SkImage > MakeTextureImage(SkCanvas *canvas, sk_sp< SkImage > orig)