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

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

Issue 2914023002: Remove LatencyInfo::sequence_number. (May break metrics).
Patch Set: Rebase Created 3 years, 6 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
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 4e63e2f0e84af1f486927eb32bc4645617e3a3e4..88533dd919e371344d4c83a29ff0be52cc4a755e 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -968,7 +968,7 @@ bool RenderWidgetHostViewAndroid::OnTouchEvent(
blink::WebTouchEvent web_event = ui::CreateWebTouchEventFromMotionEvent(
event, result.moved_beyond_slop_region);
ui::LatencyInfo latency_info(ui::SourceEventType::TOUCH);
- latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
+ latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0);
if (host_->delegate()->GetInputEventRouter() &&
SiteIsolationPolicy::AreCrossProcessFramesPossible()) {
host_->delegate()->GetInputEventRouter()->RouteTouchEvent(this, &web_event,
@@ -1014,7 +1014,7 @@ void RenderWidgetHostViewAndroid::ResetGestureDetection() {
if (gesture_provider_.OnTouchEvent(*cancel_event).succeeded) {
bool causes_scrolling = false;
ui::LatencyInfo latency_info(ui::SourceEventType::TOUCH);
- latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
+ latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0);
blink::WebTouchEvent web_event =
ui::CreateWebTouchEventFromMotionEvent(*cancel_event, causes_scrolling);
if (SiteIsolationPolicy::AreCrossProcessFramesPossible() &&
@@ -1800,7 +1800,7 @@ void RenderWidgetHostViewAndroid::SendKeyEvent(
event.GetType() == blink::WebInputEvent::kChar) {
latency_info.set_source_event_type(ui::SourceEventType::KEY_PRESS);
}
- latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
+ latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0);
target_host->ForwardKeyboardEventWithLatencyInfo(event, latency_info);
}
@@ -1872,7 +1872,7 @@ void RenderWidgetHostViewAndroid::SendMouseWheelEvent(
return;
ui::LatencyInfo latency_info(ui::SourceEventType::WHEEL);
- latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
+ latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0);
blink::WebMouseWheelEvent wheel_event(event);
bool should_route_event =
SiteIsolationPolicy::AreCrossProcessFramesPossible() &&

Powered by Google App Engine
This is Rietveld 408576698