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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 4cb0a9e2562df52905f8be47a1b96bae0df9cc0f..5a40d7e5039dc38c3e92b2a7c1ed0257391b9824 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -103,7 +103,7 @@ void SingleThreadProxy::SetLayerTreeHostClientReady() {
}
void SingleThreadProxy::SetVisible(bool visible) {
- TRACE_EVENT0("cc", "SingleThreadProxy::SetVisible");
+ TRACE_EVENT1("cc", "SingleThreadProxy::SetVisible", "visible", visible);
DebugScopedSetImplThread impl(this);
layer_tree_host_impl_->SetVisible(visible);
if (scheduler_on_impl_thread_)
@@ -492,10 +492,9 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
}
{
- BeginFrameArgs begin_frame_args(
- BeginFrameArgs::Create(frame_begin_time,
- base::TimeTicks(),
- BeginFrameArgs::DefaultInterval()));
+ BeginFrameArgs begin_frame_args(BeginFrameArgs::Create(
+ frame_begin_time, base::TimeTicks(), BeginFrameArgs::DefaultInterval(),
+ BeginFrameArgs::SYNCHRONOUS));
DoBeginMainFrame(begin_frame_args);
DoCommit();
@@ -634,6 +633,12 @@ bool SingleThreadProxy::MainFrameWillHappenForTesting() {
return false;
}
+void SingleThreadProxy::SetChildrenNeedBeginFrames(
+ bool children_need_begin_frames) {
+ scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(
+ children_need_begin_frames);
+}
+
void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
layer_tree_host_impl_->WillBeginImplFrame(args);
}
@@ -792,4 +797,8 @@ void SingleThreadProxy::DidBeginImplFrameDeadline() {
layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
}
+void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
+ layer_tree_host_->SendBeginFramesToChildren(args);
+}
+
} // namespace cc
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698