aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrLayerCache.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-10-14 07:07:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-14 07:08:00 -0700
commit84ac082fd457dc49e22290662ad37249718279e6 (patch)
tree8f4f05080592f7725643544924e38d5479eef1d8 /src/gpu/GrLayerCache.h
parentab84fae29fdee95987b10c00ff34957476a66263 (diff)
Add GrLayerCache::writeLayersToDisk
I'm tired of readding this capability whenever I need to debug. Review URL: https://codereview.chromium.org/654653006
Diffstat (limited to 'src/gpu/GrLayerCache.h')
-rw-r--r--src/gpu/GrLayerCache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h
index 3bccb437f8..d8c5ad9bf5 100644
--- a/src/gpu/GrLayerCache.h
+++ b/src/gpu/GrLayerCache.h
@@ -222,6 +222,10 @@ public:
SkDEBUGCODE(void validate() const;)
+#ifdef SK_DEVELOPER
+ void writeLayersToDisk(const SkString& dirName);
+#endif
+
private:
static const int kAtlasTextureWidth = 1024;
static const int kAtlasTextureHeight = 1024;