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

Side by Side Diff: cc/trees/proxy_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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/proxy_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 void UpdateTopControlsStateOnImpl(TopControlsState constraints, 33 void UpdateTopControlsStateOnImpl(TopControlsState constraints,
34 TopControlsState current, 34 TopControlsState current,
35 bool animate); 35 bool animate);
36 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface); 36 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface);
37 void InitializeMutatorOnImpl(std::unique_ptr<LayerTreeMutator> mutator); 37 void InitializeMutatorOnImpl(std::unique_ptr<LayerTreeMutator> mutator);
38 void MainThreadHasStoppedFlingingOnImpl(); 38 void MainThreadHasStoppedFlingingOnImpl();
39 void SetInputThrottledUntilCommitOnImpl(bool is_throttled); 39 void SetInputThrottledUntilCommitOnImpl(bool is_throttled);
40 void SetDeferCommitsOnImpl(bool defer_commits) const; 40 void SetDeferCommitsOnImpl(bool defer_commits) const;
41 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); 41 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect);
42 void SetNeedsCommitOnImpl(); 42 void SetNeedsCommitOnImpl();
43 void BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason, 43 void BeginMainFrameAbortedOnImpl(
44 base::TimeTicks main_thread_start_time); 44 CommitEarlyOutReason reason,
45 base::TimeTicks main_thread_start_time,
46 std::vector<std::unique_ptr<SwapPromise>> swap_promises);
45 void FinishAllRenderingOnImpl(CompletionEvent* completion); 47 void FinishAllRenderingOnImpl(CompletionEvent* completion);
46 void SetVisibleOnImpl(bool visible); 48 void SetVisibleOnImpl(bool visible);
47 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion); 49 void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion);
48 void FinishGLOnImpl(CompletionEvent* completion); 50 void FinishGLOnImpl(CompletionEvent* completion);
49 void NotifyReadyToCommitOnImpl(CompletionEvent* completion, 51 void NotifyReadyToCommitOnImpl(CompletionEvent* completion,
50 LayerTreeHost* layer_tree_host, 52 LayerTreeHost* layer_tree_host,
51 base::TimeTicks main_thread_start_time, 53 base::TimeTicks main_thread_start_time,
52 bool hold_commit_for_activation); 54 bool hold_commit_for_activation);
53 55
54 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion, 56 void MainFrameWillHappenOnImplForTesting(CompletionEvent* completion,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Use accessors instead of this variable directly. 152 // Use accessors instead of this variable directly.
151 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; 153 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_;
152 BlockedMainCommitOnly& blocked_main_commit(); 154 BlockedMainCommitOnly& blocked_main_commit();
153 155
154 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 156 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
155 }; 157 };
156 158
157 } // namespace cc 159 } // namespace cc
158 160
159 #endif // CC_TREES_PROXY_IMPL_H_ 161 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698