| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 kCodecZeroInit_Mode, | 110 kCodecZeroInit_Mode, |
| 111 kScanline_Mode, | 111 kScanline_Mode, |
| 112 kStripe_Mode, // Tests the skipping of scanlines | 112 kStripe_Mode, // Tests the skipping of scanlines |
| 113 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization | 113 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization |
| 114 kSubset_Mode, // For codecs that support subsets directly. | 114 kSubset_Mode, // For codecs that support subsets directly. |
| 115 }; | 115 }; |
| 116 enum DstColorType { | 116 enum DstColorType { |
| 117 kGetFromCanvas_DstColorType, | 117 kGetFromCanvas_DstColorType, |
| 118 kIndex8_Always_DstColorType, | 118 kIndex8_Always_DstColorType, |
| 119 kGrayscale_Always_DstColorType, | 119 kGrayscale_Always_DstColorType, |
| 120 kNonNative8888_Always_DstColorType, |
| 120 }; | 121 }; |
| 121 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); | 122 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); |
| 122 | 123 |
| 123 Error draw(SkCanvas*) const override; | 124 Error draw(SkCanvas*) const override; |
| 124 SkISize size() const override; | 125 SkISize size() const override; |
| 125 Name name() const override; | 126 Name name() const override; |
| 126 bool veto(SinkFlags) const override; | 127 bool veto(SinkFlags) const override; |
| 127 bool serial() const override { return fRunSerially; } | 128 bool serial() const override { return fRunSerially; } |
| 128 private: | 129 private: |
| 129 Path fPath; | 130 Path fPath; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 372 |
| 372 class ViaMojo : public Via { | 373 class ViaMojo : public Via { |
| 373 public: | 374 public: |
| 374 explicit ViaMojo(Sink* sink) : Via(sink) {} | 375 explicit ViaMojo(Sink* sink) : Via(sink) {} |
| 375 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 376 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 376 }; | 377 }; |
| 377 | 378 |
| 378 } // namespace DM | 379 } // namespace DM |
| 379 | 380 |
| 380 #endif//DMSrcSink_DEFINED | 381 #endif//DMSrcSink_DEFINED |
| OLD | NEW |