| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
| 9 #include "DMJsonWriter.h" | 9 #include "DMJsonWriter.h" |
| 10 #include "DMSrcSink.h" | 10 #include "DMSrcSink.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 push_src("image", "codec_kGray8", new CodecSrc(path, CodecSrc::kNorm
al_Mode, | 196 push_src("image", "codec_kGray8", new CodecSrc(path, CodecSrc::kNorm
al_Mode, |
| 197 CodecSrc::kGrayscale_Always_DstColorType)); | 197 CodecSrc::kGrayscale_Always_DstColorType)); |
| 198 push_src("image", "scanline_kGray8", new CodecSrc(path, CodecSrc::kS
canline_Mode, | 198 push_src("image", "scanline_kGray8", new CodecSrc(path, CodecSrc::kS
canline_Mode, |
| 199 CodecSrc::kGrayscale_Always_DstColorType)); | 199 CodecSrc::kGrayscale_Always_DstColorType)); |
| 200 // Intentional fall through | 200 // Intentional fall through |
| 201 // FIXME: Is this a long term solution for testing wbmps decodes to
kIndex8? | 201 // FIXME: Is this a long term solution for testing wbmps decodes to
kIndex8? |
| 202 // Further discussion on this topic is at skbug.com/3683 | 202 // Further discussion on this topic is at skbug.com/3683 |
| 203 case kIndex_8_SkColorType: | 203 case kIndex_8_SkColorType: |
| 204 push_src("image", "codec_kIndex8", new CodecSrc(path, CodecSrc::kNorma
l_Mode, | 204 push_src("image", "codec_kIndex8", new CodecSrc(path, CodecSrc::kNorma
l_Mode, |
| 205 CodecSrc::kIndex8_Always_DstColorType)); | 205 CodecSrc::kIndex8_Always_DstColorType)); |
| 206 // FIXME: Need to implement scanline decoding for kIndex8. | 206 push_src("image", "scanline_kIndex8", new CodecSrc(path, CodecSrc::kSc
anline_Mode, |
| 207 //push_src("image", "scanline kIndex8", new CodecSrc(path, CodecSrc::k
Scanline_Mode, | 207 CodecSrc::kIndex8_Always_DstColorType)); |
| 208 // CodecSrc::kIndex8_Always_DstColorType)); | |
| 209 break; | 208 break; |
| 210 default: | 209 default: |
| 211 // Do nothing | 210 // Do nothing |
| 212 break; | 211 break; |
| 213 } | 212 } |
| 214 | 213 |
| 215 // Decode all images to the canvas color type | 214 // Decode all images to the canvas color type |
| 216 push_src("image", "codec", new CodecSrc(path, CodecSrc::kNormal_Mode, | 215 push_src("image", "codec", new CodecSrc(path, CodecSrc::kNormal_Mode, |
| 217 CodecSrc::kGetFromCanvas_DstColorType)); | 216 CodecSrc::kGetFromCanvas_DstColorType)); |
| 218 push_src("image", "scanline", new CodecSrc(path, CodecSrc::kScanline_Mode, | 217 push_src("image", "scanline", new CodecSrc(path, CodecSrc::kScanline_Mode, |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 } | 743 } |
| 745 return 0; | 744 return 0; |
| 746 } | 745 } |
| 747 | 746 |
| 748 #if !defined(SK_BUILD_FOR_IOS) | 747 #if !defined(SK_BUILD_FOR_IOS) |
| 749 int main(int argc, char** argv) { | 748 int main(int argc, char** argv) { |
| 750 SkCommandLineFlags::Parse(argc, argv); | 749 SkCommandLineFlags::Parse(argc, argv); |
| 751 return dm_main(); | 750 return dm_main(); |
| 752 } | 751 } |
| 753 #endif | 752 #endif |
| OLD | NEW |