Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: src/gpu/GrResourceCache2.h

Issue 504313002: Make GrGpuResources register with GrResourceCache2 after fully constructed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add newline back Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrResourceCache2.h
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h
index 1262c805ac8d9c9356fd7f02357bc096994539f8..f5410c75a125617b47733513793d31e80cfe783f 100644
--- a/src/gpu/GrResourceCache2.h
+++ b/src/gpu/GrResourceCache2.h
@@ -33,6 +33,12 @@ public:
void releaseAll();
private:
+#ifdef SK_DEBUG
robertphillips 2014/08/26 18:49:25 const ?
bsalomon 2014/08/26 20:56:45 Done.
+ bool isInCache(const GrGpuResource* r) {
+ return fResources.isInList(r);
+ }
+#endif
+
int fCount;
SkTInternalLList<GrGpuResource> fResources;
};

Powered by Google App Engine
This is Rietveld 408576698