aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilBuffer.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-11-11 14:15:57 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-11 14:15:57 -0800
commit453cf40ac7702722695bb09ae2c6df44c19d008b (patch)
treeddaf714079178b7febf234442c203118fbb46edd /src/gpu/GrStencilBuffer.cpp
parent3c3fe7ce4893204eb8bcf885e8a1d539763bca5d (diff)
Add GrGpuResource::CacheAccess
Internal only helper class for manipulating and accessing cache keys. BUG=skia:2889 Review URL: https://codereview.chromium.org/703303003
Diffstat (limited to 'src/gpu/GrStencilBuffer.cpp')
-rw-r--r--src/gpu/GrStencilBuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp
index ea7b4fa157..b288415301 100644
--- a/src/gpu/GrStencilBuffer.cpp
+++ b/src/gpu/GrStencilBuffer.cpp
@@ -10,10 +10,10 @@
#include "GrContext.h"
#include "GrGpu.h"
-#include "GrResourceCache.h"
+#include "GrResourceCache2.h"
void GrStencilBuffer::transferToCache() {
- SkASSERT(NULL == this->getCacheEntry());
+ SkASSERT(!this->cacheAccess().isInCache());
this->getGpu()->getContext()->addStencilBuffer(this);
}