diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrGpuResource.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index 8b162823bf..17cdfc9a4c 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(); |