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

Side by Side Diff: gm/gmmain.cpp

Issue 26269002: Initial draft code to run pdfviewer withg gms (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use a variable instead of commenting the dsefine, so we can enable it on a buildbot Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | 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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698