Set OpenGLRenderer light center separately from initial setup
Cherry-pick from Android. Fixes master-skia build. BUG=b/16523629 Review URL: https://codereview.chromium.org/1134403003
This commit is contained in:
parent
5df6fee929
commit
d8b544cd04
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user