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

Unified Diff: include/pipe/SkGPipe.h

Issue 1145893007: Fixing leaky handling of SkImage in SkDeferredCanvas. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: reed feedback Created 5 years, 7 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
« no previous file with comments | « no previous file | src/pipe/SkGPipePriv.h » ('j') | src/pipe/SkGPipeWrite.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/pipe/SkGPipe.h
diff --git a/include/pipe/SkGPipe.h b/include/pipe/SkGPipe.h
index 98e081da5e6b8a306563e56b6deaf70bc34ec1c9..9446b8159f05df933e896a24dafda7509a72e835 100644
--- a/include/pipe/SkGPipe.h
+++ b/include/pipe/SkGPipe.h
@@ -87,6 +87,12 @@ public:
virtual void notifyWritten(size_t bytes) = 0;
virtual int numberOfReaders() const { return 1; }
+ /**
+ * Release resource references that are held in internal caches.
+ * This must only be called after the pipe has been completely flushed.
+ */
+ void purgeCaches();
+
private:
friend class SkGPipeWriter;
void setCanvas(SkGPipeCanvas*);
« no previous file with comments | « no previous file | src/pipe/SkGPipePriv.h » ('j') | src/pipe/SkGPipeWrite.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698