jvanverth | 2bb3b6d | 2016-04-08 07:24:09 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 14 | class GMSlide : public Slide { |
| 15 | public: |
| 16 | GMSlide(skiagm::GM* gm); |
| 17 | ~GMSlide() override; |
| 18 | |
djsollen | 12d62a7 | 2016-04-21 07:59:44 -0700 | [diff] [blame] | 19 | SkISize getDimensions() const override { return fGM->getISize(); } |
| 20 | |
jvanverth | 2bb3b6d | 2016-04-08 07:24:09 -0700 | [diff] [blame] | 21 | void draw(SkCanvas* canvas) override; |
jvanverth | c265a92 | 2016-04-08 12:51:45 -0700 | [diff] [blame] | 22 | bool animate(const SkAnimTimer&) override; |
jvanverth | 2bb3b6d | 2016-04-08 07:24:09 -0700 | [diff] [blame] | 23 | |
Jim Van Verth | 6f44969 | 2017-02-14 15:16:46 -0500 | [diff] [blame] | 24 | bool onChar(SkUnichar c) override; |
| 25 | |
Mike Reed | 81f60ec | 2018-05-15 10:09:52 -0400 | [diff] [blame] | 26 | bool onGetControls(SkMetaData*) override; |
| 27 | void onSetControls(const SkMetaData&) override; |
| 28 | |
jvanverth | 2bb3b6d | 2016-04-08 07:24:09 -0700 | [diff] [blame] | 29 | private: |
| 30 | skiagm::GM* fGM; |
| 31 | }; |
| 32 | |
| 33 | |
| 34 | #endif |