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

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

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl 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/single_thread_proxy.cc ('k') | cc/trees/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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void ScheduledActionCommit() override; 220 void ScheduledActionCommit() override;
221 void ScheduledActionActivateSyncTree() override; 221 void ScheduledActionActivateSyncTree() override;
222 void ScheduledActionBeginOutputSurfaceCreation() override; 222 void ScheduledActionBeginOutputSurfaceCreation() override;
223 void ScheduledActionPrepareTiles() override; 223 void ScheduledActionPrepareTiles() override;
224 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override; 224 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
225 base::TimeDelta DrawDurationEstimate() override; 225 base::TimeDelta DrawDurationEstimate() override;
226 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 226 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
227 base::TimeDelta CommitToActivateDurationEstimate() override; 227 base::TimeDelta CommitToActivateDurationEstimate() override;
228 void DidBeginImplFrameDeadline() override; 228 void DidBeginImplFrameDeadline() override;
229 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 229 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
230 void SendBeginMainFrameNotExpectedSoon() override;
230 231
231 // ResourceUpdateControllerClient implementation 232 // ResourceUpdateControllerClient implementation
232 void ReadyToFinalizeTextureUpdates() override; 233 void ReadyToFinalizeTextureUpdates() override;
233 234
234 protected: 235 protected:
235 ThreadProxy( 236 ThreadProxy(
236 LayerTreeHost* layer_tree_host, 237 LayerTreeHost* layer_tree_host,
237 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 238 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
238 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 239 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
239 scoped_ptr<BeginFrameSource> external_begin_frame_source); 240 scoped_ptr<BeginFrameSource> external_begin_frame_source);
240 241
241 private: 242 private:
242 // Called on main thread. 243 // Called on main thread.
243 void SetRendererCapabilitiesMainThreadCopy( 244 void SetRendererCapabilitiesMainThreadCopy(
244 const RendererCapabilities& capabilities); 245 const RendererCapabilities& capabilities);
245 void BeginMainFrame( 246 void BeginMainFrame(
246 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state); 247 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state);
248 void BeginMainFrameNotExpectedSoon();
247 void DidCommitAndDrawFrame(); 249 void DidCommitAndDrawFrame();
248 void DidCompleteSwapBuffers(); 250 void DidCompleteSwapBuffers();
249 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue); 251 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue);
250 void DidLoseOutputSurface(); 252 void DidLoseOutputSurface();
251 void RequestNewOutputSurface(); 253 void RequestNewOutputSurface();
252 void DidInitializeOutputSurface(bool success, 254 void DidInitializeOutputSurface(bool success,
253 const RendererCapabilities& capabilities); 255 const RendererCapabilities& capabilities);
254 void SendCommitRequestToImplThreadIfNeeded(); 256 void SendCommitRequestToImplThreadIfNeeded();
255 void DidCompletePageScaleAnimation(); 257 void DidCompletePageScaleAnimation();
256 258
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 304
303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 305 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 306 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
305 307
306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 308 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
307 }; 309 };
308 310
309 } // namespace cc 311 } // namespace cc
310 312
311 #endif // CC_TREES_THREAD_PROXY_H_ 313 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698