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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: update test; remove test-only method in proxy_main Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 07b5afa607a72b95240466e413a98e6d880c3ae8..ea2006f8bec09e420dc011ea29f9b9526a6d3f35 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -319,8 +319,11 @@ void SingleThreadProxy::OnCanDrawStateChanged(bool can_draw) {
void SingleThreadProxy::NotifyReadyToActivate() {
TRACE_EVENT0("cc", "SingleThreadProxy::NotifyReadyToActivate");
DebugScopedSetImplThread impl(task_runner_provider_);
- if (scheduler_on_impl_thread_)
- scheduler_on_impl_thread_->NotifyReadyToActivate();
+ if (scheduler_on_impl_thread_) {
+ // The argument to NotifyReadyToActivate is the pending-tree for computing
+ // Activation time in ProxyImpl. However this is not applicable here.
+ scheduler_on_impl_thread_->NotifyReadyToActivate(0);
+ }
}
void SingleThreadProxy::NotifyReadyToDraw() {
@@ -456,7 +459,8 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
BeginFrameArgs begin_frame_args(BeginFrameArgs::Create(
BEGINFRAME_FROM_HERE, BeginFrameArgs::kManualSourceId, 1,
- frame_begin_time, base::TimeTicks(), BeginFrameArgs::DefaultInterval(),
+ BeginFrameArgs::kDefaultSourceFrameNumber, frame_begin_time,
+ base::TimeTicks(), BeginFrameArgs::DefaultInterval(),
BeginFrameArgs::NORMAL));
// Start the impl frame.

Powered by Google App Engine
This is Rietveld 408576698