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

Unified Diff: src/core/SkDraw.cpp

Issue 2184443002: Fix F16 raster text masks. We don't want fake gamma in that case. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDraw.cpp
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp
index 7787a28249479430c03d78fb31150f04be0cc7a5..ce4c4081f22d1ae00dfc1ba82a0b7b8765f1aad8 100644
--- a/src/core/SkDraw.cpp
+++ b/src/core/SkDraw.cpp
@@ -1585,8 +1585,7 @@ private:
uint32_t SkDraw::scalerContextFlags() const {
uint32_t flags = SkPaint::kBoostContrast_ScalerContextFlag;
- // TODO: how should we handle non-srgb, non-linear gamma?
- if (!fDevice->imageInfo().gammaCloseToSRGB()) {
+ if (!SkImageInfoIsGammaCorrect(fDevice->imageInfo())) {
flags |= SkPaint::kFakeGamma_ScalerContextFlag;
}
return flags;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698