| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 nativeModes.push_back(CodecSrc::kStripe_Mode); | 501 nativeModes.push_back(CodecSrc::kStripe_Mode); |
| 502 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); | 502 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); |
| 503 break; | 503 break; |
| 504 case SkEncodedFormat::kWEBP_SkEncodedFormat: | 504 case SkEncodedFormat::kWEBP_SkEncodedFormat: |
| 505 nativeModes.push_back(CodecSrc::kSubset_Mode); | 505 nativeModes.push_back(CodecSrc::kSubset_Mode); |
| 506 break; | 506 break; |
| 507 case SkEncodedFormat::kDNG_SkEncodedFormat: | 507 case SkEncodedFormat::kDNG_SkEncodedFormat: |
| 508 break; | 508 break; |
| 509 default: | 509 default: |
| 510 nativeModes.push_back(CodecSrc::kScanline_Mode); | 510 nativeModes.push_back(CodecSrc::kScanline_Mode); |
| 511 nativeModes.push_back(CodecSrc::kStripe_Mode); | |
| 512 break; | 511 break; |
| 513 } | 512 } |
| 514 | 513 |
| 515 SkTArray<CodecSrc::DstColorType> colorTypes; | 514 SkTArray<CodecSrc::DstColorType> colorTypes; |
| 516 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); | 515 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); |
| 517 colorTypes.push_back(CodecSrc::kNonNative8888_Always_DstColorType); | 516 colorTypes.push_back(CodecSrc::kNonNative8888_Always_DstColorType); |
| 518 switch (codec->getInfo().colorType()) { | 517 switch (codec->getInfo().colorType()) { |
| 519 case kGray_8_SkColorType: | 518 case kGray_8_SkColorType: |
| 520 colorTypes.push_back(CodecSrc::kGrayscale_Always_DstColorType); | 519 colorTypes.push_back(CodecSrc::kGrayscale_Always_DstColorType); |
| 521 if (kWBMP_SkEncodedFormat == codec->getEncodedFormat()) { | 520 if (kWBMP_SkEncodedFormat == codec->getEncodedFormat()) { |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 #endif | 1449 #endif |
| 1451 } | 1450 } |
| 1452 } // namespace skiatest | 1451 } // namespace skiatest |
| 1453 | 1452 |
| 1454 #if !defined(SK_BUILD_FOR_IOS) | 1453 #if !defined(SK_BUILD_FOR_IOS) |
| 1455 int main(int argc, char** argv) { | 1454 int main(int argc, char** argv) { |
| 1456 SkCommandLineFlags::Parse(argc, argv); | 1455 SkCommandLineFlags::Parse(argc, argv); |
| 1457 return dm_main(); | 1456 return dm_main(); |
| 1458 } | 1457 } |
| 1459 #endif | 1458 #endif |
| OLD | NEW |