Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index 8acfcc202ed5a7da8f9ddfd6fed54a209d799de7..a3e2898eaa4da4ebe216d7d92d0afe496114e618 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -578,8 +578,10 @@ DEF_TEST(Serialization, reporter) { |
normals.allocN32Pixels(kTexSize, kTexSize); |
sk_tool_utils::create_frustum_normal_map(&normals, SkIRect::MakeWH(kTexSize, kTexSize)); |
- sk_sp<SkShader> lightingShader = SkLightingShader::Make(diffuse, normals, fLights, |
- invNormRotation, &matrix, &matrix); |
+ sk_sp<SkLightingShader::NormalSource> normalSource = |
+ SkLightingShader::NormalMapSource::Make(normals, invNormRotation, &matrix); |
+ sk_sp<SkShader> lightingShader = SkLightingShader::Make(diffuse, fLights, &matrix, |
+ std::move(normalSource)); |
TestFlattenableSerialization(lightingShader.get(), true, reporter); |
// TODO test equality? |