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

Unified Diff: content/browser/renderer_host/input/render_widget_host_latency_tracker.cc

Issue 2048673002: Revert of Replace ui::LatencyInfo::InputCoordinate with gfx::PointF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698