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

Unified Diff: gm/textblobrandomfont.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/textblobrandomfont.cpp
diff --git a/gm/textblobrandomfont.cpp b/gm/textblobrandomfont.cpp
index 285ba5b92348a5dbe6fb09a6d77d95aeffdd5aed..267fe7a320c79e77d2b98434698d0cc4c44a066b 100644
--- a/gm/textblobrandomfont.cpp
+++ b/gm/textblobrandomfont.cpp
@@ -103,9 +103,9 @@ protected:
SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight,
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) {
SkPaint paint;
« no previous file with comments | « gm/textblobmixedsizes.cpp ('k') | include/core/SkSurfaceProps.h » ('j') | include/gpu/GrPaint.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698