Index: gm/lightingshader2.cpp |
diff --git a/gm/lightingshader2.cpp b/gm/lightingshader2.cpp |
index 5afe2558b906b9594698699677772b33f9631bfb..886c647ff76bba07ad87542ed5dc1f7f2e902093 100644 |
--- a/gm/lightingshader2.cpp |
+++ b/gm/lightingshader2.cpp |
@@ -47,12 +47,12 @@ protected: |
SkLights::Builder builder; |
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))); |
+ builder.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); |
fLights = builder.finish(); |
// No directional lights |
SkLights::Builder builderNoDir; |
- builderNoDir.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
+ builderNoDir.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); |
fLightsNoDir = builderNoDir.finish(); |
// Two directional lights |
@@ -61,7 +61,7 @@ protected: |
kLightFromUpperRight)); |
builderTwoDir.add(SkLights::Light::MakeDirectional(SkColor3f::Make(0.0f, 1.0f, 1.0f), |
kLightFromUpperLeft)); |
- builderTwoDir.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
+ builderTwoDir.setAmbientLightColor(SkColor3f::Make(0.2f, 0.2f, 0.2f)); |
fLightsTwoDir = builderTwoDir.finish(); |
fRect = SkRect::MakeIWH(kTexSize, kTexSize); |