skia2/tools/viewer/GMSlide.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

30 lines
523 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 GMSlide_DEFINED
#define GMSlide_DEFINED
#include "Slide.h"
#include "gm.h"
class GMSlide : public Slide {
public:
GMSlide(skiagm::GM* gm);
~GMSlide() override;
SkISize getDimensions() const override { return fGM->getISize(); }
void draw(SkCanvas* canvas) override;
bool animate(const SkAnimTimer&) override;
private:
skiagm::GM* fGM;
};
#endif