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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 for (SkAlphaType alphaType : alphaModes) { | 590 for (SkAlphaType alphaType : alphaModes) { |
591 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); | 591 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); |
592 | 592 |
593 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 593 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
594 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && | 594 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && |
595 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && | 595 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && |
596 kUnpremul_SkAlphaType != alphaType) | 596 kUnpremul_SkAlphaType != alphaType) |
597 { | 597 { |
598 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); | 598 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); |
599 } | 599 } |
| 600 #elif defined(SK_BUILD_FOR_WIN) |
| 601 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && |
| 602 kWBMP_SkEncodedFormat != codec->getEncodedFormat()) |
| 603 { |
| 604 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); |
| 605 } |
600 #endif | 606 #endif |
601 } | 607 } |
602 } | 608 } |
603 | 609 |
604 static bool brd_color_type_supported(SkBitmapRegionDecoder::Strategy strategy, | 610 static bool brd_color_type_supported(SkBitmapRegionDecoder::Strategy strategy, |
605 CodecSrc::DstColorType dstColorType) { | 611 CodecSrc::DstColorType dstColorType) { |
606 switch (strategy) { | 612 switch (strategy) { |
607 case SkBitmapRegionDecoder::kCanvas_Strategy: | 613 case SkBitmapRegionDecoder::kCanvas_Strategy: |
608 if (CodecSrc::kGetFromCanvas_DstColorType == dstColorType) { | 614 if (CodecSrc::kGetFromCanvas_DstColorType == dstColorType) { |
609 return true; | 615 return true; |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 Reporter* reporter, | 1485 Reporter* reporter, |
1480 GrContextFactory* fac
tory); | 1486 GrContextFactory* fac
tory); |
1481 } // namespace skiatest | 1487 } // namespace skiatest |
1482 | 1488 |
1483 #if !defined(SK_BUILD_FOR_IOS) | 1489 #if !defined(SK_BUILD_FOR_IOS) |
1484 int main(int argc, char** argv) { | 1490 int main(int argc, char** argv) { |
1485 SkCommandLineFlags::Parse(argc, argv); | 1491 SkCommandLineFlags::Parse(argc, argv); |
1486 return dm_main(); | 1492 return dm_main(); |
1487 } | 1493 } |
1488 #endif | 1494 #endif |
OLD | NEW |