diff options
author | Chris Craik <ccraik@google.com> | 2014-04-24 00:08:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-24 00:08:09 +0000 |
commit | 717f39c7d98c7e4b08f7bb88102c720cb8990004 (patch) | |
tree | 6a8ab946315d05b15836f92c2f995de416d040ad /graphics | |
parent | f4201925d9e3d01e7a2a1db07c8186e4ba9a0fb5 (diff) | |
parent | 3f085429fd47ebd32ac2463b3eae2a5a6c17be25 (diff) | |
download | frameworks_base-717f39c7d98c7e4b08f7bb88102c720cb8990004.zip frameworks_base-717f39c7d98c7e4b08f7bb88102c720cb8990004.tar.gz frameworks_base-717f39c7d98c7e4b08f7bb88102c720cb8990004.tar.bz2 |
Merge "Clip TouchFeedbackDrawable effect to receiver Outline"
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java index 5101e35..3b9d513 100644 --- a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java +++ b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java @@ -435,8 +435,7 @@ public class TouchFeedbackDrawable extends LayerDrawable { // first. This will merge SRC_OVER (directly) onto the canvas. if (!projected && rippleRestoreCount < 0) { rippleRestoreCount = canvas.saveLayer(bounds.left, bounds.top, - bounds.right, bounds.bottom, null, 0); - canvas.clipRect(bounds); + bounds.right, bounds.bottom, null); } drewRipples |= ripple.draw(canvas, getRipplePaint()); @@ -454,7 +453,7 @@ public class TouchFeedbackDrawable extends LayerDrawable { if (drewRipples && !projected && rippleRestoreCount >= 0) { final PorterDuffXfermode xfermode = mState.getTintXfermode(); canvas.saveLayer(bounds.left, bounds.top, - bounds.right, bounds.bottom, getMaskingPaint(xfermode), 0); + bounds.right, bounds.bottom, getMaskingPaint(xfermode)); } Drawable mask = null; @@ -472,7 +471,7 @@ public class TouchFeedbackDrawable extends LayerDrawable { if (mask != null && drewRipples) { // TODO: This will also mask the lower layer, which is bad. canvas.saveLayer(bounds.left, bounds.top, bounds.right, - bounds.bottom, getMaskingPaint(DST_IN), 0); + bounds.bottom, getMaskingPaint(DST_IN)); mask.draw(canvas); } |