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

Unified Diff: ui/gfx/path_x11.cc

Issue 122443005: replace deprecated SkScalarRound/Floor/Ceil calls with more explicit variants (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | « ui/gfx/path_win.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path_x11.cc
diff --git a/ui/gfx/path_x11.cc b/ui/gfx/path_x11.cc
index 2fe764fbd4c4e164fb1023df1e4145353b52bfd3..db99f0155dd3f00d63f3d9b770371d8843c2da2f 100644
--- a/ui/gfx/path_x11.cc
+++ b/ui/gfx/path_x11.cc
@@ -33,8 +33,8 @@ Region CreateRegionFromSkPath(const SkPath& path) {
path.getPoints(points.get(), point_count);
scoped_ptr<XPoint[]> x11_points(new XPoint[point_count]);
for (int i = 0; i < point_count; ++i) {
- x11_points[i].x = SkScalarRound(points[i].fX);
- x11_points[i].y = SkScalarRound(points[i].fY);
+ x11_points[i].x = SkScalarRoundToInt(points[i].fX);
+ x11_points[i].y = SkScalarRoundToInt(points[i].fY);
}
return XPolygonRegion(x11_points.get(), point_count, EvenOddRule);
« no previous file with comments | « ui/gfx/path_win.cc ('k') | ui/gfx/platform_font_pango.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698