diff options
author | vjiaoblack <vjiaoblack@google.com> | 2016-08-12 11:38:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-12 11:38:47 -0700 |
commit | 772b5ee446d7545eec4ca7d6dc9d75461e2a9c38 (patch) | |
tree | 1470d1bb00cbf863ccee98a328799eb84dd31856 /tests/SerializationTest.cpp | |
parent | e1a3bc67690886dbc72271f447dec073363fe84c (diff) |
Added PointLights to SkLights::Light
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2237493002
Review-Url: https://codereview.chromium.org/2237493002
Diffstat (limited to 'tests/SerializationTest.cpp')
-rw-r--r-- | tests/SerializationTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp index 86591b5d28..11a705f8ce 100644 --- a/tests/SerializationTest.cpp +++ b/tests/SerializationTest.cpp @@ -556,9 +556,9 @@ DEF_TEST(Serialization, reporter) { SkLights::Builder builder; - builder.add(SkLights::Light(SkColor3f::Make(1.0f, 1.0f, 1.0f), - SkVector3::Make(1.0f, 0.0f, 0.0f))); - builder.add(SkLights::Light(SkColor3f::Make(0.2f, 0.2f, 0.2f))); + builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), + SkVector3::Make(1.0f, 0.0f, 0.0f))); + builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); sk_sp<SkLights> fLights = builder.finish(); |