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

Unified Diff: samplecode/TransitionView.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/SampleTextOnPath.cpp ('k') | samplecode/vertexdump.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/TransitionView.cpp
diff --git a/samplecode/TransitionView.cpp b/samplecode/TransitionView.cpp
index d18585414c944b07aa38b997fd20ce9f8b24d11c..3a3717251637e23c66f28baac6cfc574bb1de1e3 100644
--- a/samplecode/TransitionView.cpp
+++ b/samplecode/TransitionView.cpp
@@ -158,8 +158,8 @@ protected:
fEnd[kPrevX] = -lr;
fEnd[kPrevY] = -ud;
fEnd[kNextX] = fEnd[kNextY] = 0;
- SkScalar blend[] = { SkFloatToScalar(0.8f), SkFloatToScalar(0.0f),
- SkFloatToScalar(0.0f), SK_Scalar1 };
+ SkScalar blend[] = { 0.8f, 0.0f,
+ 0.0f, SK_Scalar1 };
fInterp.setKeyFrame(0, SkTime::GetMSecs(), fBegin, blend);
fInterp.setKeyFrame(1, SkTime::GetMSecs()+kDurationMS, fEnd, blend);
}
« no previous file with comments | « samplecode/SampleTextOnPath.cpp ('k') | samplecode/vertexdump.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698