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

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

Issue 8883005: Input latency performance test that uses tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win link error fix Created 9 years 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 | « chrome/test/perf/rendering/latency_tests.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host.cc
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index d48963e8cd7f42533d0e37695c85ae3f7fded897..4f3ef70abef9d8ebf658752b8bf01a0dae5e86cd 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -1036,6 +1036,12 @@ void RenderWidgetHost::OnMsgUpdateRect(
UserMetricsAction("BadMessageTerminate_RWH1"));
process()->ReceivedBadMessage();
} else {
+ UNSHIPPED_TRACE_EVENT_INSTANT2("test_latency", "UpdateRect",
+ "x+y", params.bitmap_rect.x() + params.bitmap_rect.y(),
+ "color", 0xffffff & *static_cast<uint32*>(dib->memory()));
+ UNSHIPPED_TRACE_EVENT_INSTANT1("test_latency", "UpdateRectWidth",
+ "width", params.bitmap_rect.width());
+
// Scroll the backing store.
if (!params.scroll_rect.IsEmpty()) {
ScrollBackingStoreRect(params.dx, params.dy,
« no previous file with comments | « chrome/test/perf/rendering/latency_tests.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698