| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i
n this directory."); | 65 DEFINE_string2(readPath, r, "", "If set check for equality with golden results i
n this directory."); |
| 66 | 66 |
| 67 DEFINE_string(uninterestingHashesFile, "", | 67 DEFINE_string(uninterestingHashesFile, "", |
| 68 "File containing a list of uninteresting hashes. If a result hashes to s
omething in " | 68 "File containing a list of uninteresting hashes. If a result hashes to s
omething in " |
| 69 "this list, no image is written for that result."); | 69 "this list, no image is written for that result."); |
| 70 | 70 |
| 71 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); | 71 DEFINE_int32(shards, 1, "We're splitting source data into this many shards."); |
| 72 DEFINE_int32(shard, 0, "Which shard do I run?"); | 72 DEFINE_int32(shard, 0, "Which shard do I run?"); |
| 73 DEFINE_bool(simpleCodec, false, "Only decode images to native scale"); | 73 DEFINE_bool(simpleCodec, false, "Only decode images to native scale"); |
| 74 DEFINE_bool(forceSRGB, false, "Force SRGB for imageinfos"); | |
| 75 | 74 |
| 76 using namespace DM; | 75 using namespace DM; |
| 77 using sk_gpu_test::GrContextFactory; | 76 using sk_gpu_test::GrContextFactory; |
| 78 using sk_gpu_test::GLTestContext; | 77 using sk_gpu_test::GLTestContext; |
| 79 using sk_gpu_test::ContextInfo; | 78 using sk_gpu_test::ContextInfo; |
| 80 | 79 |
| 81 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 80 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
| 82 | 81 |
| 83 static const double kStartMs = SkTime::GetMSecs(); | 82 static const double kStartMs = SkTime::GetMSecs(); |
| 84 | 83 |
| (...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 #endif | 1389 #endif |
| 1391 } | 1390 } |
| 1392 } // namespace skiatest | 1391 } // namespace skiatest |
| 1393 | 1392 |
| 1394 #if !defined(SK_BUILD_FOR_IOS) | 1393 #if !defined(SK_BUILD_FOR_IOS) |
| 1395 int main(int argc, char** argv) { | 1394 int main(int argc, char** argv) { |
| 1396 SkCommandLineFlags::Parse(argc, argv); | 1395 SkCommandLineFlags::Parse(argc, argv); |
| 1397 return dm_main(); | 1396 return dm_main(); |
| 1398 } | 1397 } |
| 1399 #endif | 1398 #endif |
| OLD | NEW |