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/path_gtk.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/gdi_util.cc ('k') | ui/gfx/path_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path_gtk.cc
diff --git a/ui/gfx/path_gtk.cc b/ui/gfx/path_gtk.cc
index 99dad2be43b26c807ed50f0f11082b05a6a0fa0a..110f6c04883367b8e354de791f21f537f6772ca1 100644
--- a/ui/gfx/path_gtk.cc
+++ b/ui/gfx/path_gtk.cc
@@ -24,8 +24,8 @@ GdkRegion* Path::CreateNativeRegion() const {
scoped_ptr<GdkPoint[]> gdk_points(new GdkPoint[point_count]);
for (int i = 0; i < point_count; ++i) {
- gdk_points[i].x = SkScalarRound(points[i].fX);
- gdk_points[i].y = SkScalarRound(points[i].fY);
+ gdk_points[i].x = SkScalarRoundToInt(points[i].fX);
+ gdk_points[i].y = SkScalarRoundToInt(points[i].fY);
}
return gdk_region_polygon(gdk_points.get(), point_count, GDK_EVEN_ODD_RULE);
« no previous file with comments | « ui/gfx/gdi_util.cc ('k') | ui/gfx/path_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698