diff options
author | bsalomon <bsalomon@google.com> | 2015-02-02 17:25:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-02 17:25:26 -0800 |
commit | 563ff60b33fa50b9c6a48dd048b8b36a88596668 (patch) | |
tree | 2261ccbdff97301f12545e593d0d55a6d47345e3 /src/gpu/GrGpuResourceCacheAccess.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 'src/gpu/GrGpuResourceCacheAccess.h')
-rw-r--r-- | src/gpu/GrGpuResourceCacheAccess.h | 9 |
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; } |