| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef Slide_DEFINED | 8 #ifndef Slide_DEFINED |
| 9 #define Slide_DEFINED | 9 #define Slide_DEFINED |
| 10 | 10 |
| 11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
| 12 #include "SkString.h" | 12 #include "SkString.h" |
| 13 | 13 |
| 14 class SkCanvas; | 14 class SkCanvas; |
| 15 class SkAnimTimer; |
| 15 | 16 |
| 16 class Slide : public SkRefCnt { | 17 class Slide : public SkRefCnt { |
| 17 public: | 18 public: |
| 18 virtual ~Slide() {} | 19 virtual ~Slide() {} |
| 19 | 20 |
| 20 virtual void draw(SkCanvas* canvas) = 0; | 21 virtual void draw(SkCanvas* canvas) = 0; |
| 22 virtual bool animate(const SkAnimTimer&) { return false; } |
| 23 virtual void load() {} |
| 24 virtual void unload() {} |
| 25 |
| 21 SkString getName() { return fName; } | 26 SkString getName() { return fName; } |
| 22 | 27 |
| 23 protected: | 28 protected: |
| 24 SkString fName; | 29 SkString fName; |
| 25 }; | 30 }; |
| 26 | 31 |
| 27 | 32 |
| 28 #endif | 33 #endif |
| OLD | NEW |