Index: gm/textblobmixedsizes.cpp |
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp |
index 8fdf558206136383eef6ceda8a8f438806747f71..4e3f0eaeb58f4c6d11e2aa7fd8e949276f5d4e47 100644 |
--- a/gm/textblobmixedsizes.cpp |
+++ b/gm/textblobmixedsizes.cpp |
@@ -106,10 +106,7 @@ protected: |
sk_sp<SkColorSpace> colorSpace = sk_ref_sp(inputCanvas->imageInfo().colorSpace()); |
SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), |
kPremul_SkAlphaType, 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); |
surface = SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, &props); |
canvas = surface.get() ? surface->getCanvas() : inputCanvas; |