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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 private: | 626 private: |
627 gfx::Vector2dF ScrollNodeWithViewportSpaceDelta( | 627 gfx::Vector2dF ScrollNodeWithViewportSpaceDelta( |
628 ScrollNode* scroll_node, | 628 ScrollNode* scroll_node, |
629 const gfx::PointF& viewport_point, | 629 const gfx::PointF& viewport_point, |
630 const gfx::Vector2dF& viewport_delta, | 630 const gfx::Vector2dF& viewport_delta, |
631 ScrollTree* scroll_tree); | 631 ScrollTree* scroll_tree); |
632 | 632 |
633 void CleanUpTileManagerAndUIResources(); | 633 void CleanUpTileManagerAndUIResources(); |
634 void CreateTileManagerResources(); | 634 void CreateTileManagerResources(); |
635 void ReleaseTreeResources(); | 635 void ReleaseTreeResources(); |
636 void RecreateTreeResources(); | 636 void ReleaseTileResources(); |
| 637 void RecreateTileResources(); |
637 | 638 |
638 void AnimateInternal(bool active_tree); | 639 void AnimateInternal(bool active_tree); |
639 | 640 |
640 // Returns true if status changed. | 641 // Returns true if status changed. |
641 bool UpdateGpuRasterizationStatus(); | 642 bool UpdateGpuRasterizationStatus(); |
642 void UpdateTreeResourcesForGpuRasterizationIfNeeded(); | 643 void UpdateTreeResourcesForGpuRasterizationIfNeeded(); |
643 | 644 |
644 Viewport* viewport() const { return viewport_.get(); } | 645 Viewport* viewport() const { return viewport_.get(); } |
645 | 646 |
646 InputHandler::ScrollStatus ScrollBeginImpl( | 647 InputHandler::ScrollStatus ScrollBeginImpl( |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 | 831 |
831 std::unique_ptr<PendingTreeDurationHistogramTimer> | 832 std::unique_ptr<PendingTreeDurationHistogramTimer> |
832 pending_tree_duration_timer_; | 833 pending_tree_duration_timer_; |
833 | 834 |
834 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 835 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
835 }; | 836 }; |
836 | 837 |
837 } // namespace cc | 838 } // namespace cc |
838 | 839 |
839 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 840 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |