diff options
3 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc index 9e97773..853684f 100644 --- a/content/browser/renderer_host/compositor_impl_android.cc +++ b/content/browser/renderer_host/compositor_impl_android.cc @@ -438,6 +438,7 @@ void CompositorImpl::CreateLayerTreeHost() { } void CompositorImpl::SetVisible(bool visible) { + TRACE_EVENT1("cc", "CompositorImpl::SetVisible", "visible", visible); if (!visible) { DCHECK(host_); // Look for any layers that were attached to the root for readback diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 3a2e524..24f0286 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -2223,6 +2223,8 @@ void RenderProcessHostImpl::OnDumpHandlesDone() { } void RenderProcessHostImpl::SetBackgrounded(bool backgrounded) { + TRACE_EVENT1("renderer_host", "RenderProcessHostImpl::SetBackgrounded", + "backgrounded", backgrounded); // Note: we always set the backgrounded_ value. If the process is NULL // (and hence hasn't been created yet), we will set the process priority // later when we create the process. diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc index dfff5e5..4aef7b8 100644 --- a/content/browser/renderer_host/render_widget_host_impl.cc +++ b/content/browser/renderer_host/render_widget_host_impl.cc @@ -511,6 +511,7 @@ void RenderWidgetHostImpl::WasHidden() { if (is_hidden_) return; + TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::WasHidden"); is_hidden_ = true; // Don't bother reporting hung state when we aren't active. @@ -533,6 +534,8 @@ void RenderWidgetHostImpl::WasHidden() { void RenderWidgetHostImpl::WasShown(const ui::LatencyInfo& latency_info) { if (!is_hidden_) return; + + TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::WasShown"); is_hidden_ = false; SendScreenRects(); |