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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // and the active tree's size is now out of date. | 237 // and the active tree's size is now out of date. |
238 bool ViewportSizeInvalid() const; | 238 bool ViewportSizeInvalid() const; |
239 void SetViewportSizeInvalid(); | 239 void SetViewportSizeInvalid(); |
240 void ResetViewportSizeInvalid(); | 240 void ResetViewportSizeInvalid(); |
241 | 241 |
242 // Useful for debug assertions, probably shouldn't be used for anything else. | 242 // Useful for debug assertions, probably shouldn't be used for anything else. |
243 Proxy* proxy() const; | 243 Proxy* proxy() const; |
244 | 244 |
245 void SetRootLayerScrollOffsetDelegate( | 245 void SetRootLayerScrollOffsetDelegate( |
246 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); | 246 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); |
| 247 void OnRootLayerDelegatedScrollOffsetChanged(); |
247 void UpdateScrollOffsetDelegate(); | 248 void UpdateScrollOffsetDelegate(); |
248 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); | 249 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); |
249 | 250 |
250 // Call this function when you expect there to be a swap buffer. | 251 // Call this function when you expect there to be a swap buffer. |
251 // See swap_promise.h for how to use SwapPromise. | 252 // See swap_promise.h for how to use SwapPromise. |
252 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 253 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
253 | 254 |
254 // Take the |new_swap_promise| and append it to |swap_promise_list_|. | 255 // Take the |new_swap_promise| and append it to |swap_promise_list_|. |
255 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); | 256 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); |
256 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 257 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 399 |
399 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 400 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
400 | 401 |
401 private: | 402 private: |
402 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 403 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
403 }; | 404 }; |
404 | 405 |
405 } // namespace cc | 406 } // namespace cc |
406 | 407 |
407 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 408 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |