Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: src/gpu/GrStencilBuffer.cpp

Issue 703303003: Add GrGpuResource::CacheAccess (Closed) Base URL: https://skia.googlesource.com/skia.git@nohash
Patch Set: update Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrStencilBuffer.cpp
diff --git a/src/gpu/GrStencilBuffer.cpp b/src/gpu/GrStencilBuffer.cpp
index ea7b4fa157a63324a36e0ff4c71eaba0b3f3a2cd..bb5bf38c5223b4617ddd5ee454a2416cfbfa2b9e 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(NULL == this->cacheAccess().isInCache());
this->getGpu()->getContext()->addStencilBuffer(this);
}

Powered by Google App Engine
This is Rietveld 408576698