| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <unordered_map> | 12 #include <unordered_map> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "cc/animation/animation_registrar.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/scrollbar_animation_controller.h" | 23 #include "cc/input/scrollbar_animation_controller.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" |
| 28 #include "cc/output/begin_frame_args.h" | 27 #include "cc/output/begin_frame_args.h" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 return top_controls_manager_.get(); | 482 return top_controls_manager_.get(); |
| 484 } | 483 } |
| 485 const GlobalStateThatImpactsTilePriority& global_tile_state() { | 484 const GlobalStateThatImpactsTilePriority& global_tile_state() { |
| 486 return global_tile_state_; | 485 return global_tile_state_; |
| 487 } | 486 } |
| 488 | 487 |
| 489 TaskRunnerProvider* task_runner_provider() const { | 488 TaskRunnerProvider* task_runner_provider() const { |
| 490 return task_runner_provider_; | 489 return task_runner_provider_; |
| 491 } | 490 } |
| 492 | 491 |
| 493 AnimationRegistrar* animation_registrar() const { | |
| 494 return animation_registrar_.get(); | |
| 495 } | |
| 496 AnimationHost* animation_host() const { return animation_host_.get(); } | 492 AnimationHost* animation_host() const { return animation_host_.get(); } |
| 497 | 493 |
| 498 void SetDebugState(const LayerTreeDebugState& new_debug_state); | 494 void SetDebugState(const LayerTreeDebugState& new_debug_state); |
| 499 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 495 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 500 | 496 |
| 501 gfx::Vector2dF accumulated_root_overscroll() const { | 497 gfx::Vector2dF accumulated_root_overscroll() const { |
| 502 return accumulated_root_overscroll_; | 498 return accumulated_root_overscroll_; |
| 503 } | 499 } |
| 504 | 500 |
| 505 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 501 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 // - viewport_rect_for_tile_priority_ is the rect in view space used for | 801 // - viewport_rect_for_tile_priority_ is the rect in view space used for |
| 806 // tiling priority. | 802 // tiling priority. |
| 807 gfx::Transform external_transform_; | 803 gfx::Transform external_transform_; |
| 808 gfx::Rect external_viewport_; | 804 gfx::Rect external_viewport_; |
| 809 gfx::Rect external_clip_; | 805 gfx::Rect external_clip_; |
| 810 gfx::Rect viewport_rect_for_tile_priority_; | 806 gfx::Rect viewport_rect_for_tile_priority_; |
| 811 bool resourceless_software_draw_; | 807 bool resourceless_software_draw_; |
| 812 | 808 |
| 813 gfx::Rect viewport_damage_rect_; | 809 gfx::Rect viewport_damage_rect_; |
| 814 | 810 |
| 815 scoped_ptr<AnimationRegistrar> animation_registrar_; | |
| 816 scoped_ptr<AnimationHost> animation_host_; | 811 scoped_ptr<AnimationHost> animation_host_; |
| 817 std::set<VideoFrameController*> video_frame_controllers_; | 812 std::set<VideoFrameController*> video_frame_controllers_; |
| 818 | 813 |
| 819 // Map from scroll layer ID to scrollbar animation controller. | 814 // Map from scroll layer ID to scrollbar animation controller. |
| 820 // There is one animation controller per pair of overlay scrollbars. | 815 // There is one animation controller per pair of overlay scrollbars. |
| 821 std::unordered_map<int, scoped_ptr<ScrollbarAnimationController>> | 816 std::unordered_map<int, scoped_ptr<ScrollbarAnimationController>> |
| 822 scrollbar_animation_controllers_; | 817 scrollbar_animation_controllers_; |
| 823 | 818 |
| 824 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 819 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 825 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 820 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 842 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 837 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 843 | 838 |
| 844 scoped_ptr<Viewport> viewport_; | 839 scoped_ptr<Viewport> viewport_; |
| 845 | 840 |
| 846 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 847 }; | 842 }; |
| 848 | 843 |
| 849 } // namespace cc | 844 } // namespace cc |
| 850 | 845 |
| 851 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |