| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 void SetViewportSizeInvalid(); | 317 void SetViewportSizeInvalid(); |
| 318 void ResetViewportSizeInvalid(); | 318 void ResetViewportSizeInvalid(); |
| 319 | 319 |
| 320 // Used for accessing the task runner and debug assertions. | 320 // Used for accessing the task runner and debug assertions. |
| 321 TaskRunnerProvider* task_runner_provider() const; | 321 TaskRunnerProvider* task_runner_provider() const; |
| 322 | 322 |
| 323 // Distribute the root scroll between outer and inner viewport scroll layer. | 323 // Distribute the root scroll between outer and inner viewport scroll layer. |
| 324 // The outer viewport scroll layer scrolls first. | 324 // The outer viewport scroll layer scrolls first. |
| 325 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); | 325 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); |
| 326 | 326 |
| 327 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { | 327 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state) { |
| 328 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); | 328 layer_tree_host_impl_->ApplyScroll(scroll_node, scroll_state); |
| 329 } | 329 } |
| 330 | 330 |
| 331 // Call this function when you expect there to be a swap buffer. | 331 // Call this function when you expect there to be a swap buffer. |
| 332 // See swap_promise.h for how to use SwapPromise. | 332 // See swap_promise.h for how to use SwapPromise. |
| 333 // | 333 // |
| 334 // A swap promise queued by QueueSwapPromise travels with the layer | 334 // A swap promise queued by QueueSwapPromise travels with the layer |
| 335 // information currently associated with the tree. For example, when | 335 // information currently associated with the tree. For example, when |
| 336 // a pending tree is activated, the swap promise is passed to the | 336 // a pending tree is activated, the swap promise is passed to the |
| 337 // active tree along with the layer information. Similarly, when a | 337 // active tree along with the layer information. Similarly, when a |
| 338 // new activation overwrites layer information on the active tree, | 338 // new activation overwrites layer information on the active tree, |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 580 |
| 581 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 581 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 582 | 582 |
| 583 private: | 583 private: |
| 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 585 }; | 585 }; |
| 586 | 586 |
| 587 } // namespace cc | 587 } // namespace cc |
| 588 | 588 |
| 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |