Index: content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
diff --git a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
index 5b02ac39e67e40201573376e879c137a39d64625..6ca1b42bc71cde3ac6ac6d960da23f2c40467eba 100644 |
--- a/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
+++ b/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc |
@@ -25,8 +25,9 @@ |
LatencyInfo* latency, |
float device_scale_factor) { |
for (uint32_t i = 0; i < touch.touchesLength; ++i) { |
- gfx::PointF coordinate(touch.touches[i].position.x * device_scale_factor, |
- touch.touches[i].position.y * device_scale_factor); |
+ LatencyInfo::InputCoordinate coordinate( |
+ touch.touches[i].position.x * device_scale_factor, |
+ touch.touches[i].position.y * device_scale_factor); |
if (!latency->AddInputCoordinate(coordinate)) |
break; |
} |
@@ -35,22 +36,25 @@ |
void UpdateLatencyCoordinatesImpl(const WebGestureEvent& gesture, |
LatencyInfo* latency, |
float device_scale_factor) { |
- latency->AddInputCoordinate(gfx::PointF(gesture.x * device_scale_factor, |
- gesture.y * device_scale_factor)); |
+ latency->AddInputCoordinate( |
+ LatencyInfo::InputCoordinate(gesture.x * device_scale_factor, |
+ gesture.y * device_scale_factor)); |
} |
void UpdateLatencyCoordinatesImpl(const WebMouseEvent& mouse, |
LatencyInfo* latency, |
float device_scale_factor) { |
- latency->AddInputCoordinate(gfx::PointF(mouse.x * device_scale_factor, |
- mouse.y * device_scale_factor)); |
+ latency->AddInputCoordinate( |
+ LatencyInfo::InputCoordinate(mouse.x * device_scale_factor, |
+ mouse.y * device_scale_factor)); |
} |
void UpdateLatencyCoordinatesImpl(const WebMouseWheelEvent& wheel, |
LatencyInfo* latency, |
float device_scale_factor) { |
- latency->AddInputCoordinate(gfx::PointF(wheel.x * device_scale_factor, |
- wheel.y * device_scale_factor)); |
+ latency->AddInputCoordinate( |
+ LatencyInfo::InputCoordinate(wheel.x * device_scale_factor, |
+ wheel.y * device_scale_factor)); |
} |
void UpdateLatencyCoordinates(const WebInputEvent& event, |