Index: include/gpu/GrGpuResource.h |
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h |
index 8b162823bf6e65f3f6904bc4d20d391559b8d220..17cdfc9a4cbe10e82c51e7a57545a0558729fc72 100644 |
--- a/include/gpu/GrGpuResource.h |
+++ b/include/gpu/GrGpuResource.h |
@@ -90,6 +90,11 @@ public: |
uint32_t getUniqueID() const { return fUniqueID; } |
protected: |
+ |
+ // This must be called by every GrGpuObject. It should be called once the object is fully |
+ // initialized (i.e. not in a base class constructor). |
+ void registerWithCache(); |
+ |
GrGpuResource(GrGpu*, bool isWrapped); |
virtual ~GrGpuResource(); |