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

Unified Diff: src/core/SkDraw.cpp

Issue 2086583002: update callers to not use SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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: src/core/SkDraw.cpp
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index 9a0509c488b357a4b04ba1fd7e1d33a289c51006..6c2b03a966757f336ec03a1c7f45eea3489a55ff 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -1561,7 +1561,7 @@ private:
uint32_t SkDraw::scalerContextFlags() const {
uint32_t flags = SkPaint::kBoostContrast_ScalerContextFlag;
- if (fDevice->imageInfo().isLinear()) {
+ if (!fDevice->imageInfo().gammaCloseToSRGB()) {
msarett 2016/06/20 19:41:05 !gammaCloseToSRGB() can mean "linear" or "wacky".
reed1 2016/06/20 21:05:53 Will mark this with a TODO
flags |= SkPaint::kFakeGamma_ScalerContextFlag;
}
return flags;

Powered by Google App Engine
This is Rietveld 408576698