diff options
author | bsalomon <bsalomon@google.com> | 2015-02-02 14:08:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-02 14:08:09 -0800 |
commit | 85ed2db092e75db41b711b9116a8d5b465fc2b0c (patch) | |
tree | 22b65f28f44d3811fd42bdfc5f2563d162531d2b /src/gpu/GrGpuResourceCacheAccess.h | |
parent | e67164d9b3a0fcc5f7d2a4149041284f7cde31b9 (diff) |
make getContentKey() available in GrGpuResource public interface
TBR=robertphillips@google.com
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; } |