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

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

Issue 2631453002: Revert of cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: Created 3 years, 11 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/tiles/tile_manager.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 18 matching lines...) Expand all
29 #include "cc/output/compositor_frame_sink_client.h" 29 #include "cc/output/compositor_frame_sink_client.h"
30 #include "cc/output/context_cache_controller.h" 30 #include "cc/output/context_cache_controller.h"
31 #include "cc/output/managed_memory_policy.h" 31 #include "cc/output/managed_memory_policy.h"
32 #include "cc/quads/render_pass.h" 32 #include "cc/quads/render_pass.h"
33 #include "cc/resources/resource_provider.h" 33 #include "cc/resources/resource_provider.h"
34 #include "cc/resources/ui_resource_client.h" 34 #include "cc/resources/ui_resource_client.h"
35 #include "cc/scheduler/begin_frame_tracker.h" 35 #include "cc/scheduler/begin_frame_tracker.h"
36 #include "cc/scheduler/commit_earlyout_reason.h" 36 #include "cc/scheduler/commit_earlyout_reason.h"
37 #include "cc/scheduler/draw_result.h" 37 #include "cc/scheduler/draw_result.h"
38 #include "cc/scheduler/video_frame_controller.h" 38 #include "cc/scheduler/video_frame_controller.h"
39 #include "cc/tiles/decoded_image_tracker.h"
40 #include "cc/tiles/image_decode_cache.h" 39 #include "cc/tiles/image_decode_cache.h"
41 #include "cc/tiles/tile_manager.h" 40 #include "cc/tiles/tile_manager.h"
42 #include "cc/trees/layer_tree_mutator.h" 41 #include "cc/trees/layer_tree_mutator.h"
43 #include "cc/trees/layer_tree_settings.h" 42 #include "cc/trees/layer_tree_settings.h"
44 #include "cc/trees/mutator_host_client.h" 43 #include "cc/trees/mutator_host_client.h"
45 #include "cc/trees/task_runner_provider.h" 44 #include "cc/trees/task_runner_provider.h"
46 #include "ui/gfx/geometry/rect.h" 45 #include "ui/gfx/geometry/rect.h"
47 46
48 namespace gfx { 47 namespace gfx {
49 class ScrollOffset; 48 class ScrollOffset;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 public MutatorHostClient, 137 public MutatorHostClient,
139 public base::SupportsWeakPtr<LayerTreeHostImpl> { 138 public base::SupportsWeakPtr<LayerTreeHostImpl> {
140 public: 139 public:
141 static std::unique_ptr<LayerTreeHostImpl> Create( 140 static std::unique_ptr<LayerTreeHostImpl> Create(
142 const LayerTreeSettings& settings, 141 const LayerTreeSettings& settings,
143 LayerTreeHostImplClient* client, 142 LayerTreeHostImplClient* client,
144 TaskRunnerProvider* task_runner_provider, 143 TaskRunnerProvider* task_runner_provider,
145 RenderingStatsInstrumentation* rendering_stats_instrumentation, 144 RenderingStatsInstrumentation* rendering_stats_instrumentation,
146 TaskGraphRunner* task_graph_runner, 145 TaskGraphRunner* task_graph_runner,
147 std::unique_ptr<MutatorHost> mutator_host, 146 std::unique_ptr<MutatorHost> mutator_host,
148 int id, 147 int id);
149 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner);
150 ~LayerTreeHostImpl() override; 148 ~LayerTreeHostImpl() override;
151 149
152 // InputHandler implementation 150 // InputHandler implementation
153 void BindToClient(InputHandlerClient* client) override; 151 void BindToClient(InputHandlerClient* client) override;
154 InputHandler::ScrollStatus ScrollBegin( 152 InputHandler::ScrollStatus ScrollBegin(
155 ScrollState* scroll_state, 153 ScrollState* scroll_state,
156 InputHandler::ScrollInputType type) override; 154 InputHandler::ScrollInputType type) override;
157 InputHandler::ScrollStatus RootScrollBegin( 155 InputHandler::ScrollStatus RootScrollBegin(
158 ScrollState* scroll_state, 156 ScrollState* scroll_state,
159 InputHandler::ScrollInputType type) override; 157 InputHandler::ScrollInputType type) override;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 LayerImpl* ViewportMainScrollLayer(); 587 LayerImpl* ViewportMainScrollLayer();
590 588
591 protected: 589 protected:
592 LayerTreeHostImpl( 590 LayerTreeHostImpl(
593 const LayerTreeSettings& settings, 591 const LayerTreeSettings& settings,
594 LayerTreeHostImplClient* client, 592 LayerTreeHostImplClient* client,
595 TaskRunnerProvider* task_runner_provider, 593 TaskRunnerProvider* task_runner_provider,
596 RenderingStatsInstrumentation* rendering_stats_instrumentation, 594 RenderingStatsInstrumentation* rendering_stats_instrumentation,
597 TaskGraphRunner* task_graph_runner, 595 TaskGraphRunner* task_graph_runner,
598 std::unique_ptr<MutatorHost> mutator_host, 596 std::unique_ptr<MutatorHost> mutator_host,
599 int id, 597 int id);
600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner);
601 598
602 // Virtual for testing. 599 // Virtual for testing.
603 virtual bool AnimateLayers(base::TimeTicks monotonic_time); 600 virtual bool AnimateLayers(base::TimeTicks monotonic_time);
604 601
605 bool is_likely_to_require_a_draw() const { 602 bool is_likely_to_require_a_draw() const {
606 return is_likely_to_require_a_draw_; 603 return is_likely_to_require_a_draw_;
607 } 604 }
608 605
609 // Removes empty or orphan RenderPasses from the frame. 606 // Removes empty or orphan RenderPasses from the frame.
610 static void RemoveRenderPasses(FrameData* frame); 607 static void RemoveRenderPasses(FrameData* frame);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 739
743 bool tile_priorities_dirty_; 740 bool tile_priorities_dirty_;
744 741
745 const LayerTreeSettings settings_; 742 const LayerTreeSettings settings_;
746 LayerTreeDebugState debug_state_; 743 LayerTreeDebugState debug_state_;
747 bool visible_; 744 bool visible_;
748 ManagedMemoryPolicy cached_managed_memory_policy_; 745 ManagedMemoryPolicy cached_managed_memory_policy_;
749 746
750 const bool is_synchronous_single_threaded_; 747 const bool is_synchronous_single_threaded_;
751 TileManager tile_manager_; 748 TileManager tile_manager_;
752 DecodedImageTracker decoded_image_tracker_;
753 749
754 gfx::Vector2dF accumulated_root_overscroll_; 750 gfx::Vector2dF accumulated_root_overscroll_;
755 751
756 bool pinch_gesture_active_; 752 bool pinch_gesture_active_;
757 bool pinch_gesture_end_should_clear_scrolling_layer_; 753 bool pinch_gesture_end_should_clear_scrolling_layer_;
758 754
759 std::unique_ptr<BrowserControlsOffsetManager> 755 std::unique_ptr<BrowserControlsOffsetManager>
760 browser_controls_offset_manager_; 756 browser_controls_offset_manager_;
761 757
762 std::unique_ptr<PageScaleAnimation> page_scale_animation_; 758 std::unique_ptr<PageScaleAnimation> page_scale_animation_;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 818
823 std::unique_ptr<PendingTreeDurationHistogramTimer> 819 std::unique_ptr<PendingTreeDurationHistogramTimer>
824 pending_tree_duration_timer_; 820 pending_tree_duration_timer_;
825 821
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
827 }; 823 };
828 824
829 } // namespace cc 825 } // namespace cc
830 826
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698