mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 1 | // Main binary for DM. |
| 2 | // For a high-level overview, please see dm/README. |
| 3 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 4 | #include "SkBenchmark.h" |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 5 | #include "SkCommandLineFlags.h" |
| 6 | #include "SkForceLinking.h" |
| 7 | #include "SkGraphics.h" |
commit-bot@chromium.org | 90b5a2a | 2014-05-14 17:55:32 +0000 | [diff] [blame] | 8 | #include "SkPicture.h" |
rmistry@google.com | d6bab02 | 2013-12-02 13:50:38 +0000 | [diff] [blame] | 9 | #include "SkString.h" |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 10 | #include "Test.h" |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 11 | #include "gm.h" |
| 12 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 13 | #include "DMBenchTask.h" |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 14 | #include "DMCpuGMTask.h" |
| 15 | #include "DMGpuGMTask.h" |
commit-bot@chromium.org | 787227d | 2014-03-26 21:26:15 +0000 | [diff] [blame] | 16 | #include "DMGpuSupport.h" |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 17 | #include "DMReporter.h" |
commit-bot@chromium.org | 90b5a2a | 2014-05-14 17:55:32 +0000 | [diff] [blame] | 18 | #include "DMSKPTask.h" |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 19 | #include "DMTask.h" |
| 20 | #include "DMTaskRunner.h" |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 21 | #include "DMTestTask.h" |
commit-bot@chromium.org | 99589af | 2013-12-10 14:53:16 +0000 | [diff] [blame] | 22 | #include "DMWriteTask.h" |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 23 | |
commit-bot@chromium.org | 120c999 | 2014-05-16 18:11:51 +0000 | [diff] [blame] | 24 | #include <ctype.h> |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 25 | |
| 26 | using skiagm::GM; |
| 27 | using skiagm::GMRegistry; |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 28 | using skiatest::Test; |
| 29 | using skiatest::TestRegistry; |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 30 | |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 31 | DEFINE_int32(threads, -1, "Threads for CPU work. Default NUM_CPUS."); |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 32 | DEFINE_int32(gpuThreads, 1, "Threads for GPU work."); |
commit-bot@chromium.org | a267d41 | 2014-05-16 18:27:11 +0000 | [diff] [blame] | 33 | #ifdef SK_BUILD_JSON_WRITER |
commit-bot@chromium.org | 99589af | 2013-12-10 14:53:16 +0000 | [diff] [blame] | 34 | DEFINE_string2(expectations, r, "", |
| 35 | "If a directory, compare generated images against images under this path. " |
commit-bot@chromium.org | 120c999 | 2014-05-16 18:11:51 +0000 | [diff] [blame] | 36 | "If a file, compare generated images against JSON expectations at this path." |
commit-bot@chromium.org | 120c999 | 2014-05-16 18:11:51 +0000 | [diff] [blame] | 37 | ); |
commit-bot@chromium.org | a267d41 | 2014-05-16 18:27:11 +0000 | [diff] [blame] | 38 | #else |
| 39 | DEFINE_string2(expectations, r, "", |
| 40 | "If a directory, compare generated images against images under this path. " |
| 41 | ); |
| 42 | #endif |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 43 | DEFINE_string2(resources, i, "resources", "Path to resources directory."); |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 44 | DEFINE_string(match, "", "[~][^]substring[$] [...] of GM name to run.\n" |
| 45 | "Multiple matches may be separated by spaces.\n" |
| 46 | "~ causes a matching GM to always be skipped\n" |
| 47 | "^ requires the start of the GM to match\n" |
| 48 | "$ requires the end of the GM to match\n" |
| 49 | "^ and $ requires an exact match\n" |
| 50 | "If a GM does not match any list entry,\n" |
| 51 | "it is skipped unless some list entry starts with ~"); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 52 | DEFINE_string(config, "565 8888 gpu nonrendering", |
commit-bot@chromium.org | b640186 | 2014-03-12 14:46:31 +0000 | [diff] [blame] | 53 | "Options: 565 8888 gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 gpunull gpudebug angle mesa"); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 54 | DEFINE_bool(leaks, false, "Print leaked instance-counted objects at exit?"); |
commit-bot@chromium.org | 90b5a2a | 2014-05-14 17:55:32 +0000 | [diff] [blame] | 55 | DEFINE_string(skps, "", "Directory to read skps from."); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 56 | |
| 57 | DEFINE_bool(gms, true, "Run GMs?"); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 58 | DEFINE_bool(benches, true, "Run benches? Does not run GMs-as-benches."); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 59 | DEFINE_bool(tests, true, "Run tests?"); |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 60 | |
| 61 | __SK_FORCE_IMAGE_DECODER_LINKING; |
| 62 | |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 63 | // "FooBar" -> "foobar". Obviously, ASCII only. |
| 64 | static SkString lowercase(SkString s) { |
| 65 | for (size_t i = 0; i < s.size(); i++) { |
| 66 | s[i] = tolower(s[i]); |
| 67 | } |
| 68 | return s; |
| 69 | } |
| 70 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 71 | static const GrContextFactory::GLContextType native = GrContextFactory::kNative_GLContextType; |
commit-bot@chromium.org | b640186 | 2014-03-12 14:46:31 +0000 | [diff] [blame] | 72 | static const GrContextFactory::GLContextType nvpr = GrContextFactory::kNVPR_GLContextType; |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 73 | static const GrContextFactory::GLContextType null = GrContextFactory::kNull_GLContextType; |
| 74 | static const GrContextFactory::GLContextType debug = GrContextFactory::kDebug_GLContextType; |
| 75 | static const GrContextFactory::GLContextType angle = |
| 76 | #if SK_ANGLE |
| 77 | GrContextFactory::kANGLE_GLContextType; |
| 78 | #else |
| 79 | native; |
| 80 | #endif |
| 81 | static const GrContextFactory::GLContextType mesa = |
| 82 | #if SK_MESA |
bsalomon@google.com | 9dccafa | 2014-05-02 14:43:12 +0000 | [diff] [blame] | 83 | GrContextFactory::kMESA_GLContextType; |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 84 | #else |
| 85 | native; |
| 86 | #endif |
| 87 | |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 88 | static void kick_off_gms(const SkTDArray<GMRegistry::Factory>& gms, |
| 89 | const SkTArray<SkString>& configs, |
| 90 | const DM::Expectations& expectations, |
| 91 | DM::Reporter* reporter, |
| 92 | DM::TaskRunner* tasks) { |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 93 | #define START(name, type, ...) \ |
| 94 | if (lowercase(configs[j]).equals(name)) { \ |
| 95 | tasks->add(SkNEW_ARGS(DM::type, \ |
| 96 | (name, reporter, tasks, expectations, gms[i], ## __VA_ARGS__))); \ |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 97 | } |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 98 | for (int i = 0; i < gms.count(); i++) { |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 99 | for (int j = 0; j < configs.count(); j++) { |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 100 | START("565", CpuGMTask, kRGB_565_SkColorType); |
commit-bot@chromium.org | 28fcae2 | 2014-04-11 17:15:40 +0000 | [diff] [blame] | 101 | START("8888", CpuGMTask, kN32_SkColorType); |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 102 | START("gpu", GpuGMTask, native, 0); |
| 103 | START("msaa4", GpuGMTask, native, 4); |
| 104 | START("msaa16", GpuGMTask, native, 16); |
commit-bot@chromium.org | b640186 | 2014-03-12 14:46:31 +0000 | [diff] [blame] | 105 | START("nvprmsaa4", GpuGMTask, nvpr, 4); |
| 106 | START("nvprmsaa16", GpuGMTask, nvpr, 16); |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 107 | START("gpunull", GpuGMTask, null, 0); |
| 108 | START("gpudebug", GpuGMTask, debug, 0); |
| 109 | START("angle", GpuGMTask, angle, 0); |
| 110 | START("mesa", GpuGMTask, mesa, 0); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 111 | } |
| 112 | } |
| 113 | #undef START |
| 114 | } |
| 115 | |
| 116 | static void kick_off_benches(const SkTDArray<BenchRegistry::Factory>& benches, |
| 117 | const SkTArray<SkString>& configs, |
| 118 | DM::Reporter* reporter, |
| 119 | DM::TaskRunner* tasks) { |
| 120 | #define START(name, type, ...) \ |
| 121 | if (lowercase(configs[j]).equals(name)) { \ |
| 122 | tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, benches[i], ## __VA_ARGS__))); \ |
| 123 | } |
| 124 | for (int i = 0; i < benches.count(); i++) { |
| 125 | for (int j = 0; j < configs.count(); j++) { |
| 126 | START("nonrendering", NonRenderingBenchTask); |
| 127 | START("565", CpuBenchTask, kRGB_565_SkColorType); |
commit-bot@chromium.org | 28fcae2 | 2014-04-11 17:15:40 +0000 | [diff] [blame] | 128 | START("8888", CpuBenchTask, kN32_SkColorType); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 129 | START("gpu", GpuBenchTask, native, 0); |
| 130 | START("msaa4", GpuBenchTask, native, 4); |
| 131 | START("msaa16", GpuBenchTask, native, 16); |
commit-bot@chromium.org | b640186 | 2014-03-12 14:46:31 +0000 | [diff] [blame] | 132 | START("nvprmsaa4", GpuBenchTask, nvpr, 4); |
| 133 | START("nvprmsaa16", GpuBenchTask, nvpr, 16); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 134 | START("gpunull", GpuBenchTask, null, 0); |
| 135 | START("gpudebug", GpuBenchTask, debug, 0); |
| 136 | START("angle", GpuBenchTask, angle, 0); |
| 137 | START("mesa", GpuBenchTask, mesa, 0); |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 138 | } |
| 139 | } |
| 140 | #undef START |
| 141 | } |
| 142 | |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 143 | static void kick_off_tests(const SkTDArray<TestRegistry::Factory>& tests, |
| 144 | DM::Reporter* reporter, |
| 145 | DM::TaskRunner* tasks) { |
| 146 | for (int i = 0; i < tests.count(); i++) { |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 147 | SkAutoTDelete<Test> test(tests[i](NULL)); |
| 148 | if (test->isGPUTest()) { |
| 149 | tasks->add(SkNEW_ARGS(DM::GpuTestTask, (reporter, tasks, tests[i]))); |
| 150 | } else { |
| 151 | tasks->add(SkNEW_ARGS(DM::CpuTestTask, (reporter, tasks, tests[i]))); |
| 152 | } |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 153 | } |
| 154 | } |
| 155 | |
commit-bot@chromium.org | 90b5a2a | 2014-05-14 17:55:32 +0000 | [diff] [blame] | 156 | static void kick_off_skps(DM::Reporter* reporter, DM::TaskRunner* tasks) { |
| 157 | if (FLAGS_skps.isEmpty()) { |
| 158 | return; |
| 159 | } |
| 160 | |
| 161 | SkOSFile::Iter it(FLAGS_skps[0], ".skp"); |
| 162 | SkString filename; |
| 163 | while (it.next(&filename)) { |
| 164 | if (SkCommandLineFlags::ShouldSkip(FLAGS_match, filename.c_str())) { |
| 165 | continue; |
| 166 | } |
| 167 | |
| 168 | const SkString path = SkOSPath::SkPathJoin(FLAGS_skps[0], filename.c_str()); |
| 169 | |
| 170 | SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(path.c_str())); |
| 171 | if (stream.get() == NULL) { |
| 172 | SkDebugf("Could not read %s.\n", path.c_str()); |
| 173 | exit(1); |
| 174 | } |
| 175 | SkAutoTUnref<SkPicture> pic(SkPicture::CreateFromStream(stream.get())); |
| 176 | if (pic.get() == NULL) { |
| 177 | SkDebugf("Could not read %s as an SkPicture.\n", path.c_str()); |
| 178 | exit(1); |
| 179 | } |
| 180 | |
| 181 | tasks->add(SkNEW_ARGS(DM::SKPTask, (reporter, tasks, pic.detach(), filename))); |
| 182 | } |
| 183 | } |
| 184 | |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 185 | static void report_failures(const DM::Reporter& reporter) { |
| 186 | SkTArray<SkString> failures; |
| 187 | reporter.getFailures(&failures); |
| 188 | |
| 189 | if (failures.count() == 0) { |
| 190 | return; |
| 191 | } |
| 192 | |
| 193 | SkDebugf("Failures:\n"); |
| 194 | for (int i = 0; i < failures.count(); i++) { |
| 195 | SkDebugf(" %s\n", failures[i].c_str()); |
| 196 | } |
| 197 | } |
| 198 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 199 | template <typename T, typename Registry> |
| 200 | static void append_matching_factories(Registry* head, SkTDArray<typename Registry::Factory>* out) { |
| 201 | for (const Registry* reg = head; reg != NULL; reg = reg->next()) { |
| 202 | SkAutoTDelete<T> forName(reg->factory()(NULL)); |
| 203 | if (!SkCommandLineFlags::ShouldSkip(FLAGS_match, forName->getName())) { |
| 204 | *out->append() = reg->factory(); |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
commit-bot@chromium.org | 846872f | 2013-10-16 18:21:03 +0000 | [diff] [blame] | 209 | int tool_main(int argc, char** argv); |
| 210 | int tool_main(int argc, char** argv) { |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 211 | SkGraphics::Init(); |
| 212 | SkCommandLineFlags::Parse(argc, argv); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 213 | #if SK_ENABLE_INST_COUNT |
| 214 | gPrintInstCount = FLAGS_leaks; |
| 215 | #endif |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 216 | GM::SetResourcePath(FLAGS_resources[0]); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 217 | SkBenchmark::SetResourcePath(FLAGS_resources[0]); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 218 | Test::SetResourcePath(FLAGS_resources[0]); |
| 219 | |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 220 | SkTArray<SkString> configs; |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 221 | for (int i = 0; i < FLAGS_config.count(); i++) { |
| 222 | SkStrSplit(FLAGS_config[i], ", ", &configs); |
| 223 | } |
| 224 | |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 225 | SkTDArray<GMRegistry::Factory> gms; |
commit-bot@chromium.org | 99589af | 2013-12-10 14:53:16 +0000 | [diff] [blame] | 226 | SkAutoTDelete<DM::Expectations> expectations(SkNEW(DM::NoExpectations)); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 227 | if (FLAGS_gms) { |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 228 | append_matching_factories<GM>(GMRegistry::Head(), &gms); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 229 | |
| 230 | if (FLAGS_expectations.count() > 0) { |
| 231 | const char* path = FLAGS_expectations[0]; |
| 232 | if (sk_isdir(path)) { |
| 233 | expectations.reset(SkNEW_ARGS(DM::WriteTask::Expectations, (path))); |
| 234 | } else { |
commit-bot@chromium.org | 120c999 | 2014-05-16 18:11:51 +0000 | [diff] [blame] | 235 | #ifdef SK_BUILD_JSON_WRITER |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 236 | expectations.reset(SkNEW_ARGS(DM::JsonExpectations, (path))); |
commit-bot@chromium.org | 120c999 | 2014-05-16 18:11:51 +0000 | [diff] [blame] | 237 | #endif |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 238 | } |
commit-bot@chromium.org | 99589af | 2013-12-10 14:53:16 +0000 | [diff] [blame] | 239 | } |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 240 | } |
| 241 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 242 | SkTDArray<BenchRegistry::Factory> benches; |
| 243 | if (FLAGS_benches) { |
| 244 | append_matching_factories<SkBenchmark>(BenchRegistry::Head(), &benches); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 245 | } |
| 246 | |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 247 | SkTDArray<TestRegistry::Factory> tests; |
| 248 | if (FLAGS_tests) { |
| 249 | append_matching_factories<Test>(TestRegistry::Head(), &tests); |
| 250 | } |
| 251 | |
| 252 | SkDebugf("(%d GMs, %d benches) x %d configs, %d tests\n", |
| 253 | gms.count(), benches.count(), configs.count(), tests.count()); |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 254 | DM::Reporter reporter; |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 255 | DM::TaskRunner tasks(FLAGS_threads, FLAGS_gpuThreads); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 256 | kick_off_gms(gms, configs, *expectations, &reporter, &tasks); |
commit-bot@chromium.org | 38aeb0f | 2014-02-26 23:01:57 +0000 | [diff] [blame] | 257 | kick_off_benches(benches, configs, &reporter, &tasks); |
commit-bot@chromium.org | 0dc5bd1 | 2014-02-26 16:31:22 +0000 | [diff] [blame] | 258 | kick_off_tests(tests, &reporter, &tasks); |
commit-bot@chromium.org | 90b5a2a | 2014-05-14 17:55:32 +0000 | [diff] [blame] | 259 | kick_off_skps(&reporter, &tasks); |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 260 | tasks.wait(); |
| 261 | |
mtklein@google.com | d36522d | 2013-10-16 13:02:15 +0000 | [diff] [blame] | 262 | SkDebugf("\n"); |
| 263 | report_failures(reporter); |
| 264 | |
| 265 | SkGraphics::Term(); |
| 266 | |
| 267 | return reporter.failed() > 0; |
| 268 | } |
commit-bot@chromium.org | 846872f | 2013-10-16 18:21:03 +0000 | [diff] [blame] | 269 | |
| 270 | #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 271 | int main(int argc, char** argv) { |
| 272 | return tool_main(argc, argv); |
| 273 | } |
| 274 | #endif |