| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // Useful for debug assertions, probably shouldn't be used for anything else. | 268 // Useful for debug assertions, probably shouldn't be used for anything else. |
| 269 Proxy* proxy() const; | 269 Proxy* proxy() const; |
| 270 | 270 |
| 271 void SetRootLayerScrollOffsetDelegate( | 271 void SetRootLayerScrollOffsetDelegate( |
| 272 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); | 272 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); |
| 273 void UpdateRootScrollOffsetDelegate(); | 273 void UpdateRootScrollOffsetDelegate(); |
| 274 // Distribute the rool scroll between outer and inner viewport scroll layer. | 274 // Distribute the rool scroll between outer and inner viewport scroll layer. |
| 275 // The outer viewport scroll layer scrolls first. | 275 // The outer viewport scroll layer scrolls first. |
| 276 void DistributeRootScrollOffset(); | 276 void DistributeRootScrollOffset(); |
| 277 | 277 |
| 278 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { |
| 279 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); |
| 280 } |
| 281 |
| 278 // Call this function when you expect there to be a swap buffer. | 282 // Call this function when you expect there to be a swap buffer. |
| 279 // See swap_promise.h for how to use SwapPromise. | 283 // See swap_promise.h for how to use SwapPromise. |
| 280 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 284 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 281 | 285 |
| 282 // Take the |new_swap_promise| and append it to |swap_promise_list_|. | 286 // Take the |new_swap_promise| and append it to |swap_promise_list_|. |
| 283 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); | 287 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); |
| 284 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 288 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
| 285 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 289 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 286 | 290 |
| 287 void DidModifyTilePriorities(); | 291 void DidModifyTilePriorities(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 458 |
| 455 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 459 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 456 | 460 |
| 457 private: | 461 private: |
| 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 459 }; | 463 }; |
| 460 | 464 |
| 461 } // namespace cc | 465 } // namespace cc |
| 462 | 466 |
| 463 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 467 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |