Index: src/core/SkGlyphCache.h |
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h |
index 2b5262ba5eb914446d507dff99b7636eeb5450ec..9ae47c6207f281ede60c78cb4049e89e9b47cec8 100644 |
--- a/src/core/SkGlyphCache.h |
+++ b/src/core/SkGlyphCache.h |
@@ -285,13 +285,15 @@ public: |
SkAutoGlyphCache(const SkPaint& paint, |
const SkSurfaceProps* surfaceProps, |
const SkMatrix* matrix) |
- : INHERITED(paint.detachCache(surfaceProps, SkPaint::FakeGamma::On, matrix)) |
+ : INHERITED(paint.detachCache(surfaceProps, |
+ SkPaint::kFakeGammaAndBoostContrast_ScalerContextFlags, |
+ matrix)) |
{} |
SkAutoGlyphCache(const SkPaint& paint, |
const SkSurfaceProps* surfaceProps, |
- SkPaint::FakeGamma fakeGamma, |
+ uint32_t scalerContextFlags, |
const SkMatrix* matrix) |
- : INHERITED(paint.detachCache(surfaceProps, fakeGamma, matrix)) |
+ : INHERITED(paint.detachCache(surfaceProps, scalerContextFlags, matrix)) |
{} |
private: |
using INHERITED = std::unique_ptr<SkGlyphCache, SkGlyphCache::AttachCacheFunctor>; |
@@ -302,7 +304,7 @@ public: |
SkAutoGlyphCacheNoGamma(const SkPaint& paint, |
const SkSurfaceProps* surfaceProps, |
const SkMatrix* matrix) |
- : SkAutoGlyphCache(paint, surfaceProps, SkPaint::FakeGamma::Off, matrix) |
+ : SkAutoGlyphCache(paint, surfaceProps, SkPaint::kNone_ScalerContextFlags, matrix) |
{} |
}; |
#define SkAutoGlyphCache(...) SK_REQUIRE_LOCAL_VAR(SkAutoGlyphCache) |