From 3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 Mon Sep 17 00:00:00 2001 From: brianosman Date: Tue, 26 Jul 2016 11:36:05 -0700 Subject: Remove SkSurfaceProps gamma-correctness flag entirely. This is no longer required - gamma-correctness is now just based on the presence or absence of a color space. Public API change is just removal of (unused) flag. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2188463002 TBR=bsalomon@google.com Review-Url: https://codereview.chromium.org/2188463002 --- gm/textblobrandomfont.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gm/textblobrandomfont.cpp') diff --git a/gm/textblobrandomfont.cpp b/gm/textblobrandomfont.cpp index 58f0dc6bd6..2e8249fc2c 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; -- cgit v1.2.3