Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index 88f88fc2ac5bb524950ceb3677195d2bd663df8f..f806c4a5ccc4653eee16b66560cb3e8ef12258d1 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -587,13 +587,26 @@ DEF_TEST(Serialization, reporter) { |
ctm); |
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), |
+ |
+ sk_sp<SkShader> lightingShader = SkLightingShader::Make(diffuseShader, |
+ normalSource, |
fLights); |
+ SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter)); |
+ lightingShader = SkLightingShader::Make(std::move(diffuseShader), |
+ nullptr, |
+ fLights); |
SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter)); |
- // TODO test equality? |
+ lightingShader = SkLightingShader::Make(nullptr, |
+ std::move(normalSource), |
+ fLights); |
+ SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter)); |
+ |
+ lightingShader = SkLightingShader::Make(nullptr, |
+ nullptr, |
+ fLights); |
+ SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter)); |
} |
} |