| 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 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 DEFINE_bool(deferred, true, "Exercise the deferred rendering test pass."); | 1203 DEFINE_bool(deferred, true, "Exercise the deferred rendering test pass."); |
| 1204 DEFINE_string(excludeConfig, "", "Space delimited list of configs to skip."); | 1204 DEFINE_string(excludeConfig, "", "Space delimited list of configs to skip."); |
| 1205 DEFINE_bool(forceBWtext, false, "Disable text anti-aliasing."); | 1205 DEFINE_bool(forceBWtext, false, "Disable text anti-aliasing."); |
| 1206 #if SK_SUPPORT_GPU | 1206 #if SK_SUPPORT_GPU |
| 1207 DEFINE_string(gpuCacheSize, "", "<bytes> <count>: Limit the gpu cache to byte si
ze or " | 1207 DEFINE_string(gpuCacheSize, "", "<bytes> <count>: Limit the gpu cache to byte si
ze or " |
| 1208 "object count. " TOSTRING(DEFAULT_CACHE_VALUE) " for either value
means " | 1208 "object count. " TOSTRING(DEFAULT_CACHE_VALUE) " for either value
means " |
| 1209 "use the default. 0 for either disables the cache."); | 1209 "use the default. 0 for either disables the cache."); |
| 1210 #endif | 1210 #endif |
| 1211 DEFINE_bool(hierarchy, false, "Whether to use multilevel directory structure " | 1211 DEFINE_bool(hierarchy, false, "Whether to use multilevel directory structure " |
| 1212 "when reading/writing files."); | 1212 "when reading/writing files."); |
| 1213 // TODO(epoger): Maybe should make SkCommandLineFlags handle default string | |
| 1214 // values differently, so that the first definition of ignoreErrorTypes worked? | |
| 1215 #if 0 | |
| 1216 DEFINE_string(ignoreErrorTypes, kDefaultIgnorableErrorTypes.asString(" ").c_str(
), | 1213 DEFINE_string(ignoreErrorTypes, kDefaultIgnorableErrorTypes.asString(" ").c_str(
), |
| 1217 "Space-separated list of ErrorTypes that should be ignored. If any
*other* error " | 1214 "Space-separated list of ErrorTypes that should be ignored. If any
*other* error " |
| 1218 "types are encountered, the tool will exit with a nonzero return v
alue."); | 1215 "types are encountered, the tool will exit with a nonzero return v
alue."); |
| 1219 #else | |
| 1220 DEFINE_string(ignoreErrorTypes, "", SkString(SkString( | |
| 1221 "Space-separated list of ErrorTypes that should be ignored. If any
*other* error " | |
| 1222 "types are encountered, the tool will exit with a nonzero return v
alue. " | |
| 1223 "Defaults to: ") += kDefaultIgnorableErrorTypes.asString(" ")).c_s
tr()); | |
| 1224 #endif | |
| 1225 DEFINE_string(match, "", "Only run tests whose name includes this substring/the
se substrings " | 1216 DEFINE_string(match, "", "Only run tests whose name includes this substring/the
se substrings " |
| 1226 "(more than one can be supplied, separated by spaces)."); | 1217 "(more than one can be supplied, separated by spaces)."); |
| 1227 DEFINE_string(mismatchPath, "", "Write images for tests that failed due to " | 1218 DEFINE_string(mismatchPath, "", "Write images for tests that failed due to " |
| 1228 "pixel mismatches into this directory."); | 1219 "pixel mismatches into this directory."); |
| 1229 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for
which " | 1220 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for
which " |
| 1230 "testIndex %% divisor == remainder."); | 1221 "testIndex %% divisor == remainder."); |
| 1231 DEFINE_bool(pdf, true, "Exercise the pdf rendering test pass."); | 1222 DEFINE_bool(pdf, true, "Exercise the pdf rendering test pass."); |
| 1232 DEFINE_bool(pipe, true, "Exercise the SkGPipe replay test pass."); | 1223 DEFINE_bool(pipe, true, "Exercise the SkGPipe replay test pass."); |
| 1233 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report
" | 1224 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report
" |
| 1234 "any differences between those and the newly generated ones."); | 1225 "any differences between those and the newly generated ones."); |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 if (FLAGS_forceBWtext) { | 1902 if (FLAGS_forceBWtext) { |
| 1912 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 1903 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 1913 } | 1904 } |
| 1914 } | 1905 } |
| 1915 | 1906 |
| 1916 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1907 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 1917 int main(int argc, char * const argv[]) { | 1908 int main(int argc, char * const argv[]) { |
| 1918 return tool_main(argc, (char**) argv); | 1909 return tool_main(argc, (char**) argv); |
| 1919 } | 1910 } |
| 1920 #endif | 1911 #endif |
| OLD | NEW |