8#ifndef SurfaceManager_DEFINED
9#define SurfaceManager_DEFINED
46 static std::unique_ptr<SurfaceManager>
FromConfig(std::string config,
63 std::string gpuName)
const;
69 std::string gpuName)
const;
76 SK_ABORT(
"This SurfaceManager implementation does not support the requested operation.");
85 : fConfig(config), fColorInfo(colorInfo), fCpuOrGpu(cpuOrGpu) {}
92 std::map<std::string, std::string> getCpuOrGpuKeyValuePairs(std::string cpuName,
93 std::string gpuName)
const;
#define SK_ABORT(message,...)
SurfaceManager(std::string config, SkColorInfo colorInfo, CpuOrGpu cpuOrGpu)
CpuOrGpu isCpuOrGpuBound() const
static std::unique_ptr< SurfaceManager > FromConfig(std::string config, SurfaceOptions surfaceOptions)
std::map< std::string, std::string > getGoldKeyValuePairs(std::string cpuName, std::string gpuName) const
std::map< std::string, std::string > getPerfKeyValuePairs(std::string cpuName, std::string gpuName) const
virtual sk_gpu_test::ContextInfo * getGaneshContextInfo()
virtual sk_sp< SkSurface > getSurface()=0
virtual ~SurfaceManager()=default
Dart_NativeFunction function
std::function< void(skgpu::graphite::ContextOptions *)> modifyGraphiteContextOptions
std::function< void(GrContextOptions *)> modifyGrContextOptions