Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: dm/DM.cpp

Issue 1785613010: Add SkImageGeneratorWIC (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Blacklist bad images Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cmake/CMakeLists.txt ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cmake/CMakeLists.txt ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698