diff options
author | reed <reed@chromium.org> | 2015-02-01 19:01:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-01 19:01:04 -0800 |
commit | d9adfe6a223955bc69c8c7661ab8e0a078afbc32 (patch) | |
tree | b3ae977babf890649bce0538e6b6cb766a948219 /gm/gm.h | |
parent | 47471cf19c1b386212ab0401190ac40cdeb95d1f (diff) |
allow GMs to animate
BUG=skia:
Review URL: https://codereview.chromium.org/888283002
Diffstat (limited to 'gm/gm.h')
-rw-r--r-- | gm/gm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |