Index: src/gpu/GrResourceCache2.h |
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h |
index 1262c805ac8d9c9356fd7f02357bc096994539f8..8e79c09e39e1c798553ff2d0e6cefc0916d05e29 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; |
}; |