| 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 "SkCommonFlags.h" | 18 #include "SkCommonFlags.h" |
| 18 #include "SkFontMgr.h" | 19 #include "SkFontMgr.h" |
| 19 #include "SkForceLinking.h" | 20 #include "SkForceLinking.h" |
| 20 #include "SkGraphics.h" | 21 #include "SkGraphics.h" |
| 21 #include "SkMD5.h" | 22 #include "SkMD5.h" |
| 22 #include "SkMutex.h" | 23 #include "SkMutex.h" |
| 23 #include "SkOSFile.h" | 24 #include "SkOSFile.h" |
| 24 #include "SkTHash.h" | 25 #include "SkTHash.h" |
| 25 #include "SkTaskGroup.h" | 26 #include "SkTaskGroup.h" |
| 26 #include "SkThreadUtils.h" | 27 #include "SkThreadUtils.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 break; | 385 break; |
| 385 case CodecSrc::kGrayscale_Always_DstColorType: | 386 case CodecSrc::kGrayscale_Always_DstColorType: |
| 386 folder.append("_kGray"); | 387 folder.append("_kGray"); |
| 387 break; | 388 break; |
| 388 default: | 389 default: |
| 389 SkASSERT(false); | 390 SkASSERT(false); |
| 390 return; | 391 return; |
| 391 } | 392 } |
| 392 | 393 |
| 393 if (1 != sampleSize) { | 394 if (1 != sampleSize) { |
| 394 folder.appendf("_%.3f", BRDSrc::GetScale(sampleSize)); | 395 folder.appendf("_%.3f", get_scale_from_sample_size(sampleSize)); |
| 395 } | 396 } |
| 396 | 397 |
| 397 BRDSrc* src = new BRDSrc(path, strategy, mode, dstColorType, sampleSize); | 398 BRDSrc* src = new BRDSrc(path, strategy, mode, dstColorType, sampleSize); |
| 398 push_src("image", folder, src); | 399 push_src("image", folder, src); |
| 399 } | 400 } |
| 400 | 401 |
| 401 static void push_brd_srcs(Path path) { | 402 static void push_brd_srcs(Path path) { |
| 402 | 403 |
| 403 const SkBitmapRegionDecoderInterface::Strategy strategies[] = { | 404 const SkBitmapRegionDecoderInterface::Strategy strategies[] = { |
| 404 SkBitmapRegionDecoderInterface::kCanvas_Strategy, | 405 SkBitmapRegionDecoderInterface::kCanvas_Strategy, |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 } | 1095 } |
| 1095 return 0; | 1096 return 0; |
| 1096 } | 1097 } |
| 1097 | 1098 |
| 1098 #if !defined(SK_BUILD_FOR_IOS) | 1099 #if !defined(SK_BUILD_FOR_IOS) |
| 1099 int main(int argc, char** argv) { | 1100 int main(int argc, char** argv) { |
| 1100 SkCommandLineFlags::Parse(argc, argv); | 1101 SkCommandLineFlags::Parse(argc, argv); |
| 1101 return dm_main(); | 1102 return dm_main(); |
| 1102 } | 1103 } |
| 1103 #endif | 1104 #endif |
| OLD | NEW |