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 11 #include "include/core/SkRefCnt.h" 12 #include "include/core/SkTypes.h" 13 #include "include/private/base/SkDebug.h" 14 15 class SkCanvas; 16 class SkImage; 17 18 #if defined(SK_GRAPHITE) 19 namespace skgpu::graphite { 20 struct RecorderOptions; 21 } 22 #endif 23 24 namespace ToolUtils { 25 26 sk_sp<SkImage> MakeTextureImage(SkCanvas* canvas, sk_sp<SkImage> orig); 27 28 #if defined(SK_GRAPHITE) 29 skgpu::graphite::RecorderOptions CreateTestingRecorderOptions(); 30 #endif 31 32 } // namespace ToolUtils 33 34 #endif 35