Index: gm/textblobrandomfont.cpp |
diff --git a/gm/textblobrandomfont.cpp b/gm/textblobrandomfont.cpp |
index 58f0dc6bd6b790eccd2c5aee3b20b4d481d40f05..2e8249fc2c1a0aff51ae9b0219aa4f93c9d4f320 100644 |
--- a/gm/textblobrandomfont.cpp |
+++ b/gm/textblobrandomfont.cpp |
@@ -99,10 +99,7 @@ protected: |
SkImageInfo info = SkImageInfo::MakeN32(kWidth, kHeight, kPremul_SkAlphaType, |
sk_ref_sp(canvas->imageInfo().colorSpace())); |
- SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); |
- uint32_t gammaCorrect = canvas->getProps(&canvasProps) |
- ? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; |
- SkSurfaceProps props(gammaCorrect, kUnknown_SkPixelGeometry); |
+ SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
auto surface(canvas->makeSurface(info, &props)); |
if (surface) { |
SkPaint paint; |