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

Unified Diff: samplecode/SampleFilter2.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month 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/SampleEffects.cpp ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleFilter2.cpp
diff --git a/samplecode/SampleFilter2.cpp b/samplecode/SampleFilter2.cpp
index e98277823454f0dfe5fa8f8efdbc2205fc15575d..b4314c5a5c1850cd561658246a67291daca08fdf 100644
--- a/samplecode/SampleFilter2.cpp
+++ b/samplecode/SampleFilter2.cpp
@@ -72,7 +72,7 @@ protected:
const SkScalar H = SkIntToScalar(fBitmaps[0].height() + 1);
SkPaint paint;
- const SkScalar scale = SkFloatToScalar(0.897917f);
+ const SkScalar scale = 0.897917f;
canvas->scale(SK_Scalar1, scale);
for (int k = 0; k < 2; k++) {
« no previous file with comments | « samplecode/SampleEffects.cpp ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698