| OLD | NEW | 
|---|
| 1 // Main binary for DM. | 1 // Main binary for DM. | 
| 2 // For a high-level overview, please see dm/README. | 2 // For a high-level overview, please see dm/README. | 
| 3 | 3 | 
| 4 #include "SkBenchmark.h" | 4 #include "SkBenchmark.h" | 
| 5 #include "SkCommandLineFlags.h" | 5 #include "SkCommandLineFlags.h" | 
| 6 #include "SkForceLinking.h" | 6 #include "SkForceLinking.h" | 
| 7 #include "SkGraphics.h" | 7 #include "SkGraphics.h" | 
| 8 #include "SkPicture.h" | 8 #include "SkPicture.h" | 
| 9 #include "SkString.h" | 9 #include "SkString.h" | 
| 10 #include "Test.h" | 10 #include "Test.h" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23 | 23 | 
| 24 #include <ctype.h> | 24 #include <ctype.h> | 
| 25 | 25 | 
| 26 using skiagm::GM; | 26 using skiagm::GM; | 
| 27 using skiagm::GMRegistry; | 27 using skiagm::GMRegistry; | 
| 28 using skiatest::Test; | 28 using skiatest::Test; | 
| 29 using skiatest::TestRegistry; | 29 using skiatest::TestRegistry; | 
| 30 | 30 | 
| 31 DEFINE_int32(threads, -1, "Threads for CPU work. Default NUM_CPUS."); | 31 DEFINE_int32(threads, -1, "Threads for CPU work. Default NUM_CPUS."); | 
| 32 DEFINE_int32(gpuThreads, 1, "Threads for GPU work."); | 32 DEFINE_int32(gpuThreads, 1, "Threads for GPU work."); | 
|  | 33 #ifdef SK_BUILD_JSON_WRITER | 
| 33 DEFINE_string2(expectations, r, "", | 34 DEFINE_string2(expectations, r, "", | 
| 34                "If a directory, compare generated images against images under th
     is path. " | 35                "If a directory, compare generated images against images under th
     is path. " | 
| 35 #ifdef SK_BUILD_JSON_WRITER |  | 
| 36                "If a file, compare generated images against JSON expectations at
      this path." | 36                "If a file, compare generated images against JSON expectations at
      this path." | 
|  | 37 ); | 
|  | 38 #else | 
|  | 39 DEFINE_string2(expectations, r, "", | 
|  | 40                "If a directory, compare generated images against images under th
     is path. " | 
|  | 41 ); | 
| 37 #endif | 42 #endif | 
| 38 ); |  | 
| 39 DEFINE_string2(resources, i, "resources", "Path to resources directory."); | 43 DEFINE_string2(resources, i, "resources", "Path to resources directory."); | 
| 40 DEFINE_string(match, "",  "[~][^]substring[$] [...] of GM name to run.\n" | 44 DEFINE_string(match, "",  "[~][^]substring[$] [...] of GM name to run.\n" | 
| 41                           "Multiple matches may be separated by spaces.\n" | 45                           "Multiple matches may be separated by spaces.\n" | 
| 42                           "~ causes a matching GM to always be skipped\n" | 46                           "~ causes a matching GM to always be skipped\n" | 
| 43                           "^ requires the start of the GM to match\n" | 47                           "^ requires the start of the GM to match\n" | 
| 44                           "$ requires the end of the GM to match\n" | 48                           "$ requires the end of the GM to match\n" | 
| 45                           "^ and $ requires an exact match\n" | 49                           "^ and $ requires an exact match\n" | 
| 46                           "If a GM does not match any list entry,\n" | 50                           "If a GM does not match any list entry,\n" | 
| 47                           "it is skipped unless some list entry starts with ~"); | 51                           "it is skipped unless some list entry starts with ~"); | 
| 48 DEFINE_string(config, "565 8888 gpu nonrendering", | 52 DEFINE_string(config, "565 8888 gpu nonrendering", | 
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 261     SkGraphics::Term(); | 265     SkGraphics::Term(); | 
| 262 | 266 | 
| 263     return reporter.failed() > 0; | 267     return reporter.failed() > 0; | 
| 264 } | 268 } | 
| 265 | 269 | 
| 266 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 270 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 
| 267 int main(int argc, char** argv) { | 271 int main(int argc, char** argv) { | 
| 268     return tool_main(argc, argv); | 272     return tool_main(argc, argv); | 
| 269 } | 273 } | 
| 270 #endif | 274 #endif | 
| OLD | NEW | 
|---|