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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest 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
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 bool SingleThreadProxy::MainFrameWillHappenForTesting() { 660 bool SingleThreadProxy::MainFrameWillHappenForTesting() {
661 return false; 661 return false;
662 } 662 }
663 663
664 void SingleThreadProxy::SetChildrenNeedBeginFrames( 664 void SingleThreadProxy::SetChildrenNeedBeginFrames(
665 bool children_need_begin_frames) { 665 bool children_need_begin_frames) {
666 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames( 666 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(
667 children_need_begin_frames); 667 children_need_begin_frames);
668 } 668 }
669 669
670 void SingleThreadProxy::SetAuthoritativeVSyncInterval(
671 const base::TimeDelta& interval) {
672 scheduler_on_impl_thread_->SetAuthoritativeVSyncInterval(interval);
673 }
674
670 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { 675 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
671 layer_tree_host_impl_->WillBeginImplFrame(args); 676 layer_tree_host_impl_->WillBeginImplFrame(args);
672 } 677 }
673 678
674 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() { 679 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() {
675 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame"); 680 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame");
676 // Although this proxy is single-threaded, it's problematic to synchronously 681 // Although this proxy is single-threaded, it's problematic to synchronously
677 // have BeginMainFrame happen after ScheduledActionSendBeginMainFrame. This 682 // have BeginMainFrame happen after ScheduledActionSendBeginMainFrame. This
678 // could cause a commit to occur in between a series of SetNeedsCommit calls 683 // could cause a commit to occur in between a series of SetNeedsCommit calls
679 // (i.e. property modifications) causing some to fall on one frame and some to 684 // (i.e. property modifications) causing some to fall on one frame and some to
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 836
832 void SingleThreadProxy::DidBeginImplFrameDeadline() { 837 void SingleThreadProxy::DidBeginImplFrameDeadline() {
833 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); 838 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
834 } 839 }
835 840
836 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 841 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
837 layer_tree_host_->SendBeginFramesToChildren(args); 842 layer_tree_host_->SendBeginFramesToChildren(args);
838 } 843 }
839 844
840 } // namespace cc 845 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698