Index: gm/lightingshaderbevel.cpp |
diff --git a/gm/lightingshaderbevel.cpp b/gm/lightingshaderbevel.cpp |
index dfc46e44717b784b8843d770d7be1354be0d0cb5..9107cc6c949e65b52f705cf41e6e1b909bc9dfea 100644 |
--- a/gm/lightingshaderbevel.cpp |
+++ b/gm/lightingshaderbevel.cpp |
@@ -36,9 +36,9 @@ protected: |
SkLights::Builder builder; |
const SkVector3 kLightFromUpperRight = SkVector3::Make(0.788f, 0.394f, 0.473f); |
- builder.add(SkLights::Light(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
- kLightFromUpperRight)); |
- 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), |
+ kLightFromUpperRight)); |
+ builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
fLights = builder.finish(); |
// fRect is assumed to be square throughout this file |