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

Unified Diff: cc/trees/thread_proxy.cc

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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
« cc/trees/layer_tree_host_impl_unittest.cc ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index 8c766f273da9ab0a291133710fed1a7e10b27968..bd5106f2f395639c0fac4b57f448ee54483b982e 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -691,6 +691,8 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() {
impl().layer_tree_host_impl->memory_allocation_priority_cutoff();
begin_main_frame_state->evicted_ui_resources =
impl().layer_tree_host_impl->EvictedUIResourcesExist();
+ impl().layer_tree_host_impl->SetBeginMainFrameTime(
enne (OOO) 2015/03/10 00:32:29 Can you rename this to be something other than "Be
vmpstr 2015/03/16 18:36:43 Done.
+ impl().scheduler->LastBeginImplFrameTime());
mithro-old 2015/03/11 04:01:33 What is LastBeginImplFrameTime here? If it is as
vmpstr 2015/03/16 18:36:43 Done.
Proxy::MainThreadTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&ThreadProxy::BeginMainFrame,
@@ -1394,4 +1396,9 @@ void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() {
main_thread_weak_ptr_));
}
+base::TimeTicks ThreadProxy::GetNextBeginImplFrameTimeIfRequested() const {
mithro-old 2015/03/11 04:01:33 What is this used for?
vmpstr 2015/03/16 18:36:43 This plumbs the next predicted raf time to lthi vi
+ DCHECK(IsImplThread());
+ return impl().scheduler->NextBeginImplFrameTimeIfRequested();
+}
+
} // namespace cc
« cc/trees/layer_tree_host_impl_unittest.cc ('K') | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698