Chromium Code Reviews| Index: ui/ozone/platform/drm/host/drm_cursor.cc |
| diff --git a/ui/ozone/platform/drm/host/drm_cursor.cc b/ui/ozone/platform/drm/host/drm_cursor.cc |
| index ecbbe52b64a4c60c0ec4da865ea7eb7f9fe953c9..a131c9bf9cc9149a3599c45556bcb3abfe168884 100644 |
| --- a/ui/ozone/platform/drm/host/drm_cursor.cc |
| +++ b/ui/ozone/platform/drm/host/drm_cursor.cc |
| @@ -58,7 +58,7 @@ void DrmCursor::OnWindowAdded(gfx::AcceleratedWidget window, |
| state_.window = window; |
| state_.display_bounds_in_screen = bounds_in_screen; |
| state_.confined_bounds = cursor_confined_bounds; |
| - SetCursorLocationLocked(cursor_confined_bounds.CenterPoint()); |
| + SetCursorLocationLocked(gfx::PointF(cursor_confined_bounds.CenterPoint())); |
|
danakj
2015/10/30 23:25:54
+dnicoara@chromium.org
It's not obvious to me tha
|
| } |
| } |
| @@ -74,13 +74,14 @@ void DrmCursor::OnWindowRemoved(gfx::AcceleratedWidget window) { |
| state_.window = dest_window->GetAcceleratedWidget(); |
| state_.display_bounds_in_screen = dest_window->GetBounds(); |
| state_.confined_bounds = dest_window->GetCursorConfinedBounds(); |
| - SetCursorLocationLocked(state_.confined_bounds.CenterPoint()); |
| + SetCursorLocationLocked( |
| + gfx::PointF(state_.confined_bounds.CenterPoint())); |
| SendCursorShowLocked(); |
| } else { |
| state_.window = gfx::kNullAcceleratedWidget; |
| state_.display_bounds_in_screen = gfx::Rect(); |
| state_.confined_bounds = gfx::Rect(); |
| - state_.location = gfx::Point(); |
| + state_.location = gfx::PointF(); |
| } |
| } |
| } |