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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 DEFINE_string(missingExpectationsPath, "", "Write images for tests without expec
tations " | 1459 DEFINE_string(missingExpectationsPath, "", "Write images for tests without expec
tations " |
1460 "into this directory."); | 1460 "into this directory."); |
1461 DEFINE_string(mismatchPath, "", "Write images for tests that failed due to " | 1461 DEFINE_string(mismatchPath, "", "Write images for tests that failed due to " |
1462 "pixel mismatches into this directory."); | 1462 "pixel mismatches into this directory."); |
1463 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for
which " | 1463 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for
which " |
1464 "testIndex %% divisor == remainder."); | 1464 "testIndex %% divisor == remainder."); |
1465 DEFINE_bool(pipe, false, "Exercise the SkGPipe replay test pass."); | 1465 DEFINE_bool(pipe, false, "Exercise the SkGPipe replay test pass."); |
1466 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report
" | 1466 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report
" |
1467 "any differences between those and the newly generated ones."); | 1467 "any differences between those and the newly generated ones."); |
1468 DEFINE_bool(replay, false, "Exercise the SkPicture replay test pass."); | 1468 DEFINE_bool(replay, false, "Exercise the SkPicture replay test pass."); |
1469 | 1469 #if SK_SUPPORT_GPU |
1470 #ifdef SK_BUILD_FOR_ANDROID | |
1471 DEFINE_bool(resetGpuContext, true, "Reset the GrContext prior to running each GM
."); | |
1472 #else | |
1473 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G
M."); | 1470 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G
M."); |
1474 #endif | 1471 #endif |
1475 | |
1476 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.")
; | 1472 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.")
; |
1477 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ
ation test pass."); | 1473 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ
ation test pass."); |
1478 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in
pipe mode only."); | 1474 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in
pipe mode only."); |
1479 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); | 1475 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); |
1480 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture."); | 1476 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture."); |
1481 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point
scale " | 1477 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point
scale " |
1482 "factors to be used for tileGrid playback testing. Default value:
1.0"); | 1478 "factors to be used for tileGrid playback testing. Default value:
1.0"); |
1483 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i
nfo about " | 1479 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i
nfo about " |
1484 "each test)."); | 1480 "each test)."); |
1485 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images,
use checksum-" | 1481 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images,
use checksum-" |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 if (FLAGS_forceBWtext) { | 2479 if (FLAGS_forceBWtext) { |
2484 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2480 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
2485 } | 2481 } |
2486 } | 2482 } |
2487 | 2483 |
2488 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2484 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
2489 int main(int argc, char * const argv[]) { | 2485 int main(int argc, char * const argv[]) { |
2490 return tool_main(argc, (char**) argv); | 2486 return tool_main(argc, (char**) argv); |
2491 } | 2487 } |
2492 #endif | 2488 #endif |
OLD | NEW |