Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2188093002: cc: Complete swap promise for aborted commit after pending activation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: post rebase fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/channel_main.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // When a SwapPromiseMonitor is created on the main thread, it calls 328 // When a SwapPromiseMonitor is created on the main thread, it calls
329 // InsertSwapPromiseMonitor() to register itself with LayerTreeHost. 329 // InsertSwapPromiseMonitor() to register itself with LayerTreeHost.
330 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() 330 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor()
331 // to unregister itself. 331 // to unregister itself.
332 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); 332 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor);
333 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); 333 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor);
334 334
335 // Call this function when you expect there to be a swap buffer. 335 // Call this function when you expect there to be a swap buffer.
336 // See swap_promise.h for how to use SwapPromise. 336 // See swap_promise.h for how to use SwapPromise.
337 void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise); 337 void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise);
338
339 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 338 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
339 std::vector<std::unique_ptr<SwapPromise>> TakeSwapPromises();
340 340
341 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } 341 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); }
342 342
343 void set_surface_client_id(uint32_t client_id); 343 void set_surface_client_id(uint32_t client_id);
344 SurfaceSequence CreateSurfaceSequence(); 344 SurfaceSequence CreateSurfaceSequence();
345 345
346 PropertyTrees* property_trees() { return &property_trees_; } 346 PropertyTrees* property_trees() { return &property_trees_; }
347 bool needs_meta_info_recomputation() { 347 bool needs_meta_info_recomputation() {
348 return needs_meta_info_recomputation_; 348 return needs_meta_info_recomputation_;
349 } 349 }
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 // Layer tree that hold layers. 601 // Layer tree that hold layers.
602 LayerTree layer_tree_; 602 LayerTree layer_tree_;
603 603
604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
605 }; 605 };
606 606
607 } // namespace cc 607 } // namespace cc
608 608
609 #endif // CC_TREES_LAYER_TREE_HOST_H_ 609 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/channel_main.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698