aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrResourceCache2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrResourceCache2.h')
-rw-r--r--src/gpu/GrResourceCache2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h
index 1262c805ac..8e79c09e39 100644
--- a/src/gpu/GrResourceCache2.h
+++ b/src/gpu/GrResourceCache2.h
@@ -33,6 +33,12 @@ public:
void releaseAll();
private:
+#ifdef SK_DEBUG
+ bool isInCache(const GrGpuResource* r) const {
+ return fResources.isInList(r);
+ }
+#endif
+
int fCount;
SkTInternalLList<GrGpuResource> fResources;
};