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 <bitset> | 10 #include <bitset> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 class DebugRectHistory; | 59 class DebugRectHistory; |
60 class EvictionTilePriorityQueue; | 60 class EvictionTilePriorityQueue; |
61 class FrameRateCounter; | 61 class FrameRateCounter; |
62 class LayerImpl; | 62 class LayerImpl; |
63 class LayerTreeImpl; | 63 class LayerTreeImpl; |
64 class MemoryHistory; | 64 class MemoryHistory; |
65 class MutatorEvents; | 65 class MutatorEvents; |
66 class MutatorHost; | 66 class MutatorHost; |
67 class PageScaleAnimation; | 67 class PageScaleAnimation; |
68 class PendingTreeDurationHistogramTimer; | 68 class PendingTreeDurationHistogramTimer; |
| 69 class PendingTreeRasterDurationHistogramTimer; |
69 class RasterTilePriorityQueue; | 70 class RasterTilePriorityQueue; |
70 class RasterBufferProvider; | 71 class RasterBufferProvider; |
71 class RenderingStatsInstrumentation; | 72 class RenderingStatsInstrumentation; |
72 class ResourcePool; | 73 class ResourcePool; |
73 class ScrollElasticityHelper; | 74 class ScrollElasticityHelper; |
74 class SwapPromise; | 75 class SwapPromise; |
75 class SwapPromiseMonitor; | 76 class SwapPromiseMonitor; |
76 class SynchronousTaskGraphRunner; | 77 class SynchronousTaskGraphRunner; |
77 class TaskGraphRunner; | 78 class TaskGraphRunner; |
78 class UIResourceBitmap; | 79 class UIResourceBitmap; |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 // TODO(danakj): Delete the LayerTreeFrameSink and all resources when | 855 // TODO(danakj): Delete the LayerTreeFrameSink and all resources when |
855 // it's lost instead of having this bool. | 856 // it's lost instead of having this bool. |
856 bool has_valid_layer_tree_frame_sink_; | 857 bool has_valid_layer_tree_frame_sink_; |
857 | 858 |
858 std::unique_ptr<Viewport> viewport_; | 859 std::unique_ptr<Viewport> viewport_; |
859 | 860 |
860 std::unique_ptr<LayerTreeMutator> mutator_; | 861 std::unique_ptr<LayerTreeMutator> mutator_; |
861 | 862 |
862 std::unique_ptr<PendingTreeDurationHistogramTimer> | 863 std::unique_ptr<PendingTreeDurationHistogramTimer> |
863 pending_tree_duration_timer_; | 864 pending_tree_duration_timer_; |
| 865 std::unique_ptr<PendingTreeRasterDurationHistogramTimer> |
| 866 pending_tree_raster_duration_timer_; |
864 | 867 |
865 // The id of the scroll node to which scroll animations must latch. | 868 // The id of the scroll node to which scroll animations must latch. |
866 // This gets reset at ScrollAnimatedBegin, and updated the first time that a | 869 // This gets reset at ScrollAnimatedBegin, and updated the first time that a |
867 // scroll animation is created in ScrollAnimated. | 870 // scroll animation is created in ScrollAnimated. |
868 int scroll_animating_latched_node_id_; | 871 int scroll_animating_latched_node_id_; |
869 | 872 |
870 // These callbacks are stored here to be transfered to the main thread when we | 873 // These callbacks are stored here to be transfered to the main thread when we |
871 // begin main frame. These callbacks must only be called on the main thread. | 874 // begin main frame. These callbacks must only be called on the main thread. |
872 std::vector<base::Closure> completed_image_decode_callbacks_; | 875 std::vector<base::Closure> completed_image_decode_callbacks_; |
873 | 876 |
874 // These are used to transfer usage of touch and wheel scrolls to the main | 877 // These are used to transfer usage of touch and wheel scrolls to the main |
875 // thread. | 878 // thread. |
876 bool has_scrolled_by_wheel_; | 879 bool has_scrolled_by_wheel_; |
877 bool has_scrolled_by_touch_; | 880 bool has_scrolled_by_touch_; |
878 | 881 |
879 bool touchpad_and_wheel_scroll_latching_enabled_; | 882 bool touchpad_and_wheel_scroll_latching_enabled_; |
880 | 883 |
881 ImplThreadPhase impl_thread_phase_; | 884 ImplThreadPhase impl_thread_phase_; |
882 | 885 |
883 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 886 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
884 }; | 887 }; |
885 | 888 |
886 } // namespace cc | 889 } // namespace cc |
887 | 890 |
888 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 891 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |