| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 for (SkAlphaType alphaType : alphaModes) { | 596 for (SkAlphaType alphaType : alphaModes) { |
| 597 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); | 597 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); |
| 598 | 598 |
| 599 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 599 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 600 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && | 600 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && |
| 601 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && | 601 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && |
| 602 kUnpremul_SkAlphaType != alphaType) | 602 kUnpremul_SkAlphaType != alphaType) |
| 603 { | 603 { |
| 604 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); | 604 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); |
| 605 } | 605 } |
| 606 #elif defined(SK_BUILD_FOR_WIN) |
| 607 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && |
| 608 kWBMP_SkEncodedFormat != codec->getEncodedFormat()) |
| 609 { |
| 610 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, fal
se); |
| 611 } |
| 606 #endif | 612 #endif |
| 607 } | 613 } |
| 608 } | 614 } |
| 609 | 615 |
| 610 static bool brd_color_type_supported(SkBitmapRegionDecoder::Strategy strategy, | 616 static bool brd_color_type_supported(SkBitmapRegionDecoder::Strategy strategy, |
| 611 CodecSrc::DstColorType dstColorType) { | 617 CodecSrc::DstColorType dstColorType) { |
| 612 switch (strategy) { | 618 switch (strategy) { |
| 613 case SkBitmapRegionDecoder::kCanvas_Strategy: | 619 case SkBitmapRegionDecoder::kCanvas_Strategy: |
| 614 if (CodecSrc::kGetFromCanvas_DstColorType == dstColorType) { | 620 if (CodecSrc::kGetFromCanvas_DstColorType == dstColorType) { |
| 615 return true; | 621 return true; |
| (...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 Reporter* reporter, | 1492 Reporter* reporter, |
| 1487 GrContextFactory* fac
tory); | 1493 GrContextFactory* fac
tory); |
| 1488 } // namespace skiatest | 1494 } // namespace skiatest |
| 1489 | 1495 |
| 1490 #if !defined(SK_BUILD_FOR_IOS) | 1496 #if !defined(SK_BUILD_FOR_IOS) |
| 1491 int main(int argc, char** argv) { | 1497 int main(int argc, char** argv) { |
| 1492 SkCommandLineFlags::Parse(argc, argv); | 1498 SkCommandLineFlags::Parse(argc, argv); |
| 1493 return dm_main(); | 1499 return dm_main(); |
| 1494 } | 1500 } |
| 1495 #endif | 1501 #endif |
| OLD | NEW |