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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 1432463002: cc: Track BeginMainFrame more precisely in CompositorTimingHistory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase; fix typo Created 5 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/proxy_impl.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 ce67d341b5b3e169f27d911eb629ca69af0b18ce..9ddf997d2a88cbf1103b9e30986c9082eafbc17b 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -752,6 +752,11 @@ void SingleThreadProxy::SendBeginMainFrameNotExpectedSoon() {
}
void SingleThreadProxy::BeginMainFrame(const BeginFrameArgs& begin_frame_args) {
+ if (scheduler_on_impl_thread_) {
+ scheduler_on_impl_thread_->NotifyBeginMainFrameStarted(
+ base::TimeTicks::Now());
+ }
+
commit_requested_ = false;
animate_requested_ = false;
@@ -805,10 +810,8 @@ void SingleThreadProxy::DoBeginMainFrame(
// TODO(enne): SingleThreadProxy does not support cancelling commits yet,
// search for CommitEarlyOutReason::FINISHED_NO_UPDATES inside
// thread_proxy.cc
- if (scheduler_on_impl_thread_) {
- scheduler_on_impl_thread_->NotifyBeginMainFrameStarted();
+ if (scheduler_on_impl_thread_)
scheduler_on_impl_thread_->NotifyReadyToCommit();
- }
}
void SingleThreadProxy::BeginMainFrameAbortedOnImplThread(
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698