| 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 582 |
| 583 // There is not currently a reason to test RAW images on image generator. | 583 // There is not currently a reason to test RAW images on image generator. |
| 584 // If we want to enable these tests, we will need to fix skbug.com/5079. | 584 // If we want to enable these tests, we will need to fix skbug.com/5079. |
| 585 for (const char* ext : rawExts) { | 585 for (const char* ext : rawExts) { |
| 586 if (path.endsWith(ext)) { | 586 if (path.endsWith(ext)) { |
| 587 return; | 587 return; |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 | 590 |
| 591 // Push image generator GPU test. | 591 // Push image generator GPU test. |
| 592 // FIXME: The gpu backend does not draw kGray sources correctly. (skbug.com/
4822) | 592 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, codec->getInfo().alphaTyp
e(), true); |
| 593 if (kGray_8_SkColorType != codec->getInfo().colorType()) { | |
| 594 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, codec->getInfo().alph
aType(), true); | |
| 595 } | |
| 596 | 593 |
| 597 // Push image generator CPU tests. | 594 // Push image generator CPU tests. |
| 598 for (SkAlphaType alphaType : alphaModes) { | 595 for (SkAlphaType alphaType : alphaModes) { |
| 599 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); | 596 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false); |
| 600 | 597 |
| 601 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 598 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 602 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && | 599 if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() && |
| 603 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && | 600 kWBMP_SkEncodedFormat != codec->getEncodedFormat() && |
| 604 kUnpremul_SkAlphaType != alphaType) | 601 kUnpremul_SkAlphaType != alphaType) |
| 605 { | 602 { |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 Reporter* reporter, | 1493 Reporter* reporter, |
| 1497 GrContextFactory* fac
tory); | 1494 GrContextFactory* fac
tory); |
| 1498 } // namespace skiatest | 1495 } // namespace skiatest |
| 1499 | 1496 |
| 1500 #if !defined(SK_BUILD_FOR_IOS) | 1497 #if !defined(SK_BUILD_FOR_IOS) |
| 1501 int main(int argc, char** argv) { | 1498 int main(int argc, char** argv) { |
| 1502 SkCommandLineFlags::Parse(argc, argv); | 1499 SkCommandLineFlags::Parse(argc, argv); |
| 1503 return dm_main(); | 1500 return dm_main(); |
| 1504 } | 1501 } |
| 1505 #endif | 1502 #endif |
| OLD | NEW |