Chromium Code Reviews| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 | 102 |
| 103 class CodecSrc : public Src { | 103 class CodecSrc : public Src { |
| 104 public: | 104 public: |
| 105 enum Mode { | 105 enum Mode { |
| 106 kCodec_Mode, | 106 kCodec_Mode, |
| 107 // We choose to test only one mode with zero initialized memory. | 107 // We choose to test only one mode with zero initialized memory. |
| 108 // This will exercise all of the interesting cases in SkSwizzler | 108 // This will exercise all of the interesting cases in SkSwizzler |
| 109 // without doubling the size of our test suite. | 109 // without doubling the size of our test suite. |
| 110 kCodecZeroInit_Mode, | 110 kCodecZeroInit_Mode, |
| 111 kScanline_Mode, | 111 kScanline_Mode, |
| 112 kStripe_Mode, // Tests the skipping of scanlines | 112 kTile_Mode, // Tests jpeg subset decoding optimizations |
|
scroggo
2016/02/22 15:55:03
"Tile" doesn't seem like it describes this. kParti
msarett
2016/02/22 17:38:16
You're right, I think I've gone too far.
My conce
| |
| 113 kSubset_Mode, // For codecs that support subsets directly. | 113 kSubset_Mode, // For codecs that support subsets directly. |
| 114 kGen_Mode, // Test SkCodecImageGenerator (includes YUV) | 114 kGen_Mode, // Test SkCodecImageGenerator (includes YUV) |
| 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 }; | 120 }; |
| 121 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); | 121 CodecSrc(Path, Mode, DstColorType, SkAlphaType, float); |
| 122 | 122 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 | 357 |
| 358 class ViaMojo : public Via { | 358 class ViaMojo : public Via { |
| 359 public: | 359 public: |
| 360 explicit ViaMojo(Sink* sink) : Via(sink) {} | 360 explicit ViaMojo(Sink* sink) : Via(sink) {} |
| 361 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; | 361 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
| 362 }; | 362 }; |
| 363 | 363 |
| 364 } // namespace DM | 364 } // namespace DM |
| 365 | 365 |
| 366 #endif//DMSrcSink_DEFINED | 366 #endif//DMSrcSink_DEFINED |
| OLD | NEW |