Index: include/core/SkPaint.h |
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h |
index 5f02662d715f75b701270577f439ac8c268c2de1..bb5eff4d91cc47084e3e92ad5145e7c6a1d3e367 100644 |
--- a/include/core/SkPaint.h |
+++ b/include/core/SkPaint.h |
@@ -20,6 +20,7 @@ |
class SkAnnotation; |
class SkAutoGlyphCache; |
class SkColorFilter; |
+class SkData; |
class SkDescriptor; |
struct SkDeviceProperties; |
class SkReadBuffer; |
@@ -1080,6 +1081,13 @@ private: |
SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, |
int* count, SkRect* bounds) const; |
+ /* |
+ * Allocs an SkDescriptor on the heap and return it to the caller as a refcnted |
+ * SkData. Caller is responsible for managing the lifetime of this object. |
+ */ |
+ const SkData* getScalerContextDescriptor(const SkDeviceProperties* deviceProperties, |
+ const SkMatrix*, bool ignoreGamma) const; |
+ |
SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, |
bool ignoreGamma) const; |