OLD | NEW |
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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "cc/animation/animation_events.h" | 16 #include "cc/animation/animation_events.h" |
17 #include "cc/animation/animation_registrar.h" | |
18 #include "cc/animation/scrollbar_animation_controller.h" | 17 #include "cc/animation/scrollbar_animation_controller.h" |
19 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
20 #include "cc/base/synced_property.h" | 19 #include "cc/base/synced_property.h" |
21 #include "cc/debug/frame_timing_tracker.h" | 20 #include "cc/debug/frame_timing_tracker.h" |
22 #include "cc/debug/micro_benchmark_controller_impl.h" | 21 #include "cc/debug/micro_benchmark_controller_impl.h" |
23 #include "cc/input/input_handler.h" | 22 #include "cc/input/input_handler.h" |
24 #include "cc/input/layer_scroll_offset_delegate.h" | 23 #include "cc/input/layer_scroll_offset_delegate.h" |
25 #include "cc/input/top_controls_manager_client.h" | 24 #include "cc/input/top_controls_manager_client.h" |
26 #include "cc/layers/layer_lists.h" | 25 #include "cc/layers/layer_lists.h" |
27 #include "cc/layers/render_pass_sink.h" | 26 #include "cc/layers/render_pass_sink.h" |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 454 } |
456 TopControlsManager* top_controls_manager() { | 455 TopControlsManager* top_controls_manager() { |
457 return top_controls_manager_.get(); | 456 return top_controls_manager_.get(); |
458 } | 457 } |
459 const GlobalStateThatImpactsTilePriority& global_tile_state() { | 458 const GlobalStateThatImpactsTilePriority& global_tile_state() { |
460 return global_tile_state_; | 459 return global_tile_state_; |
461 } | 460 } |
462 | 461 |
463 Proxy* proxy() const { return proxy_; } | 462 Proxy* proxy() const { return proxy_; } |
464 | 463 |
465 AnimationRegistrar* animation_registrar() const { | |
466 return animation_registrar_.get(); | |
467 } | |
468 AnimationHost* animation_host() const { return animation_host_.get(); } | 464 AnimationHost* animation_host() const { return animation_host_.get(); } |
469 | 465 |
470 void SetDebugState(const LayerTreeDebugState& new_debug_state); | 466 void SetDebugState(const LayerTreeDebugState& new_debug_state); |
471 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 467 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
472 | 468 |
473 gfx::Vector2dF accumulated_root_overscroll() const { | 469 gfx::Vector2dF accumulated_root_overscroll() const { |
474 return accumulated_root_overscroll_; | 470 return accumulated_root_overscroll_; |
475 } | 471 } |
476 | 472 |
477 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 473 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 gfx::Rect viewport_rect_for_tile_priority_; | 758 gfx::Rect viewport_rect_for_tile_priority_; |
763 bool resourceless_software_draw_; | 759 bool resourceless_software_draw_; |
764 | 760 |
765 gfx::Rect viewport_damage_rect_; | 761 gfx::Rect viewport_damage_rect_; |
766 | 762 |
767 BeginFrameArgs current_begin_frame_args_; | 763 BeginFrameArgs current_begin_frame_args_; |
768 | 764 |
769 // Expected time between two begin impl frame calls. | 765 // Expected time between two begin impl frame calls. |
770 base::TimeDelta begin_impl_frame_interval_; | 766 base::TimeDelta begin_impl_frame_interval_; |
771 | 767 |
772 scoped_ptr<AnimationRegistrar> animation_registrar_; | |
773 scoped_ptr<AnimationHost> animation_host_; | 768 scoped_ptr<AnimationHost> animation_host_; |
774 std::set<ScrollbarAnimationController*> scrollbar_animation_controllers_; | 769 std::set<ScrollbarAnimationController*> scrollbar_animation_controllers_; |
775 std::set<VideoFrameController*> video_frame_controllers_; | 770 std::set<VideoFrameController*> video_frame_controllers_; |
776 | 771 |
777 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 772 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
778 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 773 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
779 scoped_ptr<TaskGraphRunner> single_thread_synchronous_task_graph_runner_; | 774 scoped_ptr<TaskGraphRunner> single_thread_synchronous_task_graph_runner_; |
780 | 775 |
781 // Optional callback to notify of new tree activations. | 776 // Optional callback to notify of new tree activations. |
782 base::Closure tree_activation_callback_; | 777 base::Closure tree_activation_callback_; |
(...skipping 12 matching lines...) Expand all Loading... |
795 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 790 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
796 | 791 |
797 scoped_ptr<Viewport> viewport_; | 792 scoped_ptr<Viewport> viewport_; |
798 | 793 |
799 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 794 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
800 }; | 795 }; |
801 | 796 |
802 } // namespace cc | 797 } // namespace cc |
803 | 798 |
804 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 799 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |