diff options
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
| -rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 6d7dcf1..8329cd4 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -127,10 +127,15 @@ bool CanvasContext::pauseSurface(ANativeWindow* window) { } // TODO: don't pass viewport size, it's automatic via EGL -void CanvasContext::setup(int width, int height, const Vector3& lightCenter, float lightRadius, +void CanvasContext::setup(int width, int height, float lightRadius, uint8_t ambientShadowAlpha, uint8_t spotShadowAlpha) { if (!mCanvas) return; - mCanvas->initLight(lightCenter, lightRadius, ambientShadowAlpha, spotShadowAlpha); + mCanvas->initLight(lightRadius, ambientShadowAlpha, spotShadowAlpha); +} + +void CanvasContext::setLightCenter(const Vector3& lightCenter) { + if (!mCanvas) return; + mCanvas->setLightCenter(lightCenter); } void CanvasContext::setOpaque(bool opaque) { |
