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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 bool ViewportSizeInvalid() const; | 257 bool ViewportSizeInvalid() const; |
258 void SetViewportSizeInvalid(); | 258 void SetViewportSizeInvalid(); |
259 void ResetViewportSizeInvalid(); | 259 void ResetViewportSizeInvalid(); |
260 | 260 |
261 // Useful for debug assertions, probably shouldn't be used for anything else. | 261 // Useful for debug assertions, probably shouldn't be used for anything else. |
262 Proxy* proxy() const; | 262 Proxy* proxy() const; |
263 | 263 |
264 void SetRootLayerScrollOffsetDelegate( | 264 void SetRootLayerScrollOffsetDelegate( |
265 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); | 265 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate); |
266 void OnRootLayerDelegatedScrollOffsetChanged(); | 266 void OnRootLayerDelegatedScrollOffsetChanged(); |
267 void UpdateScrollOffsetDelegate(); | 267 void UpdateScrollOffsetDelegateIfNeeded(); |
268 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); | 268 gfx::ScrollOffset GetDelegatedScrollOffset(LayerImpl* layer); |
269 | 269 |
270 // Call this function when you expect there to be a swap buffer. | 270 // Call this function when you expect there to be a swap buffer. |
271 // See swap_promise.h for how to use SwapPromise. | 271 // See swap_promise.h for how to use SwapPromise. |
272 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 272 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
273 | 273 |
274 // Take the |new_swap_promise| and append it to |swap_promise_list_|. | 274 // Take the |new_swap_promise| and append it to |swap_promise_list_|. |
275 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); | 275 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); |
276 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 276 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
277 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 277 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 420 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
421 | 421 |
422 private: | 422 private: |
423 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 423 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
424 }; | 424 }; |
425 | 425 |
426 } // namespace cc | 426 } // namespace cc |
427 | 427 |
428 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 428 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |