Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: gm/gmmain.cpp

Issue 120873002: Add default resource path for skia test cases in gm and bench tools. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « bench/benchmain.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 "pixel mismatches into this directory."); 1437 "pixel mismatches into this directory.");
1438 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for which " 1438 DEFINE_string(modulo, "", "[--modulo <remainder> <divisor>]: only run tests for which "
1439 "testIndex %% divisor == remainder."); 1439 "testIndex %% divisor == remainder.");
1440 DEFINE_bool(pipe, false, "Exercise the SkGPipe replay test pass."); 1440 DEFINE_bool(pipe, false, "Exercise the SkGPipe replay test pass.");
1441 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report " 1441 DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report "
1442 "any differences between those and the newly generated ones."); 1442 "any differences between those and the newly generated ones.");
1443 DEFINE_bool(replay, false, "Exercise the SkPicture replay test pass."); 1443 DEFINE_bool(replay, false, "Exercise the SkPicture replay test pass.");
1444 #if SK_SUPPORT_GPU 1444 #if SK_SUPPORT_GPU
1445 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G M."); 1445 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G M.");
1446 #endif 1446 #endif
1447 DEFINE_string2(resourcePath, i, "", "Directory that stores image resources."); 1447 DEFINE_string2(resourcePath, i, "resources", "Directory that stores image resour ces.");
1448 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.") ; 1448 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.") ;
1449 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ ation test pass."); 1449 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ ation test pass.");
1450 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in pipe mode only."); 1450 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in pipe mode only.");
1451 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); 1451 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay.");
1452 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture."); 1452 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture.");
1453 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point scale " 1453 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point scale "
1454 "factors to be used for tileGrid playback testing. Default value: 1.0"); 1454 "factors to be used for tileGrid playback testing. Default value: 1.0");
1455 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i nfo about " 1455 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i nfo about "
1456 "each test)."); 1456 "each test).");
1457 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images, use checksum-" 1457 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images, use checksum-"
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
2376 if (FLAGS_forceBWtext) { 2376 if (FLAGS_forceBWtext) {
2377 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2377 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2378 } 2378 }
2379 } 2379 }
2380 2380
2381 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2381 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2382 int main(int argc, char * const argv[]) { 2382 int main(int argc, char * const argv[]) {
2383 return tool_main(argc, (char**) argv); 2383 return tool_main(argc, (char**) argv);
2384 } 2384 }
2385 #endif 2385 #endif
OLDNEW
« no previous file with comments | « bench/benchmain.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698