| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // See swap_promise.h for how to use SwapPromise. | 279 // See swap_promise.h for how to use SwapPromise. |
| 280 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 280 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 281 | 281 |
| 282 // Take the |new_swap_promise| and append it to |swap_promise_list_|. | 282 // Take the |new_swap_promise| and append it to |swap_promise_list_|. |
| 283 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); | 283 void PassSwapPromises(ScopedPtrVector<SwapPromise>* new_swap_promise); |
| 284 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 284 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
| 285 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 285 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 286 | 286 |
| 287 void DidModifyTilePriorities(); | 287 void DidModifyTilePriorities(); |
| 288 | 288 |
| 289 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 289 ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
| 290 void ProcessUIResourceRequestQueue(); | 290 void ProcessUIResourceRequestQueue(); |
| 291 | 291 |
| 292 bool IsUIResourceOpaque(UIResourceId uid) const; | 292 bool IsUIResourceOpaque(UIResourceId uid) const; |
| 293 | 293 |
| 294 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 294 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 295 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 295 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 296 const std::vector<PictureLayerImpl*>& picture_layers() const { | 296 const std::vector<PictureLayerImpl*>& picture_layers() const { |
| 297 return picture_layers_; | 297 return picture_layers_; |
| 298 } | 298 } |
| 299 | 299 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 427 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 428 | 428 |
| 429 private: | 429 private: |
| 430 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 430 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace cc | 433 } // namespace cc |
| 434 | 434 |
| 435 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 435 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |