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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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.h ('k') | cc/trees/swap_promise_monitor.h » ('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 #include "cc/trees/single_thread_proxy.h" 5 #include "cc/trees/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "cc/debug/benchmark_instrumentation.h" 9 #include "cc/debug/benchmark_instrumentation.h"
10 #include "cc/debug/devtools_instrumentation.h" 10 #include "cc/debug/devtools_instrumentation.h"
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 if (scheduler_on_impl_thread_) 481 if (scheduler_on_impl_thread_)
482 scheduler_on_impl_thread_->DidLoseOutputSurface(); 482 scheduler_on_impl_thread_->DidLoseOutputSurface();
483 } 483 }
484 484
485 void SingleThreadProxy::CommitVSyncParameters(base::TimeTicks timebase, 485 void SingleThreadProxy::CommitVSyncParameters(base::TimeTicks timebase,
486 base::TimeDelta interval) { 486 base::TimeDelta interval) {
487 if (scheduler_on_impl_thread_) 487 if (scheduler_on_impl_thread_)
488 scheduler_on_impl_thread_->CommitVSyncParameters(timebase, interval); 488 scheduler_on_impl_thread_->CommitVSyncParameters(timebase, interval);
489 } 489 }
490 490
491 void SingleThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) {
492 if (scheduler_on_impl_thread_)
493 scheduler_on_impl_thread_->SetEstimatedParentDrawTime(draw_time);
494 }
495
491 void SingleThreadProxy::DidSwapBuffersOnImplThread() { 496 void SingleThreadProxy::DidSwapBuffersOnImplThread() {
492 TRACE_EVENT0("cc", "SingleThreadProxy::DidSwapBuffersOnImplThread"); 497 TRACE_EVENT0("cc", "SingleThreadProxy::DidSwapBuffersOnImplThread");
493 if (scheduler_on_impl_thread_) 498 if (scheduler_on_impl_thread_)
494 scheduler_on_impl_thread_->DidSwapBuffers(); 499 scheduler_on_impl_thread_->DidSwapBuffers();
495 client_->DidPostSwapBuffers(); 500 client_->DidPostSwapBuffers();
496 } 501 }
497 502
498 void SingleThreadProxy::DidSwapBuffersCompleteOnImplThread() { 503 void SingleThreadProxy::DidSwapBuffersCompleteOnImplThread() {
499 TRACE_EVENT0("cc,benchmark", 504 TRACE_EVENT0("cc,benchmark",
500 "SingleThreadProxy::DidSwapBuffersCompleteOnImplThread"); 505 "SingleThreadProxy::DidSwapBuffersCompleteOnImplThread");
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 823
819 void SingleThreadProxy::DidBeginImplFrameDeadline() { 824 void SingleThreadProxy::DidBeginImplFrameDeadline() {
820 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); 825 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
821 } 826 }
822 827
823 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 828 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
824 layer_tree_host_->SendBeginFramesToChildren(args); 829 layer_tree_host_->SendBeginFramesToChildren(args);
825 } 830 }
826 831
827 } // namespace cc 832 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/swap_promise_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698