Merge "Fix hang in native bitmap recycling due to nested mutex locks"

This commit is contained in:
Chet Haase
2010-11-23 16:01:49 -08:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 6 deletions

View File

@@ -111,11 +111,6 @@ void ResourceCache::recycle(SkBitmap* resource) {
resource->setPixels(NULL, NULL);
return;
}
recycle((void*) resource);
}
void ResourceCache::recycle(void* resource) {
Mutex::Autolock _l(mLock);
ResourceReference* ref = mCache->indexOfKey(resource) >= 0 ? mCache->valueFor(resource) : NULL;
if (ref == NULL) {
// Should not get here - shouldn't get a call to recycle if we're not yet tracking it

View File

@@ -61,7 +61,6 @@ public:
void decrementRefcount(SkBitmap* resource);
void decrementRefcount(SkiaShader* resource);
void decrementRefcount(SkiaColorFilter* resource);
void recycle(void* resource);
void recycle(SkBitmap* resource);
void destructor(SkBitmap* resource);
void destructor(SkiaShader* resource);