| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 "'--blacklist gpu skp _ _ 8888 gm _ aarects' will also blacklist the aar
ects GM on 8888."); | 57 "'--blacklist gpu skp _ _ 8888 gm _ aarects' will also blacklist the aar
ects GM on 8888."); |
| 58 | 58 |
| 59 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i
n this directory."); | 59 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i
n this directory."); |
| 60 | 60 |
| 61 DEFINE_string(uninterestingHashesFile, "", | 61 DEFINE_string(uninterestingHashesFile, "", |
| 62 "File containing a list of uninteresting hashes. If a result hashes to s
omething in " | 62 "File containing a list of uninteresting hashes. If a result hashes to s
omething in " |
| 63 "this list, no image is written for that result."); | 63 "this list, no image is written for that result."); |
| 64 | 64 |
| 65 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); | 65 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); |
| 66 DEFINE_int32(shard, 0, "Which shard do I run?"); | 66 DEFINE_int32(shard, 0, "Which shard do I run?"); |
| 67 DEFINE_bool2(pre_log, p, false, "Log before running each test. May be incomprehe
nsible when threading"); | |
| 68 | 67 |
| 69 __SK_FORCE_IMAGE_DECODER_LINKING; | 68 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 70 using namespace DM; | 69 using namespace DM; |
| 71 | 70 |
| 72 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 71 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
| 73 | 72 |
| 74 static double now_ms() { return SkTime::GetNSecs() * 1e-6; } | 73 static double now_ms() { return SkTime::GetNSecs() * 1e-6; } |
| 75 | 74 |
| 76 SK_DECLARE_STATIC_MUTEX(gFailuresMutex); | 75 SK_DECLARE_STATIC_MUTEX(gFailuresMutex); |
| 77 static SkTArray<SkString> gFailures; | 76 static SkTArray<SkString> gFailures; |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 Reporter* reporter, | 1242 Reporter* reporter, |
| 1244 GrContextFactory* fac
tory); | 1243 GrContextFactory* fac
tory); |
| 1245 } // namespace skiatest | 1244 } // namespace skiatest |
| 1246 | 1245 |
| 1247 #if !defined(SK_BUILD_FOR_IOS) | 1246 #if !defined(SK_BUILD_FOR_IOS) |
| 1248 int main(int argc, char** argv) { | 1247 int main(int argc, char** argv) { |
| 1249 SkCommandLineFlags::Parse(argc, argv); | 1248 SkCommandLineFlags::Parse(argc, argv); |
| 1250 return dm_main(); | 1249 return dm_main(); |
| 1251 } | 1250 } |
| 1252 #endif | 1251 #endif |
| OLD | NEW |