diff options
author | jvanverth <jvanverth@google.com> | 2016-06-16 09:52:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-16 09:52:35 -0700 |
commit | c7027ab03f2e8bab4c74bc1b047642622d3d682b (patch) | |
tree | 72baa4e6345d6e3bbdb2b0165130a637a9778f19 /samplecode/SampleClock.cpp | |
parent | c4ce6b592487305de251bbebaf8eeee38371b877 (diff) |
Add samples to Viewer.
This adds support with animation, assuming the sample has
implemented onAnimate. Event handling has not been
implemented.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2056343004
Committed: https://skia.googlesource.com/skia/+/76963e73704a42a18c29d6fbdcccb566e5c67658
Review-Url: https://codereview.chromium.org/2056343004
Diffstat (limited to 'samplecode/SampleClock.cpp')
-rw-r--r-- | samplecode/SampleClock.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/samplecode/SampleClock.cpp b/samplecode/SampleClock.cpp index ae7462d1dc..ff3a5b1927 100644 --- a/samplecode/SampleClock.cpp +++ b/samplecode/SampleClock.cpp @@ -215,8 +215,10 @@ protected: #endif canvas->restore(); + } - this->inval(nullptr); + bool onAnimate(const SkAnimTimer&) override { + return true; } private: |