| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 enum Mode { | 111 enum Mode { |
| 112 kCodec_Mode, | 112 kCodec_Mode, |
| 113 // We choose to test only one mode with zero initialized memory. | 113 // We choose to test only one mode with zero initialized memory. |
| 114 // This will exercise all of the interesting cases in SkSwizzler | 114 // This will exercise all of the interesting cases in SkSwizzler |
| 115 // without doubling the size of our test suite. | 115 // without doubling the size of our test suite. |
| 116 kCodecZeroInit_Mode, | 116 kCodecZeroInit_Mode, |
| 117 kScanline_Mode, | 117 kScanline_Mode, |
| 118 kStripe_Mode, // Tests the skipping of scanlines | 118 kStripe_Mode, // Tests the skipping of scanlines |
| 119 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization | 119 kCroppedScanline_Mode, // Tests (jpeg) cropped scanline optimization |
| 120 kSubset_Mode, // For codecs that support subsets directly. | 120 kSubset_Mode, // For codecs that support subsets directly. |
| 121 kAnimated_Mode, // For codecs that support animation. |
| 121 }; | 122 }; |
| 122 enum DstColorType { | 123 enum DstColorType { |
| 123 kGetFromCanvas_DstColorType, | 124 kGetFromCanvas_DstColorType, |
| 124 kIndex8_Always_DstColorType, | 125 kIndex8_Always_DstColorType, |
| 125 kGrayscale_Always_DstColorType, | 126 kGrayscale_Always_DstColorType, |
| 126 kNonNative8888_Always_DstColorType, | 127 kNonNative8888_Always_DstColorType, |
| 127 }; | 128 }; |
| 128 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); | 129 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); |
| 129 | 130 |
| 130 Error draw(SkCanvas*) const override; | 131 Error draw(SkCanvas*) const override; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 475 |
| 475 class ViaLite : public Via { | 476 class ViaLite : public Via { |
| 476 public: | 477 public: |
| 477 explicit ViaLite(Sink* sink) : Via(sink) {} | 478 explicit ViaLite(Sink* sink) : Via(sink) {} |
| 478 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 479 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 479 }; | 480 }; |
| 480 | 481 |
| 481 } // namespace DM | 482 } // namespace DM |
| 482 | 483 |
| 483 #endif//DMSrcSink_DEFINED | 484 #endif//DMSrcSink_DEFINED |
| OLD | NEW |