Adding display lists to the GL renderer (checkpoint.)
Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index a7c0cce..f2cf548 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -57,9 +57,7 @@
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);