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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // on the active tree if a new tree is activated. | 362 // on the active tree if a new tree is activated. |
363 void QueuePinnedSwapPromise(std::unique_ptr<SwapPromise> swap_promise); | 363 void QueuePinnedSwapPromise(std::unique_ptr<SwapPromise> swap_promise); |
364 | 364 |
365 // Takes ownership of |new_swap_promises|. Existing swap promises in | 365 // Takes ownership of |new_swap_promises|. Existing swap promises in |
366 // |swap_promise_list_| are cancelled (SWAP_FAILS). | 366 // |swap_promise_list_| are cancelled (SWAP_FAILS). |
367 void PassSwapPromises( | 367 void PassSwapPromises( |
368 std::vector<std::unique_ptr<SwapPromise>> new_swap_promises); | 368 std::vector<std::unique_ptr<SwapPromise>> new_swap_promises); |
369 void AppendSwapPromises( | 369 void AppendSwapPromises( |
370 std::vector<std::unique_ptr<SwapPromise>> new_swap_promises); | 370 std::vector<std::unique_ptr<SwapPromise>> new_swap_promises); |
371 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 371 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
| 372 void ClearSwapPromises(); |
372 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 373 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
373 | 374 |
374 void DidModifyTilePriorities(); | 375 void DidModifyTilePriorities(); |
375 | 376 |
376 ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 377 ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
377 void ProcessUIResourceRequestQueue(); | 378 void ProcessUIResourceRequestQueue(); |
378 | 379 |
379 bool IsUIResourceOpaque(UIResourceId uid) const; | 380 bool IsUIResourceOpaque(UIResourceId uid) const; |
380 | 381 |
381 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 382 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 | 562 |
562 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
563 | 564 |
564 private: | 565 private: |
565 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
566 }; | 567 }; |
567 | 568 |
568 } // namespace cc | 569 } // namespace cc |
569 | 570 |
570 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |