aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gm.h
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-02-01 19:01:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-01 19:01:04 -0800
commitd9adfe6a223955bc69c8c7661ab8e0a078afbc32 (patch)
treeb3ae977babf890649bce0538e6b6cb766a948219 /gm/gm.h
parent47471cf19c1b386212ab0401190ac40cdeb95d1f (diff)
allow GMs to animate
Diffstat (limited to 'gm/gm.h')
-rw-r--r--gm/gm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gm/gm.h b/gm/gm.h
index e6c71a31ba..c7dca6d276 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -92,6 +92,8 @@ namespace skiagm {
fStarterMatrix = matrix;
}
+ bool animatePulse(SkMSec curr, SkMSec prev);
+
protected:
/** draws a standard message that the GM is only intended to be used with the GPU.*/
void drawGpuOnlyMessage(SkCanvas*);
@@ -101,6 +103,7 @@ namespace skiagm {
virtual SkISize onISize() = 0;
virtual SkString onShortName() = 0;
+ virtual bool onAnimatePulse(SkMSec curr, SkMSec prev) { return false; }
virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); }
private: