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 SKPSlide_DEFINED | 8 #ifndef SKPSlide_DEFINED |
9 #define SKPSlide_DEFINED | 9 #define SKPSlide_DEFINED |
10 | 10 |
11 #include "Slide.h" | 11 #include "Slide.h" |
12 #include "SkPicture.h" | 12 #include "SkPicture.h" |
13 | 13 |
14 class SKPSlide : public Slide { | 14 class SKPSlide : public Slide { |
15 public: | 15 public: |
16 SKPSlide(const char* name, sk_sp<const SkPicture> pic); | 16 SKPSlide(const SkString& name, const SkString& path); |
17 ~SKPSlide() override; | 17 ~SKPSlide() override; |
18 | 18 |
19 void draw(SkCanvas* canvas) override; | 19 void draw(SkCanvas* canvas) override; |
| 20 void load() override; |
| 21 void unload() override; |
20 | 22 |
21 private: | 23 private: |
| 24 SkString fPath; |
22 sk_sp<const SkPicture> fPic; | 25 sk_sp<const SkPicture> fPic; |
23 SkIRect fCullRect; | 26 SkIRect fCullRect; |
24 }; | 27 }; |
25 | 28 |
26 #endif | 29 #endif |
OLD | NEW |