Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: gm/gm.h

Issue 894083003: add SkAnimTimer, SPACE = pause/resume, ESP = stop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gm/SkAnimTimer.h ('K') | « gm/addarc.cpp ('k') | gm/gm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.h
diff --git a/gm/gm.h b/gm/gm.h
index c7dca6d276a89d84ca3f1c15ba1a48538fbb49a4..e263528f90c7827e4e5ad6b188a95b7ad341091e 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:
« gm/SkAnimTimer.h ('K') | « gm/addarc.cpp ('k') | gm/gm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698