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

Unified Diff: src/core/SkImageFilter.cpp

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months 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/core/SkImageFilter.cpp
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index 524a475b71311c65306b6fa65c2125da100894df..56a22a8ac3ae0bac3625de139324feeee47f6699 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -26,6 +26,7 @@
#if SK_SUPPORT_GPU
#include "GrContext.h"
#include "GrDrawContext.h"
+#include "GrGpuResourcePriv.h"
#include "SkGrPixelRef.h"
#include "SkGr.h"
#endif
@@ -735,6 +736,10 @@ public:
}
void set(const Key& key, SkSpecialImage* image, const SkIPoint& offset) override {
+#if SK_SUPPORT_GPU
+ SkASSERT(!image->peekTexture() ||
+ !image->peekTexture()->resourcePriv().refsWrappedResources());
+#endif
SkAutoMutexAcquire mutex(fMutex);
if (Value* v = fLookup.find(key)) {
this->removeInternal(v);
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrGeometryBuffer.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698