Chromium Code Reviews| 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 ImageSlide_DEFINED | |
| 9 #define ImageSlide_DEFINED | |
| 10 | |
| 11 #include "Slide.h" | |
| 12 #include "SkPicture.h" | |
| 13 #include "SkImage.h" | |
| 14 | |
| 15 static const char* kImageColorXformMetaData = "ImageColorSpaceXform"; | |
| 16 | |
| 17 class ImageSlide : public Slide { | |
| 18 public: | |
| 19 ImageSlide(const SkString& name, const SkString& path); | |
| 20 | |
| 21 SkISize getDimensions() const override; | |
| 22 | |
| 23 void draw(SkCanvas* canvas) override; | |
| 24 void load() override; | |
| 25 void unload() override; | |
| 26 | |
| 27 private: | |
| 28 SkString fPath; | |
| 29 sk_sp<const SkImage> fImage; | |
| 30 SkBitmap fOriginalBitmap, fXformedBitmap; | |
|
msarett
2016/06/13 14:56:26
nit: Skia style puts these fields on two separate
liyuqian
2016/06/13 16:10:40
Done.
| |
| 31 }; | |
| 32 | |
| 33 #endif | |
| OLD | NEW |