Index: samplecode/SampleDegenerateTwoPtRadials.cpp |
diff --git a/samplecode/SampleDegenerateTwoPtRadials.cpp b/samplecode/SampleDegenerateTwoPtRadials.cpp |
index 71c03b016ad23f7959c393cf18ea8561c96c7ef8..dec985029ed76ec07f524644e9e184a03436ad4a 100644 |
--- a/samplecode/SampleDegenerateTwoPtRadials.cpp |
+++ b/samplecode/SampleDegenerateTwoPtRadials.cpp |
@@ -6,6 +6,7 @@ |
*/ |
#include "SampleCode.h" |
+#include "SkAnimTimer.h" |
#include "SkView.h" |
#include "SkCanvas.h" |
#include "SkGradientShader.h" |
@@ -76,8 +77,8 @@ protected: |
canvas->drawText(txt.c_str(), txt.size(), l + w/2 + w*DELTA_SCALE*delta, t + h + SK_Scalar1 * 10, paint); |
} |
- bool onAnimatePulse(SkMSec curr, SkMSec prev) SK_OVERRIDE { |
- fTime += (curr - prev) * 0.001f; |
+ bool onAnimate(const SkAnimTimer& timer) SK_OVERRIDE { |
+ fTime = SkDoubleToScalar(timer.secs() / 15); |
return true; |
} |