blob: c03cc8abdeab0063a7e67e0a1e0af79751cf2777 [file] [log] [blame]
jvanverth2bb3b6d2016-04-08 07:24:09 -07001/*
2* Copyright 2016 Google Inc.
3*
4* Use of this source code is governed by a BSD-style license that can be
5* found in the LICENSE file.
6*/
7
8#ifndef GMSlide_DEFINED
9#define GMSlide_DEFINED
10
11#include "Slide.h"
12#include "gm.h"
13
14class GMSlide : public Slide {
15public:
16 GMSlide(skiagm::GM* gm);
17 ~GMSlide() override;
18
djsollen12d62a72016-04-21 07:59:44 -070019 SkISize getDimensions() const override { return fGM->getISize(); }
20
jvanverth2bb3b6d2016-04-08 07:24:09 -070021 void draw(SkCanvas* canvas) override;
jvanverthc265a922016-04-08 12:51:45 -070022 bool animate(const SkAnimTimer&) override;
jvanverth2bb3b6d2016-04-08 07:24:09 -070023
Jim Van Verth6f449692017-02-14 15:16:46 -050024 bool onChar(SkUnichar c) override;
25
Mike Reed81f60ec2018-05-15 10:09:52 -040026 bool onGetControls(SkMetaData*) override;
27 void onSetControls(const SkMetaData&) override;
28
jvanverth2bb3b6d2016-04-08 07:24:09 -070029private:
30 skiagm::GM* fGM;
31};
32
33
34#endif