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 Slide_DEFINED |
| 9 | #define Slide_DEFINED |
| 10 | |
| 11 | #include "SkRefCnt.h" |
| 12 | #include "SkString.h" |
| 13 | |
| 14 | class SkCanvas; |
| 15 | |
| 16 | class Slide : public SkRefCnt { |
| 17 | public: |
| 18 | virtual ~Slide() {} |
| 19 | |
| 20 | virtual void draw(SkCanvas* canvas) = 0; |
| 21 | SkString getName() { return fName; } |
| 22 | |
| 23 | protected: |
| 24 | SkString fName; |
| 25 | }; |
| 26 | |
| 27 | |
| 28 | #endif |