| Index: src/gpu/GrLayerCache.h
|
| diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h
|
| index c77233292254ee9a155a528087de48e9d4563c2e..632cd0054028547722a91c2caa35931e918abd5d 100644
|
| --- a/src/gpu/GrLayerCache.h
|
| +++ b/src/gpu/GrLayerCache.h
|
| @@ -18,6 +18,9 @@
|
|
|
| class SkPicture;
|
|
|
| +// 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;
|
| @@ -249,6 +252,10 @@ public:
|
| return width <= kPlotWidth && height <= kPlotHeight;
|
| }
|
|
|
| +#if !GR_CACHE_HOISTED_LAYERS
|
| + void purgeAll();
|
| +#endif
|
| +
|
| private:
|
| static const int kAtlasTextureWidth = 1024;
|
| static const int kAtlasTextureHeight = 1024;
|
| @@ -291,8 +298,6 @@ private:
|
| const SkIRect& bounds, const SkMatrix& ctm,
|
| const SkPaint* paint);
|
|
|
| - void purgeAll();
|
| -
|
| // Remove all the layers (and unlock any resources) associated with 'pictureID'
|
| void purge(uint32_t pictureID);
|
|
|
|
|