From e1ca705cac4b946993f6cbf798e2a0ba27e739f3 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 17 Dec 2013 19:22:07 +0000 Subject: deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPRECATED_SCALARROUND for legacy clients BUG= R=robertphillips@google.com Review URL: https://codereview.chromium.org/111353003 git-svn-id: http://skia.googlecode.com/svn/trunk@12719 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tools/skhello.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/skhello.cpp') diff --git a/tools/skhello.cpp b/tools/skhello.cpp index 93dad56df5..55748d2e1b 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -81,8 +81,8 @@ int tool_main(int argc, char** argv) { SkScalar width = paint.measureText(text.c_str(), text.size()); SkScalar spacing = paint.getFontSpacing(); - int w = SkScalarRound(width) + 30; - int h = SkScalarRound(spacing) + 30; + int w = SkScalarRoundToInt(width) + 30; + int h = SkScalarRoundToInt(spacing) + 30; static const struct { bool (*fProc)(int w, int h, const char path[], const char text[], -- cgit v1.2.3