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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 nativeModes.push_back(CodecSrc::kCodecZeroInit_Mode); | 478 nativeModes.push_back(CodecSrc::kCodecZeroInit_Mode); |
479 switch (codec->getEncodedFormat()) { | 479 switch (codec->getEncodedFormat()) { |
480 case SkEncodedFormat::kJPEG_SkEncodedFormat: | 480 case SkEncodedFormat::kJPEG_SkEncodedFormat: |
481 nativeModes.push_back(CodecSrc::kScanline_Mode); | 481 nativeModes.push_back(CodecSrc::kScanline_Mode); |
482 nativeModes.push_back(CodecSrc::kStripe_Mode); | 482 nativeModes.push_back(CodecSrc::kStripe_Mode); |
483 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); | 483 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); |
484 break; | 484 break; |
485 case SkEncodedFormat::kWEBP_SkEncodedFormat: | 485 case SkEncodedFormat::kWEBP_SkEncodedFormat: |
486 nativeModes.push_back(CodecSrc::kSubset_Mode); | 486 nativeModes.push_back(CodecSrc::kSubset_Mode); |
487 break; | 487 break; |
488 case SkEncodedFormat::kRAW_SkEncodedFormat: | 488 case SkEncodedFormat::kDNG_SkEncodedFormat: |
489 break; | 489 break; |
490 default: | 490 default: |
491 nativeModes.push_back(CodecSrc::kScanline_Mode); | 491 nativeModes.push_back(CodecSrc::kScanline_Mode); |
492 nativeModes.push_back(CodecSrc::kStripe_Mode); | 492 nativeModes.push_back(CodecSrc::kStripe_Mode); |
493 break; | 493 break; |
494 } | 494 } |
495 | 495 |
496 SkTArray<CodecSrc::DstColorType> colorTypes; | 496 SkTArray<CodecSrc::DstColorType> colorTypes; |
497 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); | 497 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); |
498 switch (codec->getInfo().colorType()) { | 498 switch (codec->getInfo().colorType()) { |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 Reporter* reporter, | 1480 Reporter* reporter, |
1481 GrContextFactory* fac
tory); | 1481 GrContextFactory* fac
tory); |
1482 } // namespace skiatest | 1482 } // namespace skiatest |
1483 | 1483 |
1484 #if !defined(SK_BUILD_FOR_IOS) | 1484 #if !defined(SK_BUILD_FOR_IOS) |
1485 int main(int argc, char** argv) { | 1485 int main(int argc, char** argv) { |
1486 SkCommandLineFlags::Parse(argc, argv); | 1486 SkCommandLineFlags::Parse(argc, argv); |
1487 return dm_main(); | 1487 return dm_main(); |
1488 } | 1488 } |
1489 #endif | 1489 #endif |
OLD | NEW |