Index: gm/gm.h |
diff --git a/gm/gm.h b/gm/gm.h |
index e00a650f3352b241b6bccc628f9cda6068028a58..ff033a88aa33575a3dabd53da37105fa373dee33 100644 |
--- a/gm/gm.h |
+++ b/gm/gm.h |
@@ -100,6 +100,9 @@ namespace skiagm { |
} |
bool animate(const SkAnimTimer&); |
+ bool handleKey(SkUnichar uni) { |
+ return this->onHandleKey(uni); |
+ } |
virtual void modifyGrContextOptions(GrContextOptions* options) {} |
@@ -114,6 +117,7 @@ namespace skiagm { |
virtual SkString onShortName() = 0; |
virtual bool onAnimate(const SkAnimTimer&) { return false; } |
+ virtual bool onHandleKey(SkUnichar uni) { return false; } |
virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); } |
private: |