aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFJpegEmbedTest.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/PDFJpegEmbedTest.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/PDFJpegEmbedTest.cpp')
-rw-r--r--tests/PDFJpegEmbedTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/PDFJpegEmbedTest.cpp b/tests/PDFJpegEmbedTest.cpp
index cfe6776bf5..021161bf9f 100644
--- a/tests/PDFJpegEmbedTest.cpp
+++ b/tests/PDFJpegEmbedTest.cpp
@@ -14,6 +14,8 @@
#include "Resources.h"
#include "Test.h"
+#if SK_SUPPORT_PDF
+
// Returned bitmap is lazy. Only lazy bitmaps hold onto the original data.
static SkBitmap bitmap_from_data(SkData* data) {
SkASSERT(data);
@@ -125,3 +127,4 @@ DEF_TEST(JpegIdentification, r) {
}
}
}
+#endif // SK_SUPPORT_PDF