commit | 05a4cf59591024d838b204bb0f6fac42598ead28 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Thu Sep 08 09:02:43 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Sep 08 09:02:44 2016 -0700 |
tree | 9744866d58622ba2e16ec391cc8859972fbd928f | |
parent | 51761d12d00fb1ebe7c63efce91b0e84b4afac5c [diff] [blame] |
Add GM/slide to simulate Android-style reveal clip Hopefully, this will let us play w/ geometric and shader-based solutions. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2316593003 Committed: https://skia.googlesource.com/skia/+/ffac5c4aae18fc706e4077763c190a89c8507fb0 Review-Url: https://codereview.chromium.org/2316593003
diff --git a/gm/gm.h b/gm/gm.h index e00a650..ff033a8 100644 --- a/gm/gm.h +++ b/gm/gm.h
@@ -100,6 +100,9 @@ } bool animate(const SkAnimTimer&); + bool handleKey(SkUnichar uni) { + return this->onHandleKey(uni); + } virtual void modifyGrContextOptions(GrContextOptions* options) {} @@ -114,6 +117,7 @@ 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: