Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1357)

Unified Diff: src/utils/android/SkHwuiRenderer.cpp

Issue 1134403003: Set OpenGLRenderer light center separately from initial setup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698