aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SerializationTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SerializationTest.cpp')
-rw-r--r--tests/SerializationTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
index f806c4a5cc..a6be1889a5 100644
--- a/tests/SerializationTest.cpp
+++ b/tests/SerializationTest.cpp
@@ -608,6 +608,17 @@ DEF_TEST(Serialization, reporter) {
fLights);
SkAutoTUnref<SkShader>(TestFlattenableSerialization(lightingShader.get(), true, reporter));
}
+
+ // Test NormalBevelSource serialization
+ {
+ sk_sp<SkNormalSource> bevelSource = SkNormalSource::MakeBevel(
+ SkNormalSource::BevelType::kLinear, 2.0f, 5.0f);
+
+ SkAutoTUnref<SkNormalSource>(TestFlattenableSerialization(bevelSource.get(), true,
+ reporter));
+ // TODO test equality?
+
+ }
}
///////////////////////////////////////////////////////////////////////////////////////////////////