diff options
author | bsalomon <bsalomon@google.com> | 2014-08-26 12:51:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-26 12:51:20 -0700 |
commit | d68b3e491bb765beb7ca5e4ac8e0c80dedf5a83b (patch) | |
tree | 1d95515a45bbb82568270e046f8a5c3591f569ca /include/gpu | |
parent | 5e5f948b6b363dbfc8c076d8ff0c6b8e9ea99958 (diff) |
Make GrGpuResources register with GrResourceCache2 after fully constructed.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/504313002
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(); |