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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile error Created 7 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 #include <cairo/cairo.h> 7 #include <cairo/cairo.h>
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #include <gdk/gdkkeysyms.h> 9 #include <gdk/gdkkeysyms.h>
10 #include <gdk/gdkx.h> 10 #include <gdk/gdkx.h>
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1202 }
1203 if (!web_contents_switch_paint_time_.is_null()) { 1203 if (!web_contents_switch_paint_time_.is_null()) {
1204 base::TimeDelta web_contents_switch_paint_duration = 1204 base::TimeDelta web_contents_switch_paint_duration =
1205 base::TimeTicks::Now() - web_contents_switch_paint_time_; 1205 base::TimeTicks::Now() - web_contents_switch_paint_time_;
1206 UMA_HISTOGRAM_TIMES("MPArch.RWH_TabSwitchPaintDuration", 1206 UMA_HISTOGRAM_TIMES("MPArch.RWH_TabSwitchPaintDuration",
1207 web_contents_switch_paint_duration); 1207 web_contents_switch_paint_duration);
1208 // Reset web_contents_switch_paint_time_ to 0 so future tab selections are 1208 // Reset web_contents_switch_paint_time_ to 0 so future tab selections are
1209 // recorded. 1209 // recorded.
1210 web_contents_switch_paint_time_ = base::TimeTicks(); 1210 web_contents_switch_paint_time_ = base::TimeTicks();
1211 } 1211 }
1212 software_latency_info_.swap_timestamp = base::TimeTicks::HighResNow(); 1212 software_latency_info_.AddLatencyNumber(
1213 ui::INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT, 0, 0);
1213 render_widget_host->FrameSwapped(software_latency_info_); 1214 render_widget_host->FrameSwapped(software_latency_info_);
1214 software_latency_info_.Clear(); 1215 software_latency_info_.Clear();
1215 } else { 1216 } else {
1216 if (window) 1217 if (window)
1217 gdk_window_clear(window); 1218 gdk_window_clear(window);
1218 if (whiteout_start_time_.is_null()) 1219 if (whiteout_start_time_.is_null())
1219 whiteout_start_time_ = base::TimeTicks::Now(); 1220 whiteout_start_time_ = base::TimeTicks::Now();
1220 } 1221 }
1221 } 1222 }
1222 1223
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 gfx::PluginWindowHandle id) { 1576 gfx::PluginWindowHandle id) {
1576 plugin_container_manager_.CreatePluginContainer(id); 1577 plugin_container_manager_.CreatePluginContainer(id);
1577 } 1578 }
1578 1579
1579 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( 1580 void RenderWidgetHostViewGtk::OnDestroyPluginContainer(
1580 gfx::PluginWindowHandle id) { 1581 gfx::PluginWindowHandle id) {
1581 plugin_container_manager_.DestroyPluginContainer(id); 1582 plugin_container_manager_.DestroyPluginContainer(id);
1582 } 1583 }
1583 1584
1584 } // namespace content 1585 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698