diff options
Diffstat (limited to 'tools/PictureRenderer.cpp')
-rw-r--r-- | tools/PictureRenderer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index e4a69986db..1c31e6865a 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp @@ -161,8 +161,10 @@ SkCanvas* PictureRenderer::setupCanvas(int width, int height) { return NULL; } + uint32_t flags = fUseDFText ? SkGpuDevice::kDFText_Flag : 0; SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(target, - SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType))); + SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType), + flags)); canvas = SkNEW_ARGS(SkCanvas, (device.get())); break; } |