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

Unified Diff: cc/trees/layer_tree_host_impl.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 07162c06159669372fa6ebe585eb25dd02999243..7f13dce885b4dbe994f533c0927a547a2ca1e4e4 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -236,7 +236,9 @@ class CC_EXPORT LayerTreeHostImpl
DISALLOW_COPY_AND_ASSIGN(FrameData);
};
- virtual void BeginMainFrameAborted(CommitEarlyOutReason reason);
+ virtual void BeginMainFrameAborted(
+ CommitEarlyOutReason reason,
+ std::vector<std::unique_ptr<SwapPromise>> swap_promises);
virtual void ReadyToCommit() {} // For tests.
virtual void BeginCommit();
virtual void CommitComplete();
@@ -489,18 +491,10 @@ class CC_EXPORT LayerTreeHostImpl
max_memory_needed_bytes_ = bytes;
}
- FrameRateCounter* fps_counter() {
- return fps_counter_.get();
- }
- MemoryHistory* memory_history() {
- return memory_history_.get();
- }
- DebugRectHistory* debug_rect_history() {
- return debug_rect_history_.get();
- }
- ResourceProvider* resource_provider() {
- return resource_provider_.get();
- }
+ FrameRateCounter* fps_counter() { return fps_counter_.get(); }
+ MemoryHistory* memory_history() { return memory_history_.get(); }
+ DebugRectHistory* debug_rect_history() { return debug_rect_history_.get(); }
+ ResourceProvider* resource_provider() { return resource_provider_.get(); }
TopControlsManager* top_controls_manager() {
return top_controls_manager_.get();
}
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698