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

Unified Diff: ash/touch/touch_transformer_controller.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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 | « ash/drag_drop/drag_image_view.cc ('k') | cc/base/math_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_transformer_controller.cc
diff --git a/ash/touch/touch_transformer_controller.cc b/ash/touch/touch_transformer_controller.cc
index a419b673de719c19677e5c74b1b811552b46e7ca..142fdf151ced9562b0640889cd299f3ad8bb9fad 100644
--- a/ash/touch/touch_transformer_controller.cc
+++ b/ash/touch/touch_transformer_controller.cc
@@ -67,13 +67,13 @@ gfx::Transform TouchTransformerController::GetTouchTransform(
const DisplayInfo& touch_display,
const ui::TouchscreenDevice& touchscreen,
const gfx::Size& framebuffer_size) const {
- gfx::SizeF current_size = display.bounds_in_native().size();
- gfx::SizeF touch_native_size = touch_display.GetNativeModeSize();
+ auto current_size = gfx::SizeF(display.bounds_in_native().size());
+ auto touch_native_size = gfx::SizeF(touch_display.GetNativeModeSize());
#if defined(USE_OZONE)
- gfx::SizeF touch_area = touchscreen.size;
+ auto touch_area = gfx::SizeF(touchscreen.size);
#elif defined(USE_X11)
// On X11 touches are reported in the framebuffer coordinate space.
- gfx::SizeF touch_area = framebuffer_size;
+ auto touch_area = gfx::SizeF(framebuffer_size);
#endif
gfx::Transform ctm;
« no previous file with comments | « ash/drag_drop/drag_image_view.cc ('k') | cc/base/math_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698