Index: tests/CodecTest.cpp |
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp |
index bae8344bad631d5e6e4102ad561f2d911b455b03..4d18c618601a3dc7580f17dc9a0542d7cb68a5b2 100644 |
--- a/tests/CodecTest.cpp |
+++ b/tests/CodecTest.cpp |
@@ -10,6 +10,7 @@ |
#include "SkBitmap.h" |
#include "SkCodec.h" |
#include "SkCodecImageGenerator.h" |
+#include "SkColorSpace_Base.h" |
#include "SkData.h" |
#include "SkImageEncoder.h" |
#include "SkFrontBufferedStream.h" |
@@ -1191,7 +1192,7 @@ static void test_conversion_possible(skiatest::Reporter* r, const char* path, |
REPORTER_ASSERT(r, SkCodec::kUnimplemented == result); |
} |
- infoF16 = infoF16.makeColorSpace(infoF16.colorSpace()->makeLinearGamma()); |
+ infoF16 = infoF16.makeColorSpace(as_CSB(infoF16.colorSpace())->makeLinearGamma()); |
result = codec->getPixels(infoF16, bm.getPixels(), bm.rowBytes()); |
REPORTER_ASSERT(r, SkCodec::kSuccess == result); |
result = codec->startScanlineDecode(infoF16); |