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

Unified Diff: cc/trees/threaded_channel.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
« cc/scheduler/scheduler.h ('K') | « cc/trees/threaded_channel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/threaded_channel.cc
diff --git a/cc/trees/threaded_channel.cc b/cc/trees/threaded_channel.cc
index 5c0cb6f66120db94923f9ba66f6f4ae981a1b59c..4c3bccfb0ed9ea1d892f227a19cea6b75025a535 100644
--- a/cc/trees/threaded_channel.cc
+++ b/cc/trees/threaded_channel.cc
@@ -80,10 +80,13 @@ void ThreadedChannel::SetNeedsCommitOnImpl() {
proxy_impl_->GetImplWeakPtr()));
}
-void ThreadedChannel::BeginMainFrameAbortedOnImpl(CommitEarlyOutReason reason) {
+void ThreadedChannel::BeginMainFrameAbortedOnImpl(
+ CommitEarlyOutReason reason,
+ base::TimeTicks main_thread_start_time) {
ImplThreadTaskRunner()->PostTask(
FROM_HERE, base::Bind(&ProxyImpl::BeginMainFrameAbortedOnImpl,
- proxy_impl_->GetImplWeakPtr(), reason));
+ proxy_impl_->GetImplWeakPtr(), reason,
+ main_thread_start_time));
}
void ThreadedChannel::SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {
@@ -92,10 +95,13 @@ void ThreadedChannel::SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {
proxy_impl_->GetImplWeakPtr(), damage_rect));
}
-void ThreadedChannel::StartCommitOnImpl(CompletionEvent* completion) {
+void ThreadedChannel::StartCommitOnImpl(
+ CompletionEvent* completion,
+ base::TimeTicks main_thread_start_time) {
ImplThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&ProxyImpl::StartCommitOnImpl,
- proxy_impl_->GetImplWeakPtr(), completion));
+ FROM_HERE,
+ base::Bind(&ProxyImpl::StartCommitOnImpl, proxy_impl_->GetImplWeakPtr(),
+ completion, main_thread_start_time));
}
void ThreadedChannel::SetVisibleOnImpl(CompletionEvent* completion,
« cc/scheduler/scheduler.h ('K') | « cc/trees/threaded_channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698