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

Unified Diff: src/gpu/GrLayerCache.h

Issue 751663002: Remove Picture deletion listeners. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: f Created 6 years, 1 month 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 | « src/core/SkPicture.cpp ('k') | src/gpu/GrLayerCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerCache.h
diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h
index 8dec8e594d8fc19ea67f42393b29ecea05370e45..75e913056027113ce0b94c885dbc4bece527d7e2 100644
--- a/src/gpu/GrLayerCache.h
+++ b/src/gpu/GrLayerCache.h
@@ -19,12 +19,7 @@
// Set to 0 to disable caching of hoisted layers
#define GR_CACHE_HOISTED_LAYERS 0
-// The layer cache listens for these messages to purge picture-related resources.
-struct GrPictureDeletedMessage {
- uint32_t pictureID;
-};
-
-// GrPictureInfo stores the atlas plots used by a single picture. A single
+// GrPictureInfo stores the atlas plots used by a single picture. A single
// plot may be used to store layers from multiple pictures.
struct GrPictureInfo {
public:
@@ -262,9 +257,6 @@ public:
}
}
- // Setup to be notified when 'picture' is deleted
- void trackPicture(const SkPicture* picture);
-
// Cleanup after any SkPicture deletions
void processDeletedPictures();
@@ -304,9 +296,7 @@ private:
SkTDynamicHash<GrCachedLayer, GrCachedLayer::Key> fLayerHash;
- SkMessageBus<GrPictureDeletedMessage>::Inbox fPictDeletionInbox;
-
- SkAutoTUnref<SkPicture::DeletionListener> fDeletionListener;
+ SkMessageBus<SkPicture::DeletionMessage>::Inbox fPictDeletionInbox;
// This implements a plot-centric locking mechanism (since the atlas
// backing texture is always locked). Each layer that is locked (i.e.,
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/gpu/GrLayerCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698