From bba4cfebcabba3aca5c2452d7df1853258bd701c Mon Sep 17 00:00:00 2001 From: dvonbeck Date: Thu, 28 Jul 2016 08:58:19 -0700 Subject: Added API for Bevel NormalSource. This CL adds an API for Bevel normal source and a dummy implementation that returns a normal (0, 0, 1) every time. This CL's base is the CL for accepting nullptrs: https://codereview.chromium.org/2132113002 BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2080993002 Review-Url: https://codereview.chromium.org/2080993002 --- tests/SerializationTest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/SerializationTest.cpp') 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(TestFlattenableSerialization(lightingShader.get(), true, reporter)); } + + // Test NormalBevelSource serialization + { + sk_sp bevelSource = SkNormalSource::MakeBevel( + SkNormalSource::BevelType::kLinear, 2.0f, 5.0f); + + SkAutoTUnref(TestFlattenableSerialization(bevelSource.get(), true, + reporter)); + // TODO test equality? + + } } /////////////////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3