Index: tests/YUVTest.cpp |
diff --git a/tests/YUVTest.cpp b/tests/YUVTest.cpp |
index d3b916784372fdeab18d8883fbd82d0d9edf5ad7..f7b3306b98fa935b02b5cda64c1caf6506c3d442 100644 |
--- a/tests/YUVTest.cpp |
+++ b/tests/YUVTest.cpp |
@@ -12,11 +12,17 @@ |
#include "SkYUVSizeInfo.h" |
#include "Test.h" |
+static SkStreamAsset* resource(const char path[]) { |
+ SkString fullPath = GetResourcePath(path); |
+ return SkStream::NewFromFile(fullPath.c_str()); |
+} |
+ |
static void codec_yuv(skiatest::Reporter* reporter, |
const char path[], |
SkISize expectedSizes[3]) { |
- SkAutoTDelete<SkStream> stream(GetResourceAsStream(path)); |
+ SkAutoTDelete<SkStream> stream(resource(path)); |
if (!stream) { |
+ INFOF(reporter, "Missing resource '%s'\n", path); |
return; |
} |
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release())); |