diff options
Diffstat (limited to 'dm/DMGpuSupport.h')
-rw-r--r-- | dm/DMGpuSupport.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h index a552d69f70..1ed00953c1 100644 --- a/dm/DMGpuSupport.h +++ b/dm/DMGpuSupport.h @@ -28,19 +28,6 @@ namespace DM { static const bool kGPUDisabled = false; -static inline sk_sp<SkSurface> NewGpuSurface( - sk_gpu_test::GrContextFactory* grFactory, - sk_gpu_test::GrContextFactory::ContextType type, - sk_gpu_test::GrContextFactory::ContextOverrides overrides, - SkImageInfo info, - int samples, - bool useDIText) { - uint32_t flags = useDIText ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag : 0; - SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType); - return SkSurface::MakeRenderTarget(grFactory->get(type, overrides), SkBudgeted::kNo, - info, samples, &props); -} - } // namespace DM #else// !SK_SUPPORT_GPU @@ -60,6 +47,11 @@ public: void dumpGpuStats(SkString*) const {} }; +class SkCommandLineConfigGpu { +public: + enum class SurfType; +}; + namespace sk_gpu_test { class GrContextFactory { public: @@ -93,15 +85,6 @@ namespace DM { static const bool kGPUDisabled = true; -static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*, - sk_gpu_test::GrContextFactory::ContextType, - sk_gpu_test::GrContextFactory::ContextOverrides, - SkImageInfo, - int, - bool) { - return nullptr; -} - } // namespace DM #endif//SK_SUPPORT_GPU |