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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 // may only be queued on the active tree. | 351 // may only be queued on the active tree. |
352 // | 352 // |
353 // An active tree pinned swap promise will see only DidSwap() or | 353 // An active tree pinned swap promise will see only DidSwap() or |
354 // DidNotSwap(SWAP_FAILS). No DidActivate() will be seen because | 354 // DidNotSwap(SWAP_FAILS). No DidActivate() will be seen because |
355 // that has already happened prior to queueing of the swap promise. | 355 // that has already happened prior to queueing of the swap promise. |
356 // | 356 // |
357 // Pinned active tree swap promises will not be broken prematurely | 357 // Pinned active tree swap promises will not be broken prematurely |
358 // on the active tree if a new tree is activated. | 358 // on the active tree if a new tree is activated. |
359 void QueuePinnedSwapPromise(std::unique_ptr<SwapPromise> swap_promise); | 359 void QueuePinnedSwapPromise(std::unique_ptr<SwapPromise> swap_promise); |
360 | 360 |
361 // Take the |new_swap_promise| and append it to |swap_promise_list_|. | 361 // Takes the |new_swap_promises| and appends it to |swap_promise_list_|. |
danakj
2016/08/10 01:04:15
"appends them" while youre fixing this
| |
362 void PassSwapPromises( | 362 void PassSwapPromises( |
363 std::vector<std::unique_ptr<SwapPromise>>* new_swap_promise); | 363 std::vector<std::unique_ptr<SwapPromise>>* new_swap_promises); |
364 void FinishSwapPromises(CompositorFrameMetadata* metadata); | 364 void FinishSwapPromises(CompositorFrameMetadata* metadata); |
365 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 365 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
366 | 366 |
367 void DidModifyTilePriorities(); | 367 void DidModifyTilePriorities(); |
368 | 368 |
369 ResourceId ResourceIdForUIResource(UIResourceId uid) const; | 369 ResourceId ResourceIdForUIResource(UIResourceId uid) const; |
370 void ProcessUIResourceRequestQueue(); | 370 void ProcessUIResourceRequestQueue(); |
371 | 371 |
372 bool IsUIResourceOpaque(UIResourceId uid) const; | 372 bool IsUIResourceOpaque(UIResourceId uid) const; |
373 | 373 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
550 | 550 |
551 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 551 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
552 | 552 |
553 private: | 553 private: |
554 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 554 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
555 }; | 555 }; |
556 | 556 |
557 } // namespace cc | 557 } // namespace cc |
558 | 558 |
559 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 559 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |