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

Unified Diff: cc/trees/thread_proxy.cc

Issue 1415763008: cc: Remove ThreadProxy dependency on LTHI::CurrentBeginFrameArgs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CompositorTimingHistory2
Patch Set: 80 chars 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/thread_proxy.h ('k') | components/mus/surfaces/surfaces_scheduler.h » ('j') | 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 5bd9c71f5e985fae20731918a6c05fcb64e9e0e3..429020496307c85b14ef0cef406e4dd2c0ed823e 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -334,8 +334,7 @@ void ThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
// set, that means the current frame is one past the frame in which we've
// finished the processing.
impl().layer_tree_host_impl->RecordMainFrameTiming(
- impl().last_processed_begin_main_frame_args,
- impl().layer_tree_host_impl->CurrentBeginFrameArgs());
+ impl().last_processed_begin_main_frame_args, args);
impl().last_processed_begin_main_frame_args = BeginFrameArgs();
}
}
@@ -562,15 +561,15 @@ void ThreadProxy::FinishAllRenderingOnImpl(CompletionEvent* completion) {
completion->Signal();
}
-void ThreadProxy::ScheduledActionSendBeginMainFrame() {
+void ThreadProxy::ScheduledActionSendBeginMainFrame(
+ const BeginFrameArgs& args) {
unsigned int begin_frame_id = nextBeginFrameId++;
benchmark_instrumentation::ScopedBeginFrameTask begin_frame_task(
benchmark_instrumentation::kSendBeginFrame, begin_frame_id);
scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state(
new BeginMainFrameAndCommitState);
begin_main_frame_state->begin_frame_id = begin_frame_id;
- begin_main_frame_state->begin_frame_args =
- impl().layer_tree_host_impl->CurrentBeginFrameArgs();
+ begin_main_frame_state->begin_frame_args = args;
begin_main_frame_state->scroll_info =
impl().layer_tree_host_impl->ProcessScrollDeltas();
begin_main_frame_state->memory_allocation_limit_bytes =
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | components/mus/surfaces/surfaces_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698