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

Unified Diff: skia/ext/skia_utils_win.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 | « skia/ext/skia_utils_mac.mm ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_win.cc
diff --git a/skia/ext/skia_utils_win.cc b/skia/ext/skia_utils_win.cc
index 8b72b986b58be0b85572e33d5c74c7e0e7bc7317..2644ee4343f1d7daac215b3ad7bf7bfbe66b98f0 100644
--- a/skia/ext/skia_utils_win.cc
+++ b/skia/ext/skia_utils_win.cc
@@ -34,7 +34,9 @@ COMPILE_ASSERT(sizeof(RECT) == sizeof(SkIRect), o9);
namespace skia {
POINT SkPointToPOINT(const SkPoint& point) {
- POINT win_point = { SkScalarRound(point.fX), SkScalarRound(point.fY) };
+ POINT win_point = {
+ SkScalarRoundToInt(point.fX), SkScalarRoundToInt(point.fY)
+ };
return win_point;
}
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698