Index: gm/addarc.cpp |
diff --git a/gm/addarc.cpp b/gm/addarc.cpp |
index 1386cdd0e78e6a2c985f0b20cdc8c6f2d247b61a..e6fad25772db27b6a8ca642b3885ca2c14a12981 100644 |
--- a/gm/addarc.cpp |
+++ b/gm/addarc.cpp |
@@ -6,6 +6,7 @@ |
*/ |
#include "gm.h" |
+#include "SkAnimTimer.h" |
#include "SkCanvas.h" |
#include "SkRandom.h" |
@@ -49,8 +50,8 @@ protected: |
} |
} |
- bool onAnimatePulse(SkMSec curr, SkMSec prev) SK_OVERRIDE { |
- fRotate = SkDoubleToScalar(fmod(curr * 0.001, 360)); |
+ bool onAnimate(const SkAnimTimer& timer) SK_OVERRIDE { |
+ fRotate = timer.scaled(1, 360); |
return true; |
} |