Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1209)

Unified Diff: src/core/SkPicturePlayback.cpp

Issue 233753002: remove two more effects that are now immutable (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698