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

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

Issue 10378112: Make latency tests measure until the end of swap buffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « chrome/test/perf/rendering/latency_tests.cc ('k') | content/common/gpu/gpu_command_buffer_stub.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_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 03be3556d2d43d03df332d8b9e0e2e7f18d01bdd..21b2c5bd6329f3bd9af80cba59b9fca588b7d9c3 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1364,6 +1364,8 @@ void RenderWidgetHostImpl::DidUpdateBackingStore(
// On other platforms, this will be equivalent to MPArch.RWH_OnMsgUpdateRect.
delta = now - paint_start;
UMA_HISTOGRAM_TIMES("MPArch.RWH_TotalPaintTime", delta);
+ UNSHIPPED_TRACE_EVENT_INSTANT1("test_latency", "UpdateRectComplete",
+ "x+y", params.bitmap_rect.x() + params.bitmap_rect.y());
}
void RenderWidgetHostImpl::OnMsgInputEventAck(WebInputEvent::Type event_type,
« no previous file with comments | « chrome/test/perf/rendering/latency_tests.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698