diff options
author | 2015-02-02 17:25:26 -0800 | |
---|---|---|
committer | 2015-02-02 17:25:26 -0800 | |
commit | 563ff60b33fa50b9c6a48dd048b8b36a88596668 (patch) | |
tree | 2261ccbdff97301f12545e593d0d55a6d47345e3 /include/gpu/GrGpuResource.h | |
parent | 6eff8701f027016fbb3147412ec2292dcec2b7f5 (diff) |
make getContentKey() available in GrGpuResource public interface
TBR=robertphillips@google.com
Committed: https://skia.googlesource.com/skia/+/85ed2db092e75db41b711b9116a8d5b465fc2b0c
Review URL: https://codereview.chromium.org/886313005
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r-- | include/gpu/GrGpuResource.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h index bdf6257d4d..7896ab3e84 100644 --- a/include/gpu/GrGpuResource.h +++ b/include/gpu/GrGpuResource.h @@ -188,6 +188,10 @@ public: */ uint32_t getUniqueID() const { return fUniqueID; } + /** Returns the current content key for the resource. It will be invalid if the resource has not + been cached by its contents. */ + const GrContentKey& getContentKey() const { return fContentKey; } + /** * Attach a custom data object to this resource. The data will remain attached * for the lifetime of this resource (until it is abandoned or released). |