Index: src/utils/android/SkHwuiRenderer.cpp |
diff --git a/src/utils/android/SkHwuiRenderer.cpp b/src/utils/android/SkHwuiRenderer.cpp |
index 17a830e976a25961fe091238c0384b2727f5316b..70b7e5b89342d7b0f51df7f3bfe55f01572e14db 100644 |
--- a/src/utils/android/SkHwuiRenderer.cpp |
+++ b/src/utils/android/SkHwuiRenderer.cpp |
@@ -54,8 +54,9 @@ void SkHwuiRenderer::initialize(SkISize size) { |
this->proxy->initialize(this->androidSurface.get()); |
float lightX = size.width() / 2.0f; |
android::uirenderer::Vector3 lightVector { lightX, -200.0f, 800.0f }; |
- this->proxy->setup(size.width(), size.height(), lightVector, 800.0f, |
+ this->proxy->setup(size.width(), size.height(), 800.0f, |
255 * 0.075f, 255 * 0.15f); |
+ this->proxy->setLightCenter(lightVector); |
this->canvas.reset(new android::uirenderer::DisplayListCanvas()); |
this->canvas->setViewport(size.width(), size.height()); |
} |