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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 787763006: cc: Adding BeginFrameTracker object and removing Now() from LTHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding documentation as requested by Brian. Created 6 years 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.h ('K') | « cc/trees/layer_tree_impl.cc ('k') | no next file » | 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 ff2ea9004141b4df8e91fc3de8bef8b2fde96f11..7c47ee8961c9706890129766c3d63bc3b6e8a8c6 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -495,6 +495,7 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
BeginFrameArgs begin_frame_args(BeginFrameArgs::Create(
BEGINFRAME_FROM_HERE, frame_begin_time, base::TimeTicks(),
BeginFrameArgs::DefaultInterval(), BeginFrameArgs::SYNCHRONOUS));
+ layer_tree_host_impl_->UpdateCurrentBeginFrameArgs(begin_frame_args);
DoBeginMainFrame(begin_frame_args);
DoCommit();
@@ -520,6 +521,8 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) {
// another draw will never be scheduled, so break remaining promises.
layer_tree_host_impl_->active_tree()->BreakSwapPromises(
SwapPromise::SWAP_FAILS);
+
+ layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
}
}
@@ -594,7 +597,6 @@ DrawResult SingleThreadProxy::DoComposite(base::TimeTicks frame_begin_time,
bool start_ready_animations = draw_frame;
layer_tree_host_impl_->UpdateAnimationState(start_ready_animations);
- layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame();
timing_history_.DidFinishDrawing();
}
« cc/trees/layer_tree_host_impl.h ('K') | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698