Index: tests/skpdf_opaquesrcmodetosrcover.cpp |
diff --git a/tests/skpdf_opaquesrcmodetosrcover.cpp b/tests/skpdf_opaquesrcmodetosrcover.cpp |
index f742f3ddd65bb7cb773a778c123939488e216433..8c7fc75162b83e69c23e627a7e530c9f207f9f9d 100644 |
--- a/tests/skpdf_opaquesrcmodetosrcover.cpp |
+++ b/tests/skpdf_opaquesrcmodetosrcover.cpp |
@@ -9,6 +9,8 @@ |
#include "SkStream.h" |
#include "Test.h" |
+#if SK_SUPPORT_PDF |
+ |
static void run_test(SkWStream* out, SkXfermode::Mode mode, U8CPU alpha) { |
SkAutoTUnref<SkDocument> pdfDoc(SkDocument::CreatePDF(out)); |
SkCanvas* c = pdfDoc->beginPage(612.0f, 792.0f); |
@@ -44,3 +46,4 @@ DEF_TEST(SkPDF_OpaqueSrcModeToSrcOver, r) { |
REPORTER_ASSERT(r, srcMode.getOffset() > srcOverMode.getOffset()); |
// The two PDFs should not be equal because they have a non-opaque alpha. |
} |
+#endif // SK_SUPPORT_PDF |