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

Unified Diff: gm/gmmain.cpp

Issue 270263009: Allow for no pdf rasterizers in gm. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gmmain.cpp
===================================================================
--- gm/gmmain.cpp (revision 14665)
+++ gm/gmmain.cpp (working copy)
@@ -1320,6 +1320,8 @@
#endif // SK_SUPPORT_PDF
};
+static bool SkNoRasterizePDF(SkStream*, SkBitmap*) { return false; }
+
static const PDFRasterizerData kPDFRasterizers[] = {
#ifdef SK_BUILD_FOR_MAC
{ &SkPDFDocumentToBitmap, "mac", true },
@@ -1330,6 +1332,8 @@
#ifdef SK_BUILD_NATIVE_PDF_RENDERER
{ &SkNativeRasterizePDF, "native", true },
#endif // SK_BUILD_NATIVE_PDF_RENDERER
+ // The following exists so that this array is never zero length.
+ { &SkNoRasterizePDF, "none", false},
};
static const char kDefaultsConfigStr[] = "defaults";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698