aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-02 14:08:09 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-02 14:08:09 -0800
commit85ed2db092e75db41b711b9116a8d5b465fc2b0c (patch)
tree22b65f28f44d3811fd42bdfc5f2563d162531d2b /include/gpu/GrGpuResource.h
parente67164d9b3a0fcc5f7d2a4149041284f7cde31b9 (diff)
make getContentKey() available in GrGpuResource public interface
TBR=robertphillips@google.com Review URL: https://codereview.chromium.org/886313005
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r--include/gpu/GrGpuResource.h4
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).