diff options
author | egdaniel <egdaniel@google.com> | 2016-06-13 11:30:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-13 11:30:10 -0700 |
commit | f533f116e6324ee8592fbb49b8fca096c7fe926e (patch) | |
tree | e03e19c9051ceb190b531afe46401720f91274be /tools/viewer/Slide.h | |
parent | f8f9c07c283a3204a38b4324c14597e644686428 (diff) |
Revert of Add samples to Viewer. (patchset #4 id:60001 of https://codereview.chromium.org/2056343004/ )
Reason for revert:
breaking on android compile
Original issue's description:
> 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
TBR=bsalomon@google.com,jvanverth@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review-Url: https://codereview.chromium.org/2063883002
Diffstat (limited to 'tools/viewer/Slide.h')
-rw-r--r-- | tools/viewer/Slide.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/viewer/Slide.h b/tools/viewer/Slide.h index bc0ffd4016..cdc225b0a8 100644 --- a/tools/viewer/Slide.h +++ b/tools/viewer/Slide.h @@ -19,13 +19,11 @@ class Slide : public SkRefCnt { public: virtual ~Slide() {} - virtual SkISize getDimensions() const { - return SkISize::Make(0, 0); - } + virtual SkISize getDimensions() const = 0; virtual void draw(SkCanvas* canvas) = 0; virtual bool animate(const SkAnimTimer&) { return false; } - virtual void load(SkScalar winWidth, SkScalar winHeight) {} + virtual void load() {} virtual void unload() {} SkString getName() { return fName; } |