summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-01-09 14:15:58 -0800
committerRomain Guy <romainguy@google.com>2013-01-09 14:15:58 -0800
commit5341cead27070656458750a789ba211a505b57b5 (patch)
tree4887e2e3289373e24a6496427df4597b5b28f458 /libs/hwui/PatchCache.cpp
parent16ad17705eb22bb02a551cddd68f65b8addaa4d6 (diff)
downloadframeworks_base-5341cead27070656458750a789ba211a505b57b5.zip
frameworks_base-5341cead27070656458750a789ba211a505b57b5.tar.gz
frameworks_base-5341cead27070656458750a789ba211a505b57b5.tar.bz2
Cleanup 9patch mesh matching code
Bug #7970966 The bug described in #7970966 should normally never happen but just in case, change the detection code to be more robust. Change-Id: I7040a6087590e34abe8803cb8f83f051d77f3944
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 9702c3d..8ee8f5c 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -97,7 +97,7 @@ Patch* PatchCache::get(const float bitmapWidth, const float bitmapHeight,
}
mCache.add(description, mesh);
- } else if (!mesh->matches(xDivs, yDivs, colorKey)) {
+ } else if (!mesh->matches(xDivs, yDivs, colorKey, transparentQuads)) {
PATCH_LOGD("Patch mesh does not match, refreshing vertices");
mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight);
}