| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 void CreateAndSetRenderer(); | 515 void CreateAndSetRenderer(); |
| 516 void CreateAndSetTileManager(); | 516 void CreateAndSetTileManager(); |
| 517 void DestroyTileManager(); | 517 void DestroyTileManager(); |
| 518 void ReleaseTreeResources(); | 518 void ReleaseTreeResources(); |
| 519 void EnforceZeroBudget(bool zero_budget); | 519 void EnforceZeroBudget(bool zero_budget); |
| 520 | 520 |
| 521 bool UsePendingTreeForSync() const; | 521 bool UsePendingTreeForSync() const; |
| 522 bool UseZeroCopyRasterizer() const; | 522 bool UseZeroCopyRasterizer() const; |
| 523 bool UseOneCopyRasterizer() const; | 523 bool UseOneCopyRasterizer() const; |
| 524 | 524 |
| 525 // Scroll by preferring to move the outer viewport first, only moving the |
| 526 // inner if the outer is at its scroll extents. |
| 525 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 527 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
| 528 // Scroll by preferring to move the inner viewport first, only moving the |
| 529 // outer if the inner is at its scroll extents. |
| 530 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); |
| 526 void AnimatePageScale(base::TimeTicks monotonic_time); | 531 void AnimatePageScale(base::TimeTicks monotonic_time); |
| 527 void AnimateScrollbars(base::TimeTicks monotonic_time); | 532 void AnimateScrollbars(base::TimeTicks monotonic_time); |
| 528 void AnimateTopControls(base::TimeTicks monotonic_time); | 533 void AnimateTopControls(base::TimeTicks monotonic_time); |
| 529 | 534 |
| 530 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 535 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
| 531 LayerImpl* layer_impl, | 536 LayerImpl* layer_impl, |
| 532 float scale_from_viewport_to_screen_space, | 537 float scale_from_viewport_to_screen_space, |
| 533 const gfx::PointF& viewport_point, | 538 const gfx::PointF& viewport_point, |
| 534 const gfx::Vector2dF& viewport_delta); | 539 const gfx::Vector2dF& viewport_delta); |
| 535 | 540 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 707 |
| 703 std::vector<PictureLayerImpl*> picture_layers_; | 708 std::vector<PictureLayerImpl*> picture_layers_; |
| 704 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 709 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 705 | 710 |
| 706 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 711 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 707 }; | 712 }; |
| 708 | 713 |
| 709 } // namespace cc | 714 } // namespace cc |
| 710 | 715 |
| 711 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 716 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |