Merge "Remove unnecessary/erroneous reference counting" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
04c2bf4f17
@@ -68,8 +68,6 @@ void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResourceCache::incrementRefcount(const SkBitmap* bitmapResource) {
|
void ResourceCache::incrementRefcount(const SkBitmap* bitmapResource) {
|
||||||
bitmapResource->pixelRef()->globalRef();
|
|
||||||
SkSafeRef(bitmapResource->getColorTable());
|
|
||||||
incrementRefcount((void*) bitmapResource, kBitmap);
|
incrementRefcount((void*) bitmapResource, kBitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,8 +90,6 @@ void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourc
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResourceCache::incrementRefcountLocked(const SkBitmap* bitmapResource) {
|
void ResourceCache::incrementRefcountLocked(const SkBitmap* bitmapResource) {
|
||||||
bitmapResource->pixelRef()->globalRef();
|
|
||||||
SkSafeRef(bitmapResource->getColorTable());
|
|
||||||
incrementRefcountLocked((void*) bitmapResource, kBitmap);
|
incrementRefcountLocked((void*) bitmapResource, kBitmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,8 +107,6 @@ void ResourceCache::decrementRefcount(void* resource) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResourceCache::decrementRefcount(const SkBitmap* bitmapResource) {
|
void ResourceCache::decrementRefcount(const SkBitmap* bitmapResource) {
|
||||||
bitmapResource->pixelRef()->globalUnref();
|
|
||||||
SkSafeUnref(bitmapResource->getColorTable());
|
|
||||||
decrementRefcount((void*) bitmapResource);
|
decrementRefcount((void*) bitmapResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,8 +132,6 @@ void ResourceCache::decrementRefcountLocked(void* resource) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResourceCache::decrementRefcountLocked(const SkBitmap* bitmapResource) {
|
void ResourceCache::decrementRefcountLocked(const SkBitmap* bitmapResource) {
|
||||||
bitmapResource->pixelRef()->globalUnref();
|
|
||||||
SkSafeUnref(bitmapResource->getColorTable());
|
|
||||||
decrementRefcountLocked((void*) bitmapResource);
|
decrementRefcountLocked((void*) bitmapResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user