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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2795803002: Clear Image Decode Cache on Navigation (Closed)
Patch Set: feedback Created 3 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: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 40cfdfd14a95a54b874725eaefb21aead859bc82..83018bfa0eff44f7834369acd8304c1f105dab88 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2344,6 +2344,12 @@ LayerTreeHostImpl::TakeCompletedImageDecodeCallbacks() {
return result;
}
+void LayerTreeHostImpl::ClearImageCacheOnNavigation() {
+ if (image_decode_cache_) {
vmpstr 2017/04/04 00:43:18 nit: no braces
ericrk 2017/04/04 17:17:18 Done.
+ image_decode_cache_->ClearCache();
+ }
+}
+
void LayerTreeHostImpl::DidChangeScrollbarVisibility() {
// Need a commit since input handling for scrollbars is handled in Blink so
// we need to communicate to Blink when the compositor shows/hides the
« cc/tiles/software_image_decode_cache_unittest.cc ('K') | « cc/trees/layer_tree_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698