| 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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1249 |
| 1250 static int findConfig(const char config[]) { | 1250 static int findConfig(const char config[]) { |
| 1251 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { | 1251 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) { |
| 1252 if (!strcmp(config, gRec[i].fName)) { | 1252 if (!strcmp(config, gRec[i].fName)) { |
| 1253 return (int) i; | 1253 return (int) i; |
| 1254 } | 1254 } |
| 1255 } | 1255 } |
| 1256 return -1; | 1256 return -1; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 static bool skip_name(const SkTDArray<const char*> array, const char name[]) { | 1259 static bool skip_name(SkCommandLineFlags::StringArray array, const char name[])
{ |
| 1260 if (0 == array.count()) { | 1260 if (0 == array.count()) { |
| 1261 // no names, so don't skip anything | 1261 // no names, so don't skip anything |
| 1262 return false; | 1262 return false; |
| 1263 } | 1263 } |
| 1264 for (int i = 0; i < array.count(); ++i) { | 1264 for (int i = 0; i < array.count(); ++i) { |
| 1265 if (strstr(name, array[i])) { | 1265 if (strstr(name, array[i])) { |
| 1266 // found the name, so don't skip | 1266 // found the name, so don't skip |
| 1267 return false; | 1267 return false; |
| 1268 } | 1268 } |
| 1269 } | 1269 } |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 if (FLAGS_forceBWtext) { | 1911 if (FLAGS_forceBWtext) { |
| 1912 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 1912 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 1913 } | 1913 } |
| 1914 } | 1914 } |
| 1915 | 1915 |
| 1916 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 1916 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 1917 int main(int argc, char * const argv[]) { | 1917 int main(int argc, char * const argv[]) { |
| 1918 return tool_main(argc, (char**) argv); | 1918 return tool_main(argc, (char**) argv); |
| 1919 } | 1919 } |
| 1920 #endif | 1920 #endif |
| OLD | NEW |