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..303343de13da360e999460f990644f75b0bbf9a7 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::ClearCachesOnNavigation() { |
vmpstr
2017/04/03 18:46:11
Maybe ClearImageCacheOnNavigation?
ericrk
2017/04/04 00:26:03
I was thinking maybe we'd want to use it for other
|
+ if (image_decode_cache_) { |
+ 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 |