diff options
author | brianosman <brianosman@google.com> | 2016-04-13 13:10:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-13 13:10:14 -0700 |
commit | b461d3457567cf79a3efac3123c00f7afc37fecb (patch) | |
tree | 6b1600d0da18cefc3e29568419354bd68c9e5b41 /gm/textblobgeometrychange.cpp | |
parent | 54ef1a7c95bcc8e507f7d6ccd9a49bd9a110ba90 (diff) |
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
Diffstat (limited to 'gm/textblobgeometrychange.cpp')
-rw-r--r-- | gm/textblobgeometrychange.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/textblobgeometrychange.cpp b/gm/textblobgeometrychange.cpp index b02bc07bf0..87c432f5b7 100644 --- a/gm/textblobgeometrychange.cpp +++ b/gm/textblobgeometrychange.cpp @@ -44,9 +44,9 @@ protected: SkImageInfo info = SkImageInfo::MakeN32Premul(200, 200, canvas->imageInfo().profileType()); SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); - uint32_t allowSRGBInputs = canvas->getProps(&canvasProps) - ? canvasProps.flags() & SkSurfaceProps::kAllowSRGBInputs_Flag : 0; - SkSurfaceProps props(allowSRGBInputs, kUnknown_SkPixelGeometry); + uint32_t gammaCorrect = canvas->getProps(&canvasProps) + ? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; + SkSurfaceProps props(gammaCorrect, kUnknown_SkPixelGeometry); auto surface = canvas->makeSurface(info, &props); if (!surface) { surface = SkSurface::MakeRaster(info, &props); |