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

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: 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/threaded_channel.h ('k') | components/mus/surfaces/surfaces_scheduler.cc » ('j') | 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 b723f8c612a93f880182836b0887bc76bed6d66c..1bcd638d7bfa652050b004792463b6bfc8364385 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) {
@@ -94,11 +97,13 @@ void ThreadedChannel::SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) {
void ThreadedChannel::StartCommitOnImpl(CompletionEvent* completion,
LayerTreeHost* layer_tree_host,
+ base::TimeTicks main_thread_start_time,
bool hold_commit_for_activation) {
ImplThreadTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&ProxyImpl::StartCommitOnImpl, proxy_impl_->GetImplWeakPtr(),
- completion, layer_tree_host, hold_commit_for_activation));
+ completion, layer_tree_host, main_thread_start_time,
+ hold_commit_for_activation));
}
void ThreadedChannel::InitializeImplOnImpl(CompletionEvent* completion,
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | components/mus/surfaces/surfaces_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698