Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: src/core/SkBitmapProvider.cpp

Issue 1352883004: Purge cached resources on SkImage destruction. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/image_pict.cpp ('k') | src/core/SkImageCacherator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProvider.cpp
diff --git a/src/core/SkBitmapProvider.cpp b/src/core/SkBitmapProvider.cpp
index 96e29f81f2cd43aef74a3378ff7874fad35d1ced..cae744bcf04c0227f6bd9b23248c13c6b677b04b 100644
--- a/src/core/SkBitmapProvider.cpp
+++ b/src/core/SkBitmapProvider.cpp
@@ -62,7 +62,7 @@ SkBitmapCacheDesc SkBitmapProvider::makeCacheDesc() const {
void SkBitmapProvider::notifyAddedToCache() const {
if (fImage) {
- // TODO
+ as_IB(fImage)->notifyAddedToCache();
} else {
fBitmap.pixelRef()->notifyAddedToCache();
}
« no previous file with comments | « gm/image_pict.cpp ('k') | src/core/SkImageCacherator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698