aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-02 17:25:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-02 17:25:26 -0800
commit563ff60b33fa50b9c6a48dd048b8b36a88596668 (patch)
tree2261ccbdff97301f12545e593d0d55a6d47345e3 /include/gpu/GrGpuResource.h
parent6eff8701f027016fbb3147412ec2292dcec2b7f5 (diff)
make getContentKey() available in GrGpuResource public interface
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).