Index: gm/dftext.cpp |
diff --git a/gm/dftext.cpp b/gm/dftext.cpp |
index 8ab2df71bab38cc7a1f1200c603cf9c96ad10d8e..f1b972892ec6a63e49b67dbf5c814c5ee28951ae 100644 |
--- a/gm/dftext.cpp |
+++ b/gm/dftext.cpp |
@@ -43,10 +43,7 @@ protected: |
SkISize size = onISize(); |
SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), kPremul_SkAlphaType, |
sk_ref_sp(inputCanvas->imageInfo().colorSpace())); |
- SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
- uint32_t gammaCorrect = inputCanvas->getProps(&canvasProps) |
- ? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; |
- SkSurfaceProps props(SkSurfaceProps::kUseDeviceIndependentFonts_Flag | gammaCorrect, |
+ SkSurfaceProps props(SkSurfaceProps::kUseDeviceIndependentFonts_Flag, |
SkSurfaceProps::kLegacyFontHost_InitType); |
auto surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, &props)); |
SkCanvas* canvas = surface ? surface->getCanvas() : inputCanvas; |