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

Unified Diff: tools/skhello.cpp

Issue 111353003: deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPREC… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | « tests/PathOpsExtendedTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skhello.cpp
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 93dad56df57ad6a9f215e157a5a0770641dad9ab..55748d2e1bb9b4a2ec5aae35625b97c17b810f91 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[],
« no previous file with comments | « tests/PathOpsExtendedTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698