diff options
| author | jvanverth <jvanverth@google.com> | 2016-06-13 09:31:26 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-06-13 09:31:27 -0700 |
| commit | 76963e73704a42a18c29d6fbdcccb566e5c67658 (patch) | |
| tree | e007527879859f5c1857bd9bf3c2c3df32a1fd4c /samplecode/SampleClock.cpp | |
| parent | fe19987e5499650e8637a8d109f19b8156601660 (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
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: |
