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., |