Index: src/core/SkScalerContext.h |
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h |
index f18d217f6208e6628bd02c2e71a69331e65fc30d..94f71a18cc52082b11f5a624a276f9e398211684 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 |
+ */ |
+ size_t getGammaLUTSize(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, |
bungeman-skia
2014/06/09 15:17:22
Can these be static? I see nothing in the implemen
jvanverth1
2014/06/09 17:26:13
Done.
|
+ 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(). |
+ */ |
+ void getGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, |
+ void* data); |
+ |
#ifdef SK_BUILD_FOR_ANDROID |
unsigned getBaseGlyphCount(SkUnichar charCode); |