Index: include/core/SkPaint.h |
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h |
index a73a46a2c6d3b6e612cdbb0eb67fe826d2cce104..35a502d6b82ee09a3b3cb63096e0b567fedb91ac 100644 |
--- a/include/core/SkPaint.h |
+++ b/include/core/SkPaint.h |
@@ -14,6 +14,9 @@ |
#include "SkColor.h" |
#include "SkDrawLooper.h" |
#include "SkXfermode.h" |
+#ifdef SK_BUILD_FOR_ANDROID |
+#include "SkPaintOptionsAndroid.h" |
+#endif |
class SkAnnotation; |
class SkAutoGlyphCache; |
@@ -860,6 +863,11 @@ public: |
/** Returns the base glyph count for the strike associated with this paint |
*/ |
unsigned getBaseGlyphCount(SkUnichar text) const; |
+ |
+ const SkPaintOptionsAndroid& getPaintOptionsAndroid() const { |
+ return fPaintOptionsAndroid; |
+ } |
+ void setPaintOptionsAndroid(const SkPaintOptionsAndroid& options); |
#endif |
// returns true if the paint's settings (e.g. xfermode + alpha) resolve to |
@@ -990,6 +998,8 @@ private: |
friend class SkTextToPathIter; |
#ifdef SK_BUILD_FOR_ANDROID |
+ SkPaintOptionsAndroid fPaintOptionsAndroid; |
+ |
// In order for the == operator to work properly this must be the last field |
// in the struct so that we can do a memcmp to this field's offset. |
uint32_t fGenerationID; |