add SkAnimTimer, SPACE = pause/resume, ESP = stop

BUG=skia:

Review URL: https://codereview.chromium.org/894083003
diff --git a/gm/gm.h b/gm/gm.h
index c7dca6d..e263528 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 @@
             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 @@
         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: