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

Side by Side Diff: gm/gmmain.cpp

Issue 635293003: Make GM default to reseting gpu contexts on android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update ignored-tests.txt Created 6 years, 2 months 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
« no previous file with comments | « expectations/gm/ignored-tests.txt ('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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #if SK_SUPPORT_GPU 1469
1470 #ifdef SK_BUILD_FOR_ANDROID
1471 DEFINE_bool(resetGpuContext, true, "Reset the GrContext prior to running each GM .");
1472 #else
1470 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G M."); 1473 DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each G M.");
1471 #endif 1474 #endif
1475
1472 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.") ; 1476 DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.") ;
1473 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ ation test pass."); 1477 DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserializ ation test pass.");
1474 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in pipe mode only."); 1478 DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in pipe mode only.");
1475 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); 1479 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay.");
1476 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture."); 1480 DEFINE_bool(tileGrid, false, "Exercise the tile grid variant of SkPicture.");
1477 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point scale " 1481 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point scale "
1478 "factors to be used for tileGrid playback testing. Default value: 1.0"); 1482 "factors to be used for tileGrid playback testing. Default value: 1.0");
1479 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i nfo about " 1483 DEFINE_bool2(verbose, v, false, "Give more detail (e.g. list all GMs run, more i nfo about "
1480 "each test)."); 1484 "each test).");
1481 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images, use checksum-" 1485 DEFINE_bool(writeChecksumBasedFilenames, false, "When writing out actual images, use checksum-"
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 if (FLAGS_forceBWtext) { 2483 if (FLAGS_forceBWtext) {
2480 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2484 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2481 } 2485 }
2482 } 2486 }
2483 2487
2484 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2488 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2485 int main(int argc, char * const argv[]) { 2489 int main(int argc, char * const argv[]) {
2486 return tool_main(argc, (char**) argv); 2490 return tool_main(argc, (char**) argv);
2487 } 2491 }
2488 #endif 2492 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698