diff options
Diffstat (limited to 'src/core/SkScalerContext.h')
-rw-r--r-- | src/core/SkScalerContext.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h index f18d217f62..af83685eb6 100644 --- a/src/core/SkScalerContext.h +++ b/src/core/SkScalerContext.h @@ -184,6 +184,17 @@ public: void getPath(const SkGlyph&, SkPath*); void getFontMetrics(SkPaint::FontMetrics*); + /** Return the size in bytes of the associated gamma lookup table + */ + static size_t GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, + int* width, int* height); + + /** Get the associated gamma lookup table. The 'data' pointer must point to pre-allocated + memory, with size in bytes greater than or equal to the return value of getGammaLUTSize(). + */ + static void GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, + void* data); + #ifdef SK_BUILD_FOR_ANDROID unsigned getBaseGlyphCount(SkUnichar charCode); |