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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 550 |
551 bool is_likely_to_require_a_draw() const { | 551 bool is_likely_to_require_a_draw() const { |
552 return is_likely_to_require_a_draw_; | 552 return is_likely_to_require_a_draw_; |
553 } | 553 } |
554 | 554 |
555 // Removes empty or orphan RenderPasses from the frame. | 555 // Removes empty or orphan RenderPasses from the frame. |
556 static void RemoveRenderPasses(FrameData* frame); | 556 static void RemoveRenderPasses(FrameData* frame); |
557 | 557 |
558 LayerTreeHostImplClient* client_; | 558 LayerTreeHostImplClient* client_; |
559 Proxy* proxy_; | 559 Proxy* proxy_; |
| 560 LayerTreeSettings settings_; |
560 | 561 |
561 private: | 562 private: |
562 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 563 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
563 LayerImpl* layer_impl, | 564 LayerImpl* layer_impl, |
564 const gfx::PointF& viewport_point, | 565 const gfx::PointF& viewport_point, |
565 const gfx::Vector2dF& viewport_delta); | 566 const gfx::Vector2dF& viewport_delta); |
566 | 567 |
567 void CreateAndSetRenderer(); | 568 void CreateAndSetRenderer(); |
568 void CreateAndSetTileManager(); | 569 void CreateAndSetTileManager(); |
569 void DestroyTileManager(); | 570 void DestroyTileManager(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; | 670 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; |
670 | 671 |
671 // An object to implement the ScrollElasticityHelper interface and | 672 // An object to implement the ScrollElasticityHelper interface and |
672 // hold all state related to elasticity. May be NULL if never requested. | 673 // hold all state related to elasticity. May be NULL if never requested. |
673 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | 674 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; |
674 | 675 |
675 bool tile_priorities_dirty_; | 676 bool tile_priorities_dirty_; |
676 | 677 |
677 // The optional delegate for the root layer scroll offset. | 678 // The optional delegate for the root layer scroll offset. |
678 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 679 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
679 LayerTreeSettings settings_; | |
680 LayerTreeDebugState debug_state_; | 680 LayerTreeDebugState debug_state_; |
681 bool visible_; | 681 bool visible_; |
682 ManagedMemoryPolicy cached_managed_memory_policy_; | 682 ManagedMemoryPolicy cached_managed_memory_policy_; |
683 | 683 |
684 gfx::Vector2dF accumulated_root_overscroll_; | 684 gfx::Vector2dF accumulated_root_overscroll_; |
685 | 685 |
686 bool pinch_gesture_active_; | 686 bool pinch_gesture_active_; |
687 bool pinch_gesture_end_should_clear_scrolling_layer_; | 687 bool pinch_gesture_end_should_clear_scrolling_layer_; |
688 gfx::Point previous_pinch_anchor_; | 688 gfx::Point previous_pinch_anchor_; |
689 | 689 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 757 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
758 | 758 |
759 scoped_ptr<Viewport> viewport_; | 759 scoped_ptr<Viewport> viewport_; |
760 | 760 |
761 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 761 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
762 }; | 762 }; |
763 | 763 |
764 } // namespace cc | 764 } // namespace cc |
765 | 765 |
766 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 766 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |