| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 "this list, no image is written for that result."); | 66 "this list, no image is written for that result."); |
| 67 | 67 |
| 68 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); | 68 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); |
| 69 DEFINE_int32(shard, 0, "Which shard do I run?"); | 69 DEFINE_int32(shard, 0, "Which shard do I run?"); |
| 70 DEFINE_bool(simpleCodec, false, "Only decode images to native scale"); | 70 DEFINE_bool(simpleCodec, false, "Only decode images to native scale"); |
| 71 | 71 |
| 72 using namespace DM; | 72 using namespace DM; |
| 73 | 73 |
| 74 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 74 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
| 75 | 75 |
| 76 static const SkMSec kStartMs = SkTime::GetMSecs(); | 76 static const double kStartMs = SkTime::GetMSecs(); |
| 77 | 77 |
| 78 static FILE* gVLog; | 78 static FILE* gVLog; |
| 79 | 79 |
| 80 template <typename... Args> | 80 template <typename... Args> |
| 81 static void vlog(const char* fmt, Args&&... args) { | 81 static void vlog(const char* fmt, Args&&... args) { |
| 82 if (gVLog) { | 82 if (gVLog) { |
| 83 fprintf(gVLog, "%s\t", HumanizeMs(SkTime::GetMSecs() - kStartMs).c_str()
); | 83 fprintf(gVLog, "%s\t", HumanizeMs(SkTime::GetMSecs() - kStartMs).c_str()
); |
| 84 fprintf(gVLog, fmt, args...); | 84 fprintf(gVLog, fmt, args...); |
| 85 fflush(gVLog); | 85 fflush(gVLog); |
| 86 } | 86 } |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 Reporter* reporter, | 1493 Reporter* reporter, |
| 1494 GrContextFactory* fac
tory); | 1494 GrContextFactory* fac
tory); |
| 1495 } // namespace skiatest | 1495 } // namespace skiatest |
| 1496 | 1496 |
| 1497 #if !defined(SK_BUILD_FOR_IOS) | 1497 #if !defined(SK_BUILD_FOR_IOS) |
| 1498 int main(int argc, char** argv) { | 1498 int main(int argc, char** argv) { |
| 1499 SkCommandLineFlags::Parse(argc, argv); | 1499 SkCommandLineFlags::Parse(argc, argv); |
| 1500 return dm_main(); | 1500 return dm_main(); |
| 1501 } | 1501 } |
| 1502 #endif | 1502 #endif |
| OLD | NEW |