summaryrefslogtreecommitdiff
path: root/libs/hwui/VectorDrawable.cpp
diff options
context:
space:
mode:
authorTenghui Zhu <ztenghui@google.com>2016-12-02 23:16:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-12-02 23:16:37 +0000
commitf2237741c3a0e6e6a0f814711bd42a7d071616f1 (patch)
tree68a8f9d64546833bef9929706d1e335a58d5aaef /libs/hwui/VectorDrawable.cpp
parent11e9cec1385fa6b5ad9c4a61d56696abc931514a (diff)
parent037fc1815b0f69b0b24e68e16281b490bdeb1d56 (diff)
Merge "Recreate the bitmap cache when it is smaller than needed"
Diffstat (limited to 'libs/hwui/VectorDrawable.cpp')
-rw-r--r--libs/hwui/VectorDrawable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/VectorDrawable.cpp b/libs/hwui/VectorDrawable.cpp
index 97b7dd722e08..f4ffa7a2aaca 100644
--- a/libs/hwui/VectorDrawable.cpp
+++ b/libs/hwui/VectorDrawable.cpp
@@ -574,7 +574,7 @@ bool Tree::allocateBitmapIfNeeded(Cache& cache, int width, int height) {
}
bool Tree::canReuseBitmap(Bitmap* bitmap, int width, int height) {
- return bitmap && width == bitmap->width() && height == bitmap->height();
+ return bitmap && width <= bitmap->width() && height <= bitmap->height();
}
void Tree::onPropertyChanged(TreeProperties* prop) {