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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1323 static const PDFRasterizerData kPDFRasterizers[] = { | 1323 static const PDFRasterizerData kPDFRasterizers[] = { |
1324 #ifdef SK_BUILD_FOR_MAC | 1324 #ifdef SK_BUILD_FOR_MAC |
1325 { &SkPDFDocumentToBitmap, "mac", true }, | 1325 { &SkPDFDocumentToBitmap, "mac", true }, |
1326 #endif | 1326 #endif |
1327 #ifdef SK_BUILD_POPPLER | 1327 #ifdef SK_BUILD_POPPLER |
1328 { &SkPopplerRasterizePDF, "poppler", true }, | 1328 { &SkPopplerRasterizePDF, "poppler", true }, |
1329 #endif | 1329 #endif |
1330 #ifdef SK_BUILD_NATIVE_PDF_RENDERER | 1330 #ifdef SK_BUILD_NATIVE_PDF_RENDERER |
1331 { &SkNativeRasterizePDF, "native", true }, | 1331 { &SkNativeRasterizePDF, "native", true }, |
1332 #endif // SK_BUILD_NATIVE_PDF_RENDERER | 1332 #endif // SK_BUILD_NATIVE_PDF_RENDERER |
1333 // The following exists so that this array is never zero length. | |
epoger
2014/05/09 14:35:30
I take it you investigated making the code properl
bungeman-skia
2014/05/09 14:56:15
Well, it's technically against the c++ specificati
epoger
2014/05/09 15:15:36
Wow, "The More You Know". Thanks; I'm a little sh
| |
1334 { &SkNoRasterizePDF, "none", false}, | |
1333 }; | 1335 }; |
1334 | 1336 |
1335 static const char kDefaultsConfigStr[] = "defaults"; | 1337 static const char kDefaultsConfigStr[] = "defaults"; |
1336 static const char kExcludeConfigChar = '~'; | 1338 static const char kExcludeConfigChar = '~'; |
1337 | 1339 |
1338 static SkString configUsage() { | 1340 static SkString configUsage() { |
1339 SkString result; | 1341 SkString result; |
1340 result.appendf("Space delimited list of which configs to run. Possible optio ns: ["); | 1342 result.appendf("Space delimited list of which configs to run. Possible optio ns: ["); |
1341 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { | 1343 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { |
1342 SkASSERT(gRec[i].fName != kDefaultsConfigStr); | 1344 SkASSERT(gRec[i].fName != kDefaultsConfigStr); |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2455 if (FLAGS_forceBWtext) { | 2457 if (FLAGS_forceBWtext) { |
2456 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2458 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
2457 } | 2459 } |
2458 } | 2460 } |
2459 | 2461 |
2460 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2462 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
2461 int main(int argc, char * const argv[]) { | 2463 int main(int argc, char * const argv[]) { |
2462 return tool_main(argc, (char**) argv); | 2464 return tool_main(argc, (char**) argv); |
2463 } | 2465 } |
2464 #endif | 2466 #endif |
OLD | NEW |