aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFPrimitivesTest.cpp
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 /tests/PDFPrimitivesTest.cpp
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 'tests/PDFPrimitivesTest.cpp')
-rw-r--r--tests/PDFPrimitivesTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp
index 013d58657b..22d8d16328 100644
--- a/tests/PDFPrimitivesTest.cpp
+++ b/tests/PDFPrimitivesTest.cpp
@@ -22,6 +22,8 @@
#include "SkTypes.h"
#include "Test.h"
+#if SK_SUPPORT_PDF
+
#define DUMMY_TEXT "DCT compessed stream."
namespace {
@@ -413,3 +415,4 @@ DEF_TEST(PDFImageFilter, reporter) {
// Filter was used in rendering; should be visited.
REPORTER_ASSERT(reporter, filter->visited());
}
+#endif // SK_SUPPORT_PDF