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