diff options
Diffstat (limited to 'dm/DMGpuSupport.h')
-rw-r--r-- | dm/DMGpuSupport.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h index 2cfdbdcc2c..627dc4fda3 100644 --- a/dm/DMGpuSupport.h +++ b/dm/DMGpuSupport.h @@ -31,13 +31,14 @@ static const bool kGPUDisabled = false; static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory, GrContextFactory::GLContextType type, GrContextFactory::GLContextOptions options, + GrGLStandard gpuAPI, SkImageInfo info, int samples, bool useDIText) { uint32_t flags = useDIText ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag : 0; SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType); - return SkSurface::NewRenderTarget(grFactory->get(type, options), SkSurface::kNo_Budgeted, - info, samples, &props); + return SkSurface::NewRenderTarget(grFactory->get(type, gpuAPI, options), + SkSurface::kNo_Budgeted, info, samples, &props); } } // namespace DM @@ -91,6 +92,7 @@ static const bool kGPUDisabled = true; static inline SkSurface* NewGpuSurface(GrContextFactory*, GrContextFactory::GLContextType, GrContextFactory::GLContextOptions, + GrGLStandard, SkImageInfo, int, bool) { |