diff options
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
| -rw-r--r-- | libs/hwui/PatchCache.cpp | 4 |
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); |