| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 /* | 8 /* |
| 9 * Code for the "gm" (Golden Master) rendering comparison tool. | 9 * Code for the "gm" (Golden Master) rendering comparison tool. |
| 10 * | 10 * |
| (...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 | 1158 |
| 1159 bool doPDF = true; | 1159 bool doPDF = true; |
| 1160 bool doReplay = true; | 1160 bool doReplay = true; |
| 1161 bool doPipe = true; | 1161 bool doPipe = true; |
| 1162 bool doTiledPipe = false; | 1162 bool doTiledPipe = false; |
| 1163 bool doSerialize = true; | 1163 bool doSerialize = true; |
| 1164 bool doDeferred = true; | 1164 bool doDeferred = true; |
| 1165 bool doRTree = true; | 1165 bool doRTree = true; |
| 1166 bool doTileGrid = true; | 1166 bool doTileGrid = true; |
| 1167 bool doVerbose = false; | 1167 bool doVerbose = false; |
| 1168 #if SK_SUPPORT_GPU |
| 1168 bool disableTextureCache = false; | 1169 bool disableTextureCache = false; |
| 1170 #endif |
| 1169 SkTDArray<size_t> configs; | 1171 SkTDArray<size_t> configs; |
| 1170 SkTDArray<size_t> excludeConfigs; | 1172 SkTDArray<size_t> excludeConfigs; |
| 1171 SkTDArray<SkScalar> tileGridReplayScales; | 1173 SkTDArray<SkScalar> tileGridReplayScales; |
| 1172 *tileGridReplayScales.append() = SK_Scalar1; // By default only test at scal
e 1.0 | 1174 *tileGridReplayScales.append() = SK_Scalar1; // By default only test at scal
e 1.0 |
| 1173 bool userConfig = false; | 1175 bool userConfig = false; |
| 1174 | 1176 |
| 1175 int moduloRemainder = -1; | 1177 int moduloRemainder = -1; |
| 1176 int moduloDivisor = -1; | 1178 int moduloDivisor = -1; |
| 1177 | 1179 |
| 1178 const char* const commandName = argv[0]; | 1180 const char* const commandName = argv[0]; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 (0 == strcmp(*argv, "-i"))) { | 1297 (0 == strcmp(*argv, "-i"))) { |
| 1296 argv++; | 1298 argv++; |
| 1297 if (argv < stop && **argv) { | 1299 if (argv < stop && **argv) { |
| 1298 resourcePath = *argv; | 1300 resourcePath = *argv; |
| 1299 } | 1301 } |
| 1300 } else if (strcmp(*argv, "--serialize") == 0) { | 1302 } else if (strcmp(*argv, "--serialize") == 0) { |
| 1301 doSerialize = true; | 1303 doSerialize = true; |
| 1302 } else if (strcmp(*argv, "--noserialize") == 0) { | 1304 } else if (strcmp(*argv, "--noserialize") == 0) { |
| 1303 doSerialize = false; | 1305 doSerialize = false; |
| 1304 } else if (strcmp(*argv, "--notexturecache") == 0) { | 1306 } else if (strcmp(*argv, "--notexturecache") == 0) { |
| 1307 #if SK_SUPPORT_GPU |
| 1305 disableTextureCache = true; | 1308 disableTextureCache = true; |
| 1309 #endif |
| 1306 } else if (strcmp(*argv, "--tiledPipe") == 0) { | 1310 } else if (strcmp(*argv, "--tiledPipe") == 0) { |
| 1307 doTiledPipe = true; | 1311 doTiledPipe = true; |
| 1308 } else if (!strcmp(*argv, "--verbose") || !strcmp(*argv, "-v")) { | 1312 } else if (!strcmp(*argv, "--verbose") || !strcmp(*argv, "-v")) { |
| 1309 doVerbose = true; | 1313 doVerbose = true; |
| 1310 } else if ((0 == strcmp(*argv, "--writePath")) || | 1314 } else if ((0 == strcmp(*argv, "--writePath")) || |
| 1311 (0 == strcmp(*argv, "-w"))) { | 1315 (0 == strcmp(*argv, "-w"))) { |
| 1312 argv++; | 1316 argv++; |
| 1313 if (argv < stop && **argv) { | 1317 if (argv < stop && **argv) { |
| 1314 writePath = *argv; | 1318 writePath = *argv; |
| 1315 } | 1319 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 SkGraphics::Term(); | 1696 SkGraphics::Term(); |
| 1693 | 1697 |
| 1694 return (0 == testsFailed) ? 0 : -1; | 1698 return (0 == testsFailed) ? 0 : -1; |
| 1695 } | 1699 } |
| 1696 | 1700 |
| 1697 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1701 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 1698 int main(int argc, char * const argv[]) { | 1702 int main(int argc, char * const argv[]) { |
| 1699 return tool_main(argc, (char**) argv); | 1703 return tool_main(argc, (char**) argv); |
| 1700 } | 1704 } |
| 1701 #endif | 1705 #endif |
| OLD | NEW |