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

Unified Diff: src/utils/SkDeferredCanvas.cpp

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
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 40004fbddb06cce8df2ba17e196e4b036f0e4f4e..b07a94a52f3316777d641ae8bbf8e07cea0dbb67 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -151,6 +151,8 @@ void DeferredPipeController::playback(bool silent) {
// Release all allocated blocks
fAllocator.reset();
+
+ this->purgeCaches();
}
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698