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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 2778223005: Plumb activation time to main (Closed)
Patch Set: remove performance observer Created 3 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 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 eeae9b6caf8a2314eff0c5b06a1a0e636cce4da3..4d79dfc8fc14be1fbe5a55ec90f245077dc0f258 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -623,6 +623,13 @@ void SingleThreadProxy::SendBeginMainFrameNotExpectedSoon() {
layer_tree_host_->BeginMainFrameNotExpectedSoon();
}
+int SingleThreadProxy::SyncTreeSourceFrameNumber() {
+ if (layer_tree_host_impl_ && layer_tree_host_impl_->pending_tree())
+ return layer_tree_host_impl_->pending_tree()->source_frame_number();
+ else
+ return 0;
+}
+
void SingleThreadProxy::BeginMainFrame(const BeginFrameArgs& begin_frame_args) {
if (scheduler_on_impl_thread_) {
scheduler_on_impl_thread_->NotifyBeginMainFrameStarted(

Powered by Google App Engine
This is Rietveld 408576698