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 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 DEFINE_string2(resourcePath, i, "", "Directory that stores image resources."); | 1061 DEFINE_string2(resourcePath, i, "", "Directory that stores image resources."); |
1062 DEFINE_bool(rtree, true, "Exercise the R-Tree variant of SkPicture test pass."); | 1062 DEFINE_bool(rtree, true, "Exercise the R-Tree variant of SkPicture test pass."); |
1063 DEFINE_bool(serialize, true, "Exercise the SkPicture serialization & deserializa
tion test pass."); | 1063 DEFINE_bool(serialize, true, "Exercise the SkPicture serialization & deserializa
tion test pass."); |
1064 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); | 1064 DEFINE_bool(tiledPipe, false, "Exercise tiled SkGPipe replay."); |
1065 DEFINE_bool(tileGrid, true, "Exercise the tile grid variant of SkPicture."); | 1065 DEFINE_bool(tileGrid, true, "Exercise the tile grid variant of SkPicture."); |
1066 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point
scale " | 1066 DEFINE_string(tileGridReplayScales, "", "Space separated list of floating-point
scale " |
1067 "factors to be used for tileGrid playback testing. Default value:
1.0"); | 1067 "factors to be used for tileGrid playback testing. Default value:
1.0"); |
1068 DEFINE_string(writeJsonSummaryPath, "", "Write a JSON-formatted result summary t
o this file."); | 1068 DEFINE_string(writeJsonSummaryPath, "", "Write a JSON-formatted result summary t
o this file."); |
1069 DEFINE_bool2(verbose, v, false, "Print diagnostics (e.g. list each config to be
tested)."); | 1069 DEFINE_bool2(verbose, v, false, "Print diagnostics (e.g. list each config to be
tested)."); |
1070 DEFINE_string2(writePath, w, "", "Write rendered images into this directory."); | 1070 DEFINE_string2(writePath, w, "", "Write rendered images into this directory."); |
1071 DEFINE_string2(writePicturePath, wp, "", "Write .skp files into this directory."
); | 1071 DEFINE_string2(writePicturePath, p, "", "Write .skp files into this directory.")
; |
1072 | 1072 |
1073 static int findConfig(const char config[]) { | 1073 static int findConfig(const char config[]) { |
1074 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { | 1074 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { |
1075 if (!strcmp(config, gRec[i].fName)) { | 1075 if (!strcmp(config, gRec[i].fName)) { |
1076 return (int) i; | 1076 return (int) i; |
1077 } | 1077 } |
1078 } | 1078 } |
1079 return -1; | 1079 return -1; |
1080 } | 1080 } |
1081 | 1081 |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 if (FLAGS_forceBWtext) { | 1661 if (FLAGS_forceBWtext) { |
1662 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 1662 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
1663 } | 1663 } |
1664 } | 1664 } |
1665 | 1665 |
1666 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1666 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
1667 int main(int argc, char * const argv[]) { | 1667 int main(int argc, char * const argv[]) { |
1668 return tool_main(argc, (char**) argv); | 1668 return tool_main(argc, (char**) argv); |
1669 } | 1669 } |
1670 #endif | 1670 #endif |
OLD | NEW |