Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index f67395970bc6615981db995a99c6e1adabc97eb9..9b6b88386339d24a41d3c2f2bd5a3db4115c0dc5 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -101,6 +101,10 @@ SkPaint::SkPaint(const SkPaint& src) { |
SkSafeRef(fLooper); |
SkSafeRef(fImageFilter); |
SkSafeRef(fAnnotation); |
+ |
+#ifdef SK_BUILD_FOR_ANDROID |
+ new (&fPaintOptionsAndroid) SkPaintOptionsAndroid(src.fPaintOptionsAndroid); |
+#endif |
} |
SkPaint::~SkPaint() { |
@@ -915,12 +919,12 @@ class SkAutoRestorePaintTextSizeAndFrame { |
public: |
SkAutoRestorePaintTextSizeAndFrame(const SkPaint* paint) |
: fPaint((SkPaint*)paint) { |
- fTextSize = paint->getTextSize(); |
- fStyle = paint->getStyle(); |
- fPaint->setStyle(SkPaint::kFill_Style); |
#ifdef SK_BUILD_FOR_ANDROID |
fGenerationID = fPaint->getGenerationID(); |
#endif |
+ fTextSize = paint->getTextSize(); |
+ fStyle = paint->getStyle(); |
+ fPaint->setStyle(SkPaint::kFill_Style); |
} |
~SkAutoRestorePaintTextSizeAndFrame() { |