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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1032703002: Trace background/visibility events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index dfff5e5e77508cb6a8325cf88392c61f865bcc8b..4023f093e0c48bb94c7d019c12b183fafb819e92 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("browser", "RenderWidgetHostImpl::WasHidden");
no sievers 2015/03/25 21:56:10 maybe this should be in the 'renderer_host' catego
jdduke (slow) 2015/03/25 22:19:23 Absolutely, I even had that in my local branch =/.
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("browser", "RenderWidgetHostImpl::WasShown");
is_hidden_ = false;
SendScreenRects();
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698