aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-10 21:57:32 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-10 21:57:32 +0000
commite9085b1d0f37c76894e882c7a9ffb83bd952be5b (patch)
treeb9fc1fb567cc4b47ef28d6b6822139a54cddcecc /src
parent76b12b74ed911e0f84d2f8cf59adb6e740398f67 (diff)
remove two more effects that are now immutable
BUG=skia: R=scroggo@google.com, dominikg@chromium.org Author: reed@google.com Review URL: https://codereview.chromium.org/233753002 git-svn-id: http://skia.googlecode.com/svn/trunk@14142 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPicturePlayback.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index f1a947381b..61a5b62ebf 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();
}