aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFJpegEmbedTest.cpp
diff options
context:
space:
mode:
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