Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 24d9506bd79ca2719440e3f0f16cd09fb833f0ca..6ecb1efec895ed15d245b3fd245390a2c3724b34 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -3135,8 +3135,8 @@ void SkCanvas::onDrawShadowedPicture(const SkPicture* picture, |
// povDepthMap |
{ |
SkLights::Builder builder; |
- builder.add(SkLights::Light(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
- SkVector3::Make(0.0f, 0.0f, 1.0f))); |
+ builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
+ SkVector3::Make(0.0f, 0.0f, 1.0f))); |
sk_sp<SkLights> povLight = builder.finish(); |
SkImageInfo info = SkImageInfo::Make(picture->cullRect().width(), |