skia2/tools/viewer/SKPSlide.h
egdaniel f533f116e6 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
2016-06-13 11:30:10 -07:00

32 lines
654 B
C++

/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SKPSlide_DEFINED
#define SKPSlide_DEFINED
#include "Slide.h"
#include "SkPicture.h"
class SKPSlide : public Slide {
public:
SKPSlide(const SkString& name, const SkString& path);
~SKPSlide() override;
SkISize getDimensions() const override { return fCullRect.size(); }
void draw(SkCanvas* canvas) override;
void load() override;
void unload() override;
private:
SkString fPath;
sk_sp<const SkPicture> fPic;
SkIRect fCullRect;
};
#endif