| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 6481a4d1106837eeb78f2c432689b2273f601e91..2ced4b1badd5231f3356f7174ed26e9402210d0b 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -15,6 +15,7 @@
|
| #include "cc/base/swap_promise.h"
|
| #include "cc/debug/benchmark_instrumentation.h"
|
| #include "cc/debug/devtools_instrumentation.h"
|
| +#include "cc/debug/smoothness_timing_tracker.h"
|
| #include "cc/input/input_handler.h"
|
| #include "cc/output/context_provider.h"
|
| #include "cc/output/output_surface.h"
|
| @@ -704,6 +705,12 @@ 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();
|
| + begin_main_frame_state->smoothness_composite_counts =
|
| + impl()
|
| + .layer_tree_host_impl->smoothness_tracker()
|
| + ->CalculateCompositeCounts();
|
| + impl().layer_tree_host_impl->smoothness_tracker()->clear_events();
|
| +
|
| Proxy::MainThreadTaskRunner()->PostTask(
|
| FROM_HERE,
|
| base::Bind(&ThreadProxy::BeginMainFrame,
|
| @@ -782,6 +789,9 @@ void ThreadProxy::BeginMainFrame(
|
| layer_tree_host()->ApplyScrollAndScale(
|
| begin_main_frame_state->scroll_info.get());
|
|
|
| + layer_tree_host()->RecordCompositeTiming(
|
| + *begin_main_frame_state->smoothness_composite_counts);
|
| +
|
| layer_tree_host()->WillBeginMainFrame();
|
|
|
| layer_tree_host()->BeginMainFrame(begin_main_frame_state->begin_frame_args);
|
|
|