aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gm.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-02-02 12:55:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-02 12:55:02 -0800
commit76113a9b7716748c70ea0ecf7aacbabe4cce5009 (patch)
tree57d91f56a717a0ffcb829b00c71e17195491753c /gm/gm.h
parenta669bc7a7ae7580c5cd92067aeb95d09e64ea720 (diff)
add SkAnimTimer, SPACE = pause/resume, ESP = stop
Diffstat (limited to 'gm/gm.h')
-rw-r--r--gm/gm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gm/gm.h b/gm/gm.h
index c7dca6d276..e263528f90 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -16,6 +16,8 @@
#include "SkTRegistry.h"
#include "sk_tool_utils.h"
+class SkAnimTimer;
+
#if SK_SUPPORT_GPU
#include "GrContext.h"
#endif
@@ -92,7 +94,7 @@ namespace skiagm {
fStarterMatrix = matrix;
}
- bool animatePulse(SkMSec curr, SkMSec prev);
+ bool animate(const SkAnimTimer&);
protected:
/** draws a standard message that the GM is only intended to be used with the GPU.*/
@@ -103,7 +105,7 @@ namespace skiagm {
virtual SkISize onISize() = 0;
virtual SkString onShortName() = 0;
- virtual bool onAnimatePulse(SkMSec curr, SkMSec prev) { return false; }
+ virtual bool onAnimate(const SkAnimTimer&) { return false; }
virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); }
private: