diff options
author | Chris Craik <ccraik@google.com> | 2015-03-18 21:36:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-18 21:36:56 +0000 |
commit | 43c410eaacf7d287c6c3f5621e6e0b96501004dc (patch) | |
tree | ef836af43be15a316e3d730914f1ace60e398fe6 /packages/SystemUI | |
parent | dd0d4b75794081e873977a5480d3d1dbff270d05 (diff) | |
parent | f6829a0a618b4523619ec53c996b04d67e3186b9 (diff) | |
download | frameworks_base-43c410eaacf7d287c6c3f5621e6e0b96501004dc.zip frameworks_base-43c410eaacf7d287c6c3f5621e6e0b96501004dc.tar.gz frameworks_base-43c410eaacf7d287c6c3f5621e6e0b96501004dc.tar.bz2 |
Merge "Remove HardwareCanvas"
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java index a3ebb09..3f63b5f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java @@ -26,7 +26,7 @@ import android.graphics.ColorFilter; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphics.drawable.Drawable; -import android.view.HardwareCanvas; +import android.view.DisplayListCanvas; import android.view.RenderNodeAnimator; import android.view.View; import android.view.animation.Interpolator; @@ -106,7 +106,7 @@ public class KeyButtonRipple extends Drawable { public void draw(Canvas canvas) { mSupportHardware = canvas.isHardwareAccelerated(); if (mSupportHardware) { - drawHardware((HardwareCanvas) canvas); + drawHardware((DisplayListCanvas) canvas); } else { drawSoftware(canvas); } @@ -131,7 +131,7 @@ public class KeyButtonRipple extends Drawable { return getBounds().width() > getBounds().height(); } - private void drawHardware(HardwareCanvas c) { + private void drawHardware(DisplayListCanvas c) { if (mDrawingHardwareGlow) { c.drawRoundRect(mLeftProp, mTopProp, mRightProp, mBottomProp, mRxProp, mRyProp, mPaintProp); |