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

Unified Diff: samplecode/SamplePicture.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/SampleHairline.cpp ('k') | samplecode/SamplePolyToPoly.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SamplePicture.cpp
diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp
index 7ae87571af9b88b64329eddeaae2edc52daa84e5..66289affe0992219b6466051e622061aff94ce64 100644
--- a/samplecode/SamplePicture.cpp
+++ b/samplecode/SamplePicture.cpp
@@ -104,7 +104,7 @@ protected:
SkPaint paint;
canvas->save();
- canvas->scale(SkFloatToScalar(0.5f), SkFloatToScalar(0.5f));
+ canvas->scale(0.5f, 0.5f);
canvas->drawBitmap(fBitmap, 0, 0, NULL);
canvas->restore();
« no previous file with comments | « samplecode/SampleHairline.cpp ('k') | samplecode/SamplePolyToPoly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698