| 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 | 1171 |
| 1172 bool doPDF = true; | 1172 bool doPDF = true; |
| 1173 bool doReplay = true; | 1173 bool doReplay = true; |
| 1174 bool doPipe = true; | 1174 bool doPipe = true; |
| 1175 bool doTiledPipe = false; | 1175 bool doTiledPipe = false; |
| 1176 bool doSerialize = true; | 1176 bool doSerialize = true; |
| 1177 bool doDeferred = true; | 1177 bool doDeferred = true; |
| 1178 bool doRTree = true; | 1178 bool doRTree = true; |
| 1179 bool doTileGrid = true; | 1179 bool doTileGrid = true; |
| 1180 bool doVerbose = false; | 1180 bool doVerbose = false; |
| 1181 #if SK_SUPPORT_GPU |
| 1181 bool disableTextureCache = false; | 1182 bool disableTextureCache = false; |
| 1183 #endif |
| 1182 SkTDArray<size_t> configs; | 1184 SkTDArray<size_t> configs; |
| 1183 SkTDArray<size_t> excludeConfigs; | 1185 SkTDArray<size_t> excludeConfigs; |
| 1184 SkTDArray<SkScalar> tileGridReplayScales; | 1186 SkTDArray<SkScalar> tileGridReplayScales; |
| 1185 *tileGridReplayScales.append() = SK_Scalar1; // By default only test at scal
e 1.0 | 1187 *tileGridReplayScales.append() = SK_Scalar1; // By default only test at scal
e 1.0 |
| 1186 bool userConfig = false; | 1188 bool userConfig = false; |
| 1187 | 1189 |
| 1188 int moduloRemainder = -1; | 1190 int moduloRemainder = -1; |
| 1189 int moduloDivisor = -1; | 1191 int moduloDivisor = -1; |
| 1190 | 1192 |
| 1191 const char* const commandName = argv[0]; | 1193 const char* const commandName = argv[0]; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 (0 == strcmp(*argv, "-i"))) { | 1310 (0 == strcmp(*argv, "-i"))) { |
| 1309 argv++; | 1311 argv++; |
| 1310 if (argv < stop && **argv) { | 1312 if (argv < stop && **argv) { |
| 1311 resourcePath = *argv; | 1313 resourcePath = *argv; |
| 1312 } | 1314 } |
| 1313 } else if (strcmp(*argv, "--serialize") == 0) { | 1315 } else if (strcmp(*argv, "--serialize") == 0) { |
| 1314 doSerialize = true; | 1316 doSerialize = true; |
| 1315 } else if (strcmp(*argv, "--noserialize") == 0) { | 1317 } else if (strcmp(*argv, "--noserialize") == 0) { |
| 1316 doSerialize = false; | 1318 doSerialize = false; |
| 1317 } else if (strcmp(*argv, "--notexturecache") == 0) { | 1319 } else if (strcmp(*argv, "--notexturecache") == 0) { |
| 1320 #if SK_SUPPORT_GPU |
| 1318 disableTextureCache = true; | 1321 disableTextureCache = true; |
| 1322 #endif |
| 1319 } else if (strcmp(*argv, "--tiledPipe") == 0) { | 1323 } else if (strcmp(*argv, "--tiledPipe") == 0) { |
| 1320 doTiledPipe = true; | 1324 doTiledPipe = true; |
| 1321 } else if (!strcmp(*argv, "--verbose") || !strcmp(*argv, "-v")) { | 1325 } else if (!strcmp(*argv, "--verbose") || !strcmp(*argv, "-v")) { |
| 1322 doVerbose = true; | 1326 doVerbose = true; |
| 1323 } else if ((0 == strcmp(*argv, "--writePath")) || | 1327 } else if ((0 == strcmp(*argv, "--writePath")) || |
| 1324 (0 == strcmp(*argv, "-w"))) { | 1328 (0 == strcmp(*argv, "-w"))) { |
| 1325 argv++; | 1329 argv++; |
| 1326 if (argv < stop && **argv) { | 1330 if (argv < stop && **argv) { |
| 1327 writePath = *argv; | 1331 writePath = *argv; |
| 1328 } | 1332 } |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 SkGraphics::Term(); | 1709 SkGraphics::Term(); |
| 1706 | 1710 |
| 1707 return (0 == testsFailed) ? 0 : -1; | 1711 return (0 == testsFailed) ? 0 : -1; |
| 1708 } | 1712 } |
| 1709 | 1713 |
| 1710 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1714 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 1711 int main(int argc, char * const argv[]) { | 1715 int main(int argc, char * const argv[]) { |
| 1712 return tool_main(argc, (char**) argv); | 1716 return tool_main(argc, (char**) argv); |
| 1713 } | 1717 } |
| 1714 #endif | 1718 #endif |
| OLD | NEW |