skia2/tools/viewer/SKPSlide.h
jvanverth a8d0d6c8ba More refactoring for Viewer
* Move support files into sk_app and main files up to top directory
* Rename VulkanTestContext and create WindowContext parent class
* Place VulkanWindowContext et al. in sk_app namespace.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1944413005

Review-Url: https://codereview.chromium.org/1944413005
2016-05-05 12:32:03 -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