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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2795803002: Clear Image Decode Cache on Navigation (Closed)
Patch Set: fix conversion Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 590
591 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); 591 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
592 LayerTreeMutator* mutator() { return mutator_.get(); } 592 LayerTreeMutator* mutator() { return mutator_.get(); }
593 593
594 LayerImpl* ViewportMainScrollLayer(); 594 LayerImpl* ViewportMainScrollLayer();
595 595
596 void QueueImageDecode(sk_sp<const SkImage> image, 596 void QueueImageDecode(sk_sp<const SkImage> image,
597 const base::Callback<void(bool)>& embedder_callback); 597 const base::Callback<void(bool)>& embedder_callback);
598 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks(); 598 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks();
599 599
600 void ClearImageCacheOnNavigation();
601
600 protected: 602 protected:
601 LayerTreeHostImpl( 603 LayerTreeHostImpl(
602 const LayerTreeSettings& settings, 604 const LayerTreeSettings& settings,
603 LayerTreeHostImplClient* client, 605 LayerTreeHostImplClient* client,
604 TaskRunnerProvider* task_runner_provider, 606 TaskRunnerProvider* task_runner_provider,
605 RenderingStatsInstrumentation* rendering_stats_instrumentation, 607 RenderingStatsInstrumentation* rendering_stats_instrumentation,
606 TaskGraphRunner* task_graph_runner, 608 TaskGraphRunner* task_graph_runner,
607 std::unique_ptr<MutatorHost> mutator_host, 609 std::unique_ptr<MutatorHost> mutator_host,
608 int id, 610 int id,
609 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); 611 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 // thread. 861 // thread.
860 bool has_scrolled_by_wheel_; 862 bool has_scrolled_by_wheel_;
861 bool has_scrolled_by_touch_; 863 bool has_scrolled_by_touch_;
862 864
863 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 865 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
864 }; 866 };
865 867
866 } // namespace cc 868 } // namespace cc
867 869
868 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 870 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698