skia2/tools/viewer/GMSlide.h
Mike Klein cd5104e942 SkAnimTimer -> AnimTimer
Change-Id: I700b7c0461475062ac66712cc29070f150cf777d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/202315
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2019-03-20 18:26:35 +00:00

35 lines
660 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 AnimTimer&) override;
bool onChar(SkUnichar c) override;
bool onGetControls(SkMetaData*) override;
void onSetControls(const SkMetaData&) override;
private:
skiagm::GM* fGM;
};
#endif