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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index 97d97658babd44f3b48784501c236965936479ce..c57b20e7e9437cd44936b234ec30b08c0446b8ab 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -43,9 +43,9 @@ struct TypeConverter<gfx::Display, mus::mojom::DisplayPtr> {
result.SetScaleAndBounds(input->device_pixel_ratio,
input->bounds.To<gfx::Rect>());
gfx::Rect work_area(
- gfx::ToFlooredPoint(gfx::ScalePoint(
+ gfx::ScaleToFlooredPoint(
gfx::Point(input->work_area->x, input->work_area->y),
- 1.0f / input->device_pixel_ratio)),
+ 1.0f / input->device_pixel_ratio),
gfx::ScaleToFlooredSize(
gfx::Size(input->work_area->width, input->work_area->height),
1.0f / input->device_pixel_ratio));
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698