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" |
11 #include "DMSrcSinkAndroid.h" | 11 #include "DMSrcSinkAndroid.h" |
12 #include "OverwriteLine.h" | 12 #include "OverwriteLine.h" |
13 #include "ProcStats.h" | 13 #include "ProcStats.h" |
14 #include "SkBBHFactory.h" | 14 #include "SkBBHFactory.h" |
15 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
16 #include "SkCodec.h" | 16 #include "SkCodec.h" |
17 #include "SkCodecTools.h" | 17 #include "SkCodecPriv.h" |
18 #include "SkCommonFlags.h" | 18 #include "SkCommonFlags.h" |
19 #include "SkFontMgr.h" | 19 #include "SkFontMgr.h" |
20 #include "SkForceLinking.h" | 20 #include "SkForceLinking.h" |
21 #include "SkGraphics.h" | 21 #include "SkGraphics.h" |
22 #include "SkMD5.h" | 22 #include "SkMD5.h" |
23 #include "SkMutex.h" | 23 #include "SkMutex.h" |
24 #include "SkOSFile.h" | 24 #include "SkOSFile.h" |
25 #include "SkTHash.h" | 25 #include "SkTHash.h" |
26 #include "SkTaskGroup.h" | 26 #include "SkTaskGroup.h" |
27 #include "SkThreadUtils.h" | 27 #include "SkThreadUtils.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 405 } |
406 | 406 |
407 BRDSrc* src = new BRDSrc(path, strategy, mode, dstColorType, sampleSize); | 407 BRDSrc* src = new BRDSrc(path, strategy, mode, dstColorType, sampleSize); |
408 push_src("image", folder, src); | 408 push_src("image", folder, src); |
409 } | 409 } |
410 | 410 |
411 static void push_brd_srcs(Path path) { | 411 static void push_brd_srcs(Path path) { |
412 | 412 |
413 const SkBitmapRegionDecoderInterface::Strategy strategies[] = { | 413 const SkBitmapRegionDecoderInterface::Strategy strategies[] = { |
414 SkBitmapRegionDecoderInterface::kCanvas_Strategy, | 414 SkBitmapRegionDecoderInterface::kCanvas_Strategy, |
415 SkBitmapRegionDecoderInterface::kOriginal_Strategy | 415 SkBitmapRegionDecoderInterface::kOriginal_Strategy, |
416 }; | 416 }; |
417 | 417 |
418 const uint32_t sampleSizes[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; | 418 const uint32_t sampleSizes[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; |
419 | 419 |
420 // We will only test to one backend (8888), but we will test all of the | 420 // We will only test to one backend (8888), but we will test all of the |
421 // color types that we need to decode to on this backend. | 421 // color types that we need to decode to on this backend. |
422 const CodecSrc::DstColorType dstColorTypes[] = { | 422 const CodecSrc::DstColorType dstColorTypes[] = { |
423 CodecSrc::kGetFromCanvas_DstColorType, | 423 CodecSrc::kGetFromCanvas_DstColorType, |
424 CodecSrc::kIndex8_Always_DstColorType, | 424 CodecSrc::kIndex8_Always_DstColorType, |
425 CodecSrc::kGrayscale_Always_DstColorType, | 425 CodecSrc::kGrayscale_Always_DstColorType, |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 #endif // SK_PDF_IMAGE_STATS | 1108 #endif // SK_PDF_IMAGE_STATS |
1109 return 0; | 1109 return 0; |
1110 } | 1110 } |
1111 | 1111 |
1112 #if !defined(SK_BUILD_FOR_IOS) | 1112 #if !defined(SK_BUILD_FOR_IOS) |
1113 int main(int argc, char** argv) { | 1113 int main(int argc, char** argv) { |
1114 SkCommandLineFlags::Parse(argc, argv); | 1114 SkCommandLineFlags::Parse(argc, argv); |
1115 return dm_main(); | 1115 return dm_main(); |
1116 } | 1116 } |
1117 #endif | 1117 #endif |
OLD | NEW |