| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index f72e479e9b7074b3b81f7dd679052174a3bb3a5a..769a9294cedbd4b124555a52f80d7e05f318e56a 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -113,8 +113,8 @@ ThreadProxy::CompositorThreadOnly::CompositorThreadOnly(
|
| base::Bind(&ThreadProxy::RenewTreePriority, base::Unretained(proxy)),
|
| base::TimeDelta::FromMilliseconds(
|
| kSmoothnessTakesPriorityExpirationDelay * 1000)),
|
| - timing_history(rendering_stats_instrumentation),
|
| external_begin_frame_source(external_begin_frame_source.Pass()),
|
| + rendering_stats_instrumentation(rendering_stats_instrumentation),
|
| weak_factory(proxy) {
|
| }
|
|
|
| @@ -668,7 +668,6 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() {
|
| base::Passed(&begin_main_frame_state)));
|
| devtools_instrumentation::DidRequestMainThreadFrame(
|
| impl().layer_tree_host_id);
|
| - impl().timing_history.DidBeginMainFrame();
|
| }
|
|
|
| void ThreadProxy::SendBeginMainFrameNotExpectedSoon() {
|
| @@ -923,8 +922,6 @@ void ThreadProxy::ScheduledActionCommit() {
|
| SetInputThrottledUntilCommitOnImplThread(false);
|
|
|
| impl().next_frame_is_newly_committed_frame = true;
|
| -
|
| - impl().timing_history.DidCommit();
|
| }
|
|
|
| void ThreadProxy::ScheduledActionActivateSyncTree() {
|
| @@ -948,7 +945,6 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) {
|
| DCHECK(IsImplThread());
|
| DCHECK(impl().layer_tree_host_impl.get());
|
|
|
| - impl().timing_history.DidStartDrawing();
|
| base::AutoReset<bool> mark_inside(&impl().inside_draw, true);
|
|
|
| if (impl().layer_tree_host_impl->pending_tree()) {
|
| @@ -1000,9 +996,6 @@ DrawResult ThreadProxy::DrawSwapInternal(bool forced_draw) {
|
| base::Bind(&ThreadProxy::DidCommitAndDrawFrame, main_thread_weak_ptr_));
|
| }
|
|
|
| - if (result == DRAW_SUCCESS)
|
| - impl().timing_history.DidFinishDrawing();
|
| -
|
| DCHECK_NE(INVALID_RESULT, result);
|
| return result;
|
| }
|
| @@ -1036,18 +1029,6 @@ void ThreadProxy::ScheduledActionInvalidateOutputSurface() {
|
| impl().layer_tree_host_impl->output_surface()->Invalidate();
|
| }
|
|
|
| -base::TimeDelta ThreadProxy::DrawDurationEstimate() {
|
| - return impl().timing_history.DrawDurationEstimate();
|
| -}
|
| -
|
| -base::TimeDelta ThreadProxy::BeginMainFrameToCommitDurationEstimate() {
|
| - return impl().timing_history.BeginMainFrameToCommitDurationEstimate();
|
| -}
|
| -
|
| -base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() {
|
| - return impl().timing_history.CommitToActivateDurationEstimate();
|
| -}
|
| -
|
| void ThreadProxy::DidFinishImplFrame() {
|
| impl().layer_tree_host_impl->DidFinishImplFrame();
|
| }
|
| @@ -1085,11 +1066,9 @@ void ThreadProxy::InitializeImplOnImplThread(CompletionEvent* completion) {
|
| SchedulerSettings scheduler_settings(
|
| layer_tree_host()->settings().ToSchedulerSettings());
|
| impl().scheduler = Scheduler::Create(
|
| - this,
|
| - scheduler_settings,
|
| - impl().layer_tree_host_id,
|
| - ImplThreadTaskRunner(),
|
| - impl().external_begin_frame_source.Pass());
|
| + this, scheduler_settings, impl().layer_tree_host_id,
|
| + ImplThreadTaskRunner(), impl().external_begin_frame_source.Pass(),
|
| + impl().rendering_stats_instrumentation);
|
| impl().scheduler->SetVisible(impl().layer_tree_host_impl->visible());
|
| impl_thread_weak_ptr_ = impl().weak_factory.GetWeakPtr();
|
| completion->Signal();
|
| @@ -1252,7 +1231,6 @@ void ThreadProxy::DidActivateSyncTree() {
|
| impl().completion_event_for_commit_held_on_tree_activation = NULL;
|
| }
|
|
|
| - impl().timing_history.DidActivateSyncTree();
|
| impl().last_processed_begin_main_frame_args =
|
| impl().last_begin_main_frame_args;
|
| }
|
|
|