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

Unified Diff: samplecode/SampleText.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 | « samplecode/SampleSkLayer.cpp ('k') | src/animator/SkAnimateBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleText.cpp
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp
index aa314dd58b03545cd291a0cc33817108bd79d691..c88196195ff9288de1575b5338587d7f4ce28fff 100644
--- a/samplecode/SampleText.cpp
+++ b/samplecode/SampleText.cpp
@@ -176,7 +176,7 @@ void SkPowerMode::init(SkScalar e) {
// printf(" %d %g", i, x);
x = powf(x, ee);
// printf(" %g", x);
- int xx = SkScalarRound(x * 255);
+ int xx = SkScalarRoundToInt(x * 255);
// printf(" %d\n", xx);
fTable[i] = SkToU8(xx);
}
« no previous file with comments | « samplecode/SampleSkLayer.cpp ('k') | src/animator/SkAnimateBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698