Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index 9a0509c488b357a4b04ba1fd7e1d33a289c51006..e7bacab8ac7228b27ad8bfcdb68f0df3854f28e4 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1561,7 +1561,8 @@ private: |
uint32_t SkDraw::scalerContextFlags() const { |
uint32_t flags = SkPaint::kBoostContrast_ScalerContextFlag; |
- if (fDevice->imageInfo().isLinear()) { |
+ // TODO: how should we handle non-srgb, non-linear gamma? |
+ if (!fDevice->imageInfo().gammaCloseToSRGB()) { |
flags |= SkPaint::kFakeGamma_ScalerContextFlag; |
} |
return flags; |