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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 nativeModes.push_back(CodecSrc::kGen_Mode); | 355 nativeModes.push_back(CodecSrc::kGen_Mode); |
356 switch (codec->getEncodedFormat()) { | 356 switch (codec->getEncodedFormat()) { |
357 case SkEncodedFormat::kJPEG_SkEncodedFormat: | 357 case SkEncodedFormat::kJPEG_SkEncodedFormat: |
358 nativeModes.push_back(CodecSrc::kScanline_Mode); | 358 nativeModes.push_back(CodecSrc::kScanline_Mode); |
359 nativeModes.push_back(CodecSrc::kStripe_Mode); | 359 nativeModes.push_back(CodecSrc::kStripe_Mode); |
360 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); | 360 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); |
361 break; | 361 break; |
362 case SkEncodedFormat::kWEBP_SkEncodedFormat: | 362 case SkEncodedFormat::kWEBP_SkEncodedFormat: |
363 nativeModes.push_back(CodecSrc::kSubset_Mode); | 363 nativeModes.push_back(CodecSrc::kSubset_Mode); |
364 break; | 364 break; |
| 365 case SkEncodedFormat::kRAW_SkEncodedFormat: |
| 366 break; |
365 default: | 367 default: |
366 nativeModes.push_back(CodecSrc::kScanline_Mode); | 368 nativeModes.push_back(CodecSrc::kScanline_Mode); |
367 nativeModes.push_back(CodecSrc::kStripe_Mode); | 369 nativeModes.push_back(CodecSrc::kStripe_Mode); |
368 break; | 370 break; |
369 } | 371 } |
370 | 372 |
371 SkTArray<CodecSrc::DstColorType> colorTypes; | 373 SkTArray<CodecSrc::DstColorType> colorTypes; |
372 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); | 374 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); |
373 switch (codec->getInfo().colorType()) { | 375 switch (codec->getInfo().colorType()) { |
374 case kGray_8_SkColorType: | 376 case kGray_8_SkColorType: |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 Reporter* reporter, | 1293 Reporter* reporter, |
1292 GrContextFactory* fac
tory); | 1294 GrContextFactory* fac
tory); |
1293 } // namespace skiatest | 1295 } // namespace skiatest |
1294 | 1296 |
1295 #if !defined(SK_BUILD_FOR_IOS) | 1297 #if !defined(SK_BUILD_FOR_IOS) |
1296 int main(int argc, char** argv) { | 1298 int main(int argc, char** argv) { |
1297 SkCommandLineFlags::Parse(argc, argv); | 1299 SkCommandLineFlags::Parse(argc, argv); |
1298 return dm_main(); | 1300 return dm_main(); |
1299 } | 1301 } |
1300 #endif | 1302 #endif |
OLD | NEW |