Index: tests/YUVTest.cpp |
diff --git a/tests/YUVTest.cpp b/tests/YUVTest.cpp |
index 09b6f2a7ef6497a98f884c3cbdc267ac42849e8d..bb34a8dc88c5ae43798edb453a06d39a87d539ae 100644 |
--- a/tests/YUVTest.cpp |
+++ b/tests/YUVTest.cpp |
@@ -11,6 +11,8 @@ |
#include "SkTemplates.h" |
#include "Test.h" |
+#ifdef SK_CODEC_DECODES_JPEG |
+ |
static SkStreamAsset* resource(const char path[]) { |
SkString fullPath = GetResourcePath(path); |
return SkStream::NewFromFile(fullPath.c_str()); |
@@ -119,3 +121,5 @@ DEF_TEST(Jpeg_YUV_Codec, r) { |
// A PNG should fail. |
codec_yuv(r, "arrow.png", nullptr); |
} |
+ |
+#endif |