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 /tools/viewer/Slide.h | |
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 'tools/viewer/Slide.h')
-rw-r--r-- | tools/viewer/Slide.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/viewer/Slide.h b/tools/viewer/Slide.h index cdc225b0a8..bc0ffd4016 100644 --- a/tools/viewer/Slide.h +++ b/tools/viewer/Slide.h @@ -19,11 +19,13 @@ class Slide : public SkRefCnt { public: virtual ~Slide() {} - virtual SkISize getDimensions() const = 0; + virtual SkISize getDimensions() const { + return SkISize::Make(0, 0); + } virtual void draw(SkCanvas* canvas) = 0; virtual bool animate(const SkAnimTimer&) { return false; } - virtual void load() {} + virtual void load(SkScalar winWidth, SkScalar winHeight) {} virtual void unload() {} SkString getName() { return fName; } |