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

Unified Diff: ui/gfx/image/image_skia_operations.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/gfx/image/image_skia_operations.cc
diff --git a/ui/gfx/image/image_skia_operations.cc b/ui/gfx/image/image_skia_operations.cc
index d310f965d31aa2f3cbe2f4688ec3ed9d769393b7..edeb869d18a89e7683cbcf13689473d08c7f0b76 100644
--- a/ui/gfx/image/image_skia_operations.cc
+++ b/ui/gfx/image/image_skia_operations.cc
@@ -30,7 +30,7 @@ gfx::Size DIPToPixelSize(gfx::Size dip_size, float scale) {
}
gfx::Rect DIPToPixelBounds(gfx::Rect dip_bounds, float scale) {
- return gfx::Rect(ToFlooredPoint(ScalePoint(dip_bounds.origin(), scale)),
+ return gfx::Rect(ScaleToFlooredPoint(dip_bounds.origin(), scale),
DIPToPixelSize(dip_bounds.size(), scale));
}
« ui/gfx/geometry/point.cc ('K') | « ui/gfx/geometry/point.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698