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

Unified Diff: include/gpu/GrGpuResource.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: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 8b162823bf6e65f3f6904bc4d20d391559b8d220..7a22bdb20c43501cf98199f1a71f4eb3e51aa5bc 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -90,6 +90,11 @@ public:
uint32_t getUniqueID() const { return fUniqueID; }
protected:
+
robertphillips 2014/08/26 18:49:25 "by every GrGpuObject" -> "at the end of every GrG
bsalomon 2014/08/26 20:56:45 Hm, there are intermediate derived classes that sh
+ // This must be called by every GrGpuObject. It should be called once the objet is fully
robertphillips 2014/08/26 18:49:25 constructor (typo)
bsalomon 2014/08/26 20:56:45 Done.
+ // initialized (i.e. not in a base class construtor).
+ void registerWithCache();
+
GrGpuResource(GrGpu*, bool isWrapped);
virtual ~GrGpuResource();

Powered by Google App Engine
This is Rietveld 408576698