Index: gm/textblobmixedsizes.cpp |
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp |
index e7eda399fc0b38fba8ec59aeed9fd259400bcba4..9e57c2fe975245d56b7563d02757da0079ed45bd 100644 |
--- a/gm/textblobmixedsizes.cpp |
+++ b/gm/textblobmixedsizes.cpp |
@@ -106,9 +106,9 @@ protected: |
SkImageInfo info = SkImageInfo::MakeN32Premul(onISize(), |
inputCanvas->imageInfo().profileType()); |
SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
- uint32_t allowSRGBInputs = inputCanvas->getProps(&canvasProps) |
- ? canvasProps.flags() & SkSurfaceProps::kAllowSRGBInputs_Flag : 0; |
- SkSurfaceProps props(SkSurfaceProps::kUseDeviceIndependentFonts_Flag | allowSRGBInputs, |
+ uint32_t gammaCorrect = inputCanvas->getProps(&canvasProps) |
+ ? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; |
+ SkSurfaceProps props(SkSurfaceProps::kUseDeviceIndependentFonts_Flag | gammaCorrect, |
SkSurfaceProps::kLegacyFontHost_InitType); |
surface = SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, 0, &props); |
canvas = surface.get() ? surface->getCanvas() : inputCanvas; |