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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 #endif // SK_SUPPORT_PDF | 1314 #endif // SK_SUPPORT_PDF |
1315 }; | 1315 }; |
1316 | 1316 |
1317 static const PDFRasterizerData kPDFRasterizers[] = { | 1317 static const PDFRasterizerData kPDFRasterizers[] = { |
1318 #ifdef SK_BUILD_FOR_MAC | 1318 #ifdef SK_BUILD_FOR_MAC |
1319 { &SkPDFDocumentToBitmap, "mac", true }, | 1319 { &SkPDFDocumentToBitmap, "mac", true }, |
1320 #endif | 1320 #endif |
1321 #ifdef SK_BUILD_POPPLER | 1321 #ifdef SK_BUILD_POPPLER |
1322 { &SkPopplerRasterizePDF, "poppler", true }, | 1322 { &SkPopplerRasterizePDF, "poppler", true }, |
1323 #endif | 1323 #endif |
| 1324 #ifdef SK_BUILD_NATIVE_PDF_RENDERER |
| 1325 { &SkNativeRasterizePDF, "native", true }, |
| 1326 #endif // SK_BUILD_NATIVE_PDF_RENDERER |
1324 }; | 1327 }; |
1325 | 1328 |
1326 static const char kDefaultsConfigStr[] = "defaults"; | 1329 static const char kDefaultsConfigStr[] = "defaults"; |
1327 static const char kExcludeConfigChar = '~'; | 1330 static const char kExcludeConfigChar = '~'; |
1328 | 1331 |
1329 static SkString configUsage() { | 1332 static SkString configUsage() { |
1330 SkString result; | 1333 SkString result; |
1331 result.appendf("Space delimited list of which configs to run. Possible optio
ns: ["); | 1334 result.appendf("Space delimited list of which configs to run. Possible optio
ns: ["); |
1332 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { | 1335 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { |
1333 SkASSERT(gRec[i].fName != kDefaultsConfigStr); | 1336 SkASSERT(gRec[i].fName != kDefaultsConfigStr); |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2375 if (FLAGS_forceBWtext) { | 2378 if (FLAGS_forceBWtext) { |
2376 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2379 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
2377 } | 2380 } |
2378 } | 2381 } |
2379 | 2382 |
2380 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2383 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
2381 int main(int argc, char * const argv[]) { | 2384 int main(int argc, char * const argv[]) { |
2382 return tool_main(argc, (char**) argv); | 2385 return tool_main(argc, (char**) argv); |
2383 } | 2386 } |
2384 #endif | 2387 #endif |
OLD | NEW |