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> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 std::vector<gfx::Rect> occluding_screen_space_rects; | 215 std::vector<gfx::Rect> occluding_screen_space_rects; |
216 std::vector<gfx::Rect> non_occluding_screen_space_rects; | 216 std::vector<gfx::Rect> non_occluding_screen_space_rects; |
217 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events; | 217 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events; |
218 RenderPassList render_passes; | 218 RenderPassList render_passes; |
219 const LayerImplList* render_surface_layer_list; | 219 const LayerImplList* render_surface_layer_list; |
220 LayerImplList will_draw_layers; | 220 LayerImplList will_draw_layers; |
221 bool has_no_damage; | 221 bool has_no_damage; |
222 | 222 |
223 // RenderPassSink implementation. | 223 // RenderPassSink implementation. |
224 void AppendRenderPass(scoped_ptr<RenderPass> render_pass) override; | 224 void AppendRenderPass(scoped_ptr<RenderPass> render_pass) override; |
| 225 |
| 226 private: |
| 227 DISALLOW_COPY_AND_ASSIGN(FrameData); |
225 }; | 228 }; |
226 | 229 |
227 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); | 230 virtual void BeginMainFrameAborted(CommitEarlyOutReason reason); |
228 virtual void BeginCommit(); | 231 virtual void BeginCommit(); |
229 virtual void CommitComplete(); | 232 virtual void CommitComplete(); |
230 virtual void UpdateAnimationState(bool start_ready_animations); | 233 virtual void UpdateAnimationState(bool start_ready_animations); |
231 void ActivateAnimations(); | 234 void ActivateAnimations(); |
232 void Animate(); | 235 void Animate(); |
233 void AnimatePendingTreeAfterCommit(); | 236 void AnimatePendingTreeAfterCommit(); |
234 void MainThreadHasStoppedFlinging(); | 237 void MainThreadHasStoppedFlinging(); |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 | 733 |
731 // In impl-side painting mode, inert tree with layers that can be recycled | 734 // In impl-side painting mode, inert tree with layers that can be recycled |
732 // by the next sync from the main thread. | 735 // by the next sync from the main thread. |
733 scoped_ptr<LayerTreeImpl> recycle_tree_; | 736 scoped_ptr<LayerTreeImpl> recycle_tree_; |
734 | 737 |
735 InputHandlerClient* input_handler_client_; | 738 InputHandlerClient* input_handler_client_; |
736 bool did_lock_scrolling_layer_; | 739 bool did_lock_scrolling_layer_; |
737 bool wheel_scrolling_; | 740 bool wheel_scrolling_; |
738 bool scroll_affects_scroll_handler_; | 741 bool scroll_affects_scroll_handler_; |
739 int scroll_layer_id_when_mouse_over_scrollbar_; | 742 int scroll_layer_id_when_mouse_over_scrollbar_; |
740 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; | 743 std::vector<scoped_ptr<SwapPromise>> |
| 744 swap_promises_for_main_thread_scroll_update_; |
741 | 745 |
742 // An object to implement the ScrollElasticityHelper interface and | 746 // An object to implement the ScrollElasticityHelper interface and |
743 // hold all state related to elasticity. May be NULL if never requested. | 747 // hold all state related to elasticity. May be NULL if never requested. |
744 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | 748 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; |
745 | 749 |
746 bool tile_priorities_dirty_; | 750 bool tile_priorities_dirty_; |
747 | 751 |
748 const LayerTreeSettings settings_; | 752 const LayerTreeSettings settings_; |
749 LayerTreeDebugState debug_state_; | 753 LayerTreeDebugState debug_state_; |
750 bool visible_; | 754 bool visible_; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 826 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
823 | 827 |
824 scoped_ptr<Viewport> viewport_; | 828 scoped_ptr<Viewport> viewport_; |
825 | 829 |
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 830 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
827 }; | 831 }; |
828 | 832 |
829 } // namespace cc | 833 } // namespace cc |
830 | 834 |
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 835 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |