Chromium Code Reviews| Index: include/core/SkPaint.h |
| diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h |
| index 5f02662d715f75b701270577f439ac8c268c2de1..9798317e0c4f4425ddfe392a5d387cf30dfa89fd 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 a descriptor 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* getDescriptor(const SkDeviceProperties* deviceProperties, const SkMatrix*, |
|
bungeman-skia
2015/03/13 14:48:30
This name if a bit misleading. It doesn't return a
|
| + bool ignoreGamma) const; |
| + |
| SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, |
| bool ignoreGamma) const; |