Allow for no pdf rasterizers in gm.
Our poppler does not build properly with VS2013, but using gyp_skia -Dskia_enable_poppler_enabled=0 also does not build due to kPDFRasterizers being statically empty. This adds a do nothing, not run by default 'pdf rasterizer'. R=epoger@google.com Review URL: https://codereview.chromium.org/270263009 git-svn-id: http://skia.googlecode.com/svn/trunk@14676 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
5adad325c5
commit
5d20caea15
@ -1320,6 +1320,8 @@ static const ConfigData gRec[] = {
|
||||
#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 @@ static const PDFRasterizerData kPDFRasterizers[] = {
|
||||
#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";
|
||||
|
Loading…
Reference in New Issue
Block a user