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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/property_tree_builder.cc ('k') | cc/trees/single_thread_proxy.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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void DidActivateSyncTree() override; 107 void DidActivateSyncTree() override;
108 void DidPrepareTiles() override; 108 void DidPrepareTiles() override;
109 void DidCompletePageScaleAnimationOnImplThread() override; 109 void DidCompletePageScaleAnimationOnImplThread() override;
110 void SetDebugState(const LayerTreeDebugState& debug_state) override {} 110 void SetDebugState(const LayerTreeDebugState& debug_state) override {}
111 111
112 void RequestNewOutputSurface(); 112 void RequestNewOutputSurface();
113 113
114 // Called by the legacy path where RenderWidget does the scheduling. 114 // Called by the legacy path where RenderWidget does the scheduling.
115 void CompositeImmediately(base::TimeTicks frame_begin_time); 115 void CompositeImmediately(base::TimeTicks frame_begin_time);
116 116
117 private: 117 protected:
118 SingleThreadProxy( 118 SingleThreadProxy(
119 LayerTreeHost* layer_tree_host, 119 LayerTreeHost* layer_tree_host,
120 LayerTreeHostSingleThreadClient* client, 120 LayerTreeHostSingleThreadClient* client,
121 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 121 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
122 scoped_ptr<BeginFrameSource> external_begin_frame_source); 122 scoped_ptr<BeginFrameSource> external_begin_frame_source);
123 123
124 private:
124 void BeginMainFrame(); 125 void BeginMainFrame();
125 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); 126 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason);
126 void DoAnimate(); 127 void DoAnimate();
127 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); 128 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args);
128 void DoCommit(); 129 void DoCommit();
129 DrawResult DoComposite(base::TimeTicks frame_begin_time, 130 DrawResult DoComposite(base::TimeTicks frame_begin_time,
130 LayerTreeHostImpl::FrameData* frame); 131 LayerTreeHostImpl::FrameData* frame);
131 void DoSwap(); 132 void DoSwap();
132 void DidCommitAndDrawFrame(); 133 void DidCommitAndDrawFrame();
133 void CommitComplete(); 134 void CommitComplete();
(...skipping 13 matching lines...) Expand all
147 // Accessed from both threads. 148 // Accessed from both threads.
148 scoped_ptr<Scheduler> scheduler_on_impl_thread_; 149 scoped_ptr<Scheduler> scheduler_on_impl_thread_;
149 ProxyTimingHistory timing_history_; 150 ProxyTimingHistory timing_history_;
150 151
151 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; 152 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_;
152 scoped_ptr<ResourceUpdateQueue> queue_for_commit_; 153 scoped_ptr<ResourceUpdateQueue> queue_for_commit_;
153 bool next_frame_is_newly_committed_frame_; 154 bool next_frame_is_newly_committed_frame_;
154 155
155 bool inside_draw_; 156 bool inside_draw_;
156 bool defer_commits_; 157 bool defer_commits_;
157 bool commit_was_deferred_;
158 bool commit_requested_; 158 bool commit_requested_;
159 bool inside_synchronous_composite_; 159 bool inside_synchronous_composite_;
160 160
161 // True if a request to the LayerTreeHostClient to create an output surface 161 // True if a request to the LayerTreeHostClient to create an output surface
162 // is still outstanding. 162 // is still outstanding.
163 bool output_surface_creation_requested_; 163 bool output_surface_creation_requested_;
164 164
165 // This is the callback for the scheduled RequestNewOutputSurface. 165 // This is the callback for the scheduled RequestNewOutputSurface.
166 base::CancelableClosure output_surface_creation_callback_; 166 base::CancelableClosure output_surface_creation_callback_;
167 167
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 private: 229 private:
230 DebugScopedSetImplThread impl_thread_; 230 DebugScopedSetImplThread impl_thread_;
231 DebugScopedSetMainThreadBlocked main_thread_blocked_; 231 DebugScopedSetMainThreadBlocked main_thread_blocked_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
234 }; 234 };
235 235
236 } // namespace cc 236 } // namespace cc
237 237
238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698