| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 89a6773ef38d8bd94fff36ecaf528e046124a866..11f13123973d793849470bfbcb31735b2d282266 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/auto_reset.h"
|
| #include "base/bind.h"
|
| #include "base/debug/trace_event.h"
|
| +#include "base/debug/trace_event_synthetic_delay.h"
|
| #include "base/metrics/histogram.h"
|
| #include "cc/debug/benchmark_instrumentation.h"
|
| #include "cc/input/input_handler.h"
|
| @@ -742,6 +743,7 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() {
|
| void ThreadProxy::BeginMainFrame(
|
| scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) {
|
| TRACE_EVENT0("cc", "ThreadProxy::BeginMainFrame");
|
| + TRACE_EVENT_SYNTHETIC_DELAY_ACTIVATE("cc.BeginMainFrame");
|
| DCHECK(IsMainThread());
|
|
|
| if (!layer_tree_host())
|
| @@ -818,6 +820,7 @@ void ThreadProxy::BeginMainFrame(
|
| layer_tree_host()->RecreateUIResources();
|
|
|
| layer_tree_host()->Layout();
|
| + TRACE_EVENT_SYNTHETIC_DELAY_APPLY("cc.BeginMainFrame");
|
|
|
| // Clear the commit flag after updating animations and layout here --- objects
|
| // that only layout when painted will trigger another SetNeedsCommit inside
|
| @@ -1062,6 +1065,7 @@ DrawSwapReadbackResult ThreadProxy::DrawSwapReadbackInternal(
|
| bool forced_draw,
|
| bool swap_requested,
|
| bool readback_requested) {
|
| + TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap");
|
| DrawSwapReadbackResult result;
|
| result.did_draw = false;
|
| result.did_swap = false;
|
|
|