aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpuResourceCacheAccess.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 /src/gpu/GrGpuResourceCacheAccess.h
parent6eff8701f027016fbb3147412ec2292dcec2b7f5 (diff)
make getContentKey() available in GrGpuResource public interface
Diffstat (limited to 'src/gpu/GrGpuResourceCacheAccess.h')
-rw-r--r--src/gpu/GrGpuResourceCacheAccess.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrGpuResourceCacheAccess.h b/src/gpu/GrGpuResourceCacheAccess.h
index aa2337d7f2..867252d783 100644
--- a/src/gpu/GrGpuResourceCacheAccess.h
+++ b/src/gpu/GrGpuResourceCacheAccess.h
@@ -33,7 +33,7 @@ public:
* key, and does not have a content key.
*/
bool isScratch() const {
- return !this->getContentKey().isValid() && fResource->fScratchKey.isValid() &&
+ return !fResource->getContentKey().isValid() && fResource->fScratchKey.isValid() &&
this->isBudgeted();
}
@@ -51,11 +51,6 @@ public:
void removeScratchKey() const { fResource->removeScratchKey(); }
/**
- * If the resource is currently cached by a content key, the key is returned, otherwise NULL.
- */
- const GrContentKey& getContentKey() const { return fResource->fContentKey; }
-
- /**
* Is the resource object wrapping an externally allocated GPU resource?
*/
bool isWrapped() const { return GrGpuResource::kWrapped_LifeCycle == fResource->fLifeCycle; }
@@ -65,7 +60,7 @@ public:
*/
bool isBudgeted() const {
bool ret = GrGpuResource::kCached_LifeCycle == fResource->fLifeCycle;
- SkASSERT(ret || !this->getContentKey().isValid());
+ SkASSERT(ret || !fResource->getContentKey().isValid());
return ret;
}