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

Unified Diff: ui/base/cursor/cursor_util.cc

Issue 1417023002: Remove some implicit Point to PointF conversions, add helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-views: extrachange Created 5 years, 2 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
Index: ui/base/cursor/cursor_util.cc
diff --git a/ui/base/cursor/cursor_util.cc b/ui/base/cursor/cursor_util.cc
index 6eb893e3732b2487247b5c76b1805dfeda87e085..193ab7361909507b4569d624b88b5885d672c303 100644
--- a/ui/base/cursor/cursor_util.cc
+++ b/ui/base/cursor/cursor_util.cc
@@ -56,7 +56,7 @@ void ScaleAndRotateCursorBitmapAndHotpoint(float scale,
skia::ImageOperations::RESIZE_BETTER,
scaled_size.width(),
scaled_size.height());
- *hotpoint = gfx::ToFlooredPoint(gfx::ScalePoint(*hotpoint, scale));
+ *hotpoint = gfx::ScaleToFlooredPoint(*hotpoint, scale);
}
void GetImageCursorBitmap(int resource_id,

Powered by Google App Engine
This is Rietveld 408576698