aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-11 10:30:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-11 10:30:12 -0700
commit8ee06f21a27bbffaf613a312c6f24bbbb21c650a (patch)
tree781cfcac8ec506a9fcb9cbddf943f5ff37eba355 /src/doc
parent4cf9e7e14797f87f08b2078fa1afaf731cbf8f52 (diff)
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
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/SkDocument_PDF_None.cpp9
1 files changed, 9 insertions, 0 deletions
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; }