diff options
| author | Derek Sollenberger <djsollen@google.com> | 2014-12-09 22:18:33 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-09 22:18:33 +0000 |
| commit | 1f78b3364f0e39db912d898187bed0195d9319cd (patch) | |
| tree | b46571ae4b3d0665085c067aa88768bc4c48c2e7 /libs/hwui | |
| parent | 389baa395125d5ae5aac3b9d2f98457dde09da26 (diff) | |
| parent | 497499b1eb76726090ea46dcfc5b8ab0221cd447 (diff) | |
| download | frameworks_base-1f78b3364f0e39db912d898187bed0195d9319cd.zip frameworks_base-1f78b3364f0e39db912d898187bed0195d9319cd.tar.gz frameworks_base-1f78b3364f0e39db912d898187bed0195d9319cd.tar.bz2 | |
am 497499b1: am 04c2bf4f: Merge "Remove unnecessary/erroneous reference counting" into lmp-mr1-dev
* commit '497499b1eb76726090ea46dcfc5b8ab0221cd447':
Remove unnecessary/erroneous reference counting
Diffstat (limited to 'libs/hwui')
| -rw-r--r-- | libs/hwui/ResourceCache.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/hwui/ResourceCache.cpp b/libs/hwui/ResourceCache.cpp index 717ce9a..31bd637 100644 --- a/libs/hwui/ResourceCache.cpp +++ b/libs/hwui/ResourceCache.cpp @@ -68,8 +68,6 @@ void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) } void ResourceCache::incrementRefcount(const SkBitmap* bitmapResource) { - bitmapResource->pixelRef()->globalRef(); - SkSafeRef(bitmapResource->getColorTable()); incrementRefcount((void*) bitmapResource, kBitmap); } @@ -92,8 +90,6 @@ void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourc } void ResourceCache::incrementRefcountLocked(const SkBitmap* bitmapResource) { - bitmapResource->pixelRef()->globalRef(); - SkSafeRef(bitmapResource->getColorTable()); incrementRefcountLocked((void*) bitmapResource, kBitmap); } @@ -111,8 +107,6 @@ void ResourceCache::decrementRefcount(void* resource) { } void ResourceCache::decrementRefcount(const SkBitmap* bitmapResource) { - bitmapResource->pixelRef()->globalUnref(); - SkSafeUnref(bitmapResource->getColorTable()); decrementRefcount((void*) bitmapResource); } @@ -138,8 +132,6 @@ void ResourceCache::decrementRefcountLocked(void* resource) { } void ResourceCache::decrementRefcountLocked(const SkBitmap* bitmapResource) { - bitmapResource->pixelRef()->globalUnref(); - SkSafeUnref(bitmapResource->getColorTable()); decrementRefcountLocked((void*) bitmapResource); } |
