summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.cpp
diff options
context:
space:
mode:
author Derek Sollenberger <djsollen@google.com> 2015-01-14 15:06:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-01-14 15:06:27 +0000
commitdbf22ccd92dc95e7c93c0485be4bcfb5c966578a (patch)
tree518180a2fe9cbfcbfc47f6e51f85b2d4008e9974 /libs/hwui/TextureCache.cpp
parentb2b98a00e1867509107e4b474ba45150d27ade0a (diff)
parent3d4eed7f1aa99401dabe2e45b82f98fb4fc2d754 (diff)
Merge "Update HWUI to store its own SkBitmap objects"
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r--libs/hwui/TextureCache.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp
index 7dc248000a14..b4d3708f0fd3 100644
--- a/libs/hwui/TextureCache.cpp
+++ b/libs/hwui/TextureCache.cpp
@@ -233,11 +233,9 @@ Texture* TextureCache::getTransient(const SkBitmap* bitmap) {
return texture;
}
-void TextureCache::releaseTexture(const SkBitmap* bitmap) {
- if (!bitmap || !bitmap->pixelRef()) return;
-
+void TextureCache::releaseTexture(uint32_t pixelRefStableID) {
Mutex::Autolock _l(mLock);
- mGarbage.push(bitmap->pixelRef()->getStableID());
+ mGarbage.push(pixelRefStableID);
}
void TextureCache::clearGarbage() {