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

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: Fixed unit tests. New tests to be added. 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
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index eb24f62f21d610fca6db5dbd54b5e56d4b34dadd..98b6314b14604ef3fa9ff0b71f3c3b7782540b6f 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(
« cc/scheduler/scheduler.h ('K') | « 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