summaryrefslogtreecommitdiffstats
path: root/graphics/java
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2014-08-08 10:48:22 -0700
committerztenghui <ztenghui@google.com>2014-08-11 10:16:22 -0700
commit66613415966f2f1a43cdaa76560eb6d53a05f15d (patch)
treea64d715a75a0dcf4809195a00b5f90a076f9c659 /graphics/java
parentc8f3003533319502b139d18a450bd71ecfe92d7a (diff)
downloadframeworks_base-66613415966f2f1a43cdaa76560eb6d53a05f15d.zip
frameworks_base-66613415966f2f1a43cdaa76560eb6d53a05f15d.tar.gz
frameworks_base-66613415966f2f1a43cdaa76560eb6d53a05f15d.tar.bz2
Don't double count the left/top when using bitmap cache in VectorDrawable.
bug:16861184 Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/drawable/VectorDrawable.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java
index 2b5823e..c2cec32 100644
--- a/graphics/java/android/graphics/drawable/VectorDrawable.java
+++ b/graphics/java/android/graphics/drawable/VectorDrawable.java
@@ -268,7 +268,8 @@ public class VectorDrawable extends Drawable {
mVectorState.updateCacheStates();
}
- canvas.drawBitmap(bitmap, null, bounds, null);
+ // The bitmap's size is the same as the bounds.
+ canvas.drawBitmap(bitmap, 0, 0, null);
}
canvas.restoreToCount(saveCount);