Index: gm/dftext.cpp |
diff --git a/gm/dftext.cpp b/gm/dftext.cpp |
index 65e64a90937b993ad6fd807f69cbcaa007431e28..dccc62adb46a1e3b08ebe76ac7d971a45b17337b 100755 |
--- a/gm/dftext.cpp |
+++ b/gm/dftext.cpp |
@@ -48,8 +48,9 @@ protected: |
#if SK_SUPPORT_GPU |
GrContext* ctx = inputCanvas->getGrContext(); |
SkImageInfo info = SkImageInfo::MakeN32Premul(onISize()); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, info, 0, |
- SkSurface::kDistanceField_TextRenderMode)); |
+ SkSurfaceProps props(SkSurfaceProps::kUseDistanceFieldFonts_Flag, |
+ SkSurfaceProps::kLegacyFontHost_InitType); |
+ SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, info, 0, &props)); |
SkCanvas* canvas = surface->getCanvas(); |
#else |
SkCanvas* canvas = inputCanvas; |