Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: gm/textblobgeometrychange.cpp

Issue 1884873006: Rename lots of things from 'sRGB' to 'GammaCorrect', where appropriate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gm/textblobgeometrychange.cpp
diff --git a/gm/textblobgeometrychange.cpp b/gm/textblobgeometrychange.cpp
index b02bc07bf090bf50f9b1ce03656c607d74572a88..87c432f5b740ea958103c0d422c90fdeb645087d 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);
« no previous file with comments | « gm/surface.cpp ('k') | gm/textblobmixedsizes.cpp » ('j') | include/gpu/GrPaint.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698