Index: dm/DMGpuSupport.h |
diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h |
index af6270dfc3525be9605de25189f81c01694ae864..21e59066bc8fc5435d57fbdc01c3ee77e9adc0e1 100644 |
--- a/dm/DMGpuSupport.h |
+++ b/dm/DMGpuSupport.h |
@@ -21,8 +21,11 @@ static inline SkSurface* NewGpuSurface(GrContextFactory* grFactory, |
GrContextFactory::GLContextType type, |
GrGLStandard gpuAPI, |
SkImageInfo info, |
- int samples) { |
- return SkSurface::NewRenderTarget(grFactory->get(type, gpuAPI), info, samples, NULL); |
+ int samples, |
+ bool useDFText) { |
+ uint32_t flags = useDFText ? SkSurfaceProps::kUseDistanceFieldFonts_Flag : 0; |
+ SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType); |
+ return SkSurface::NewRenderTarget(grFactory->get(type, gpuAPI), info, samples, &props); |
} |
} // namespace DM |
@@ -60,7 +63,8 @@ static inline SkSurface* NewGpuSurface(GrContextFactory*, |
GrContextFactory::GLContextType, |
GrGLStandard, |
SkImageInfo, |
- int) { |
+ int, |
+ bool) { |
return NULL; |
} |