From 8ee06f21a27bbffaf613a312c6f24bbbb21c650a Mon Sep 17 00:00:00 2001 From: halcanary Date: Tue, 11 Aug 2015 10:30:12 -0700 Subject: SkPDF: allow PDF module to be disabled in DM and SampleApp To disable PDF: GYP_DEFINES='skia_pdf=0' bin/sync-and-gyp ninja -C out/Debug dm SampleApp When disabled, SkDocument::CreatePDF() always returns NULL. Review URL: https://codereview.chromium.org/1279123007 --- src/doc/SkDocument_PDF_None.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/doc/SkDocument_PDF_None.cpp (limited to 'src/doc') diff --git a/src/doc/SkDocument_PDF_None.cpp b/src/doc/SkDocument_PDF_None.cpp new file mode 100644 index 0000000000..4759acf2a0 --- /dev/null +++ b/src/doc/SkDocument_PDF_None.cpp @@ -0,0 +1,9 @@ +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#include "SkDocument.h" +SkDocument* SkDocument::CreatePDF(SkWStream*, SkScalar) { return NULL; } +SkDocument* SkDocument::CreatePDF(const char path[], SkScalar) { return NULL; } -- cgit v1.2.3