summaryrefslogtreecommitdiff
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-09-26 18:40:37 -0700
committer Romain Guy <romainguy@google.com> 2010-09-26 18:40:37 -0700
commit4aa90573bbf86db0d33a3a790c5dbd0d93b95cfe (patch)
tree65cedf6266b9f40b7227334f9e50d8d86f2340bf /libs/hwui/PatchCache.cpp
parentcc64c5dbfbf11f513f60a82ee590f62dfb9a1565 (diff)
Adding display lists to the GL renderer (checkpoint.)
Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index a7c0ccef89f8..f2cf5485a09f 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -57,9 +57,7 @@ void PatchCache::clear() {
mCache.setOnEntryRemovedListener(NULL);
}
-Patch* PatchCache::get(const Res_png_9patch* patch) {
- const uint32_t width = patch->numXDivs;
- const uint32_t height = patch->numYDivs;
+Patch* PatchCache::get(uint32_t width, uint32_t height) {
const PatchDescription description(width, height);
Patch* mesh = mCache.get(description);