Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index f1a947381b60f4f2bd8f124db61f59a8143f79f6..61a5b62ebfe8c41957d976e78dcdf97a5b421d05 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -151,13 +151,15 @@ static bool needs_deep_copy(const SkPaint& paint) { |
* getAnnotation() |
* paint.getColorFilter() |
* getXfermode() |
+ * getPathEffect() |
+ * getMaskFilter() |
*/ |
- return paint.getPathEffect() || |
- paint.getShader() || |
- paint.getMaskFilter() || |
+ return paint.getShader() || |
+#ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API |
paint.getRasterizer() || |
- paint.getLooper() || |
+#endif |
+ paint.getLooper() || // needs to hide its addLayer... |
paint.getImageFilter(); |
} |