| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 DMSrcSink_DEFINED | 8 #ifndef DMSrcSink_DEFINED |
| 9 #define DMSrcSink_DEFINED | 9 #define DMSrcSink_DEFINED |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 Name name() const override; | 173 Name name() const override; |
| 174 bool veto(SinkFlags) const override; | 174 bool veto(SinkFlags) const override; |
| 175 private: | 175 private: |
| 176 Path fPath; | 176 Path fPath; |
| 177 SkBitmapRegionDecoder::Strategy fStrategy; | 177 SkBitmapRegionDecoder::Strategy fStrategy; |
| 178 Mode fMode; | 178 Mode fMode; |
| 179 CodecSrc::DstColorType fDstColorType; | 179 CodecSrc::DstColorType fDstColorType; |
| 180 uint32_t fSampleSize; | 180 uint32_t fSampleSize; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 class ImageSrc : public Src { | |
| 184 public: | |
| 185 explicit ImageSrc(Path path); | |
| 186 | |
| 187 Error draw(SkCanvas*) const override; | |
| 188 SkISize size() const override; | |
| 189 Name name() const override; | |
| 190 bool veto(SinkFlags) const override; | |
| 191 private: | |
| 192 Path fPath; | |
| 193 }; | |
| 194 | |
| 195 class SKPSrc : public Src { | 183 class SKPSrc : public Src { |
| 196 public: | 184 public: |
| 197 explicit SKPSrc(Path path); | 185 explicit SKPSrc(Path path); |
| 198 | 186 |
| 199 Error draw(SkCanvas*) const override; | 187 Error draw(SkCanvas*) const override; |
| 200 SkISize size() const override; | 188 SkISize size() const override; |
| 201 Name name() const override; | 189 Name name() const override; |
| 202 private: | 190 private: |
| 203 Path fPath; | 191 Path fPath; |
| 204 }; | 192 }; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 | 351 |
| 364 class ViaTwice : public Via { | 352 class ViaTwice : public Via { |
| 365 public: | 353 public: |
| 366 explicit ViaTwice(Sink* sink) : Via(sink) {} | 354 explicit ViaTwice(Sink* sink) : Via(sink) {} |
| 367 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 355 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 368 }; | 356 }; |
| 369 | 357 |
| 370 } // namespace DM | 358 } // namespace DM |
| 371 | 359 |
| 372 #endif//DMSrcSink_DEFINED | 360 #endif//DMSrcSink_DEFINED |
| OLD | NEW |