From b461d3457567cf79a3efac3123c00f7afc37fecb Mon Sep 17 00:00:00 2001 From: brianosman Date: Wed, 13 Apr 2016 13:10:14 -0700 Subject: Rename lots of things from 'sRGB' to 'GammaCorrect', where appropriate Trying to be much more explicit about where we really mean sRGB as a format, and where we mean gamma-correct, as in: "not legacy behavior". Most of the changes to rendering behavior are dependent on the latter, so let's be precise. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1884873006 Review URL: https://codereview.chromium.org/1884873006 --- dm/DMGpuSupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dm') diff --git a/dm/DMGpuSupport.h b/dm/DMGpuSupport.h index 173befd070..742ec189a5 100644 --- a/dm/DMGpuSupport.h +++ b/dm/DMGpuSupport.h @@ -37,7 +37,7 @@ static inline sk_sp NewGpuSurface( bool useDIText) { uint32_t flags = useDIText ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag : 0; if (SkImageInfoIsGammaCorrect(info)) { - flags |= SkSurfaceProps::kAllowSRGBInputs_Flag; + flags |= SkSurfaceProps::kGammaCorrect_Flag; } SkSurfaceProps props(flags, SkSurfaceProps::kLegacyFontHost_InitType); return SkSurface::MakeRenderTarget(grFactory->get(type, options), SkBudgeted::kNo, -- cgit v1.2.3