Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index 1e96eefd54c007ee4da5761b63cc9b5198bd0591..88f88fc2ac5bb524950ceb3677195d2bd663df8f 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -585,8 +585,11 @@ DEF_TEST(Serialization, reporter) { |
SkShader::kClamp_TileMode, &matrix, nullptr); |
sk_sp<SkNormalSource> normalSource = SkNormalSource::MakeFromNormalMap(std::move(normalMap), |
ctm); |
- sk_sp<SkShader> lightingShader = SkLightingShader::Make(diffuse, fLights, &matrix, |
- std::move(normalSource)); |
+ sk_sp<SkShader> diffuseShader = SkMakeBitmapShader(diffuse, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode, &matrix, nullptr); |
+ sk_sp<SkShader> lightingShader = SkLightingShader::Make(std::move(diffuseShader), |
+ std::move(normalSource), |
+ fLights); |
SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter)); |
// TODO test equality? |