| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 skiagm::GMRegistry::Factory fFactory; | 92 skiagm::GMRegistry::Factory fFactory; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 class CodecSrc : public Src { | 95 class CodecSrc : public Src { |
| 96 public: | 96 public: |
| 97 enum Mode { | 97 enum Mode { |
| 98 kNormal_Mode, | 98 kNormal_Mode, |
| 99 kScanline_Mode, | 99 kScanline_Mode, |
| 100 kScanline_Subset_Mode, | 100 kScanline_Subset_Mode, |
| 101 kStripe_Mode, // Tests the skipping of scanlines | 101 kStripe_Mode, // Tests the skipping of scanlines |
| 102 kSubset_Mode, // For codecs that support subsets directly. |
| 102 }; | 103 }; |
| 103 enum DstColorType { | 104 enum DstColorType { |
| 104 kGetFromCanvas_DstColorType, | 105 kGetFromCanvas_DstColorType, |
| 105 kIndex8_Always_DstColorType, | 106 kIndex8_Always_DstColorType, |
| 106 kGrayscale_Always_DstColorType, | 107 kGrayscale_Always_DstColorType, |
| 107 }; | 108 }; |
| 108 CodecSrc(Path, Mode, DstColorType, float); | 109 CodecSrc(Path, Mode, DstColorType, float); |
| 109 | 110 |
| 110 Error draw(SkCanvas*) const override; | 111 Error draw(SkCanvas*) const override; |
| 111 SkISize size() const override; | 112 SkISize size() const override; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 287 |
| 287 class ViaTwice : public Via { | 288 class ViaTwice : public Via { |
| 288 public: | 289 public: |
| 289 explicit ViaTwice(Sink* sink) : Via(sink) {} | 290 explicit ViaTwice(Sink* sink) : Via(sink) {} |
| 290 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 291 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 291 }; | 292 }; |
| 292 | 293 |
| 293 } // namespace DM | 294 } // namespace DM |
| 294 | 295 |
| 295 #endif//DMSrcSink_DEFINED | 296 #endif//DMSrcSink_DEFINED |
| OLD | NEW |