Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ccc1b83 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8404404 from f0f218dd to sc-qpr3-release

Change-Id: Ic3c1a5cb086cbdabf266f4a03c5e0ca02509ec4f
parents 21091362 f0f218dd
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -74,7 +74,15 @@ bool SkiaVulkanPipeline::draw(const Frame& frame, const SkRect& screenDirty, con
    if (backBuffer.get() == nullptr) {
        return false;
    }
    LightingInfo::updateLighting(lightGeometry, lightInfo);

    // update the coordinates of the global light position based on surface rotation
    SkPoint lightCenter = mVkSurface->getCurrentPreTransform().mapXY(lightGeometry.center.x,
                                                                     lightGeometry.center.y);
    LightGeometry localGeometry = lightGeometry;
    localGeometry.center.x = lightCenter.fX;
    localGeometry.center.y = lightCenter.fY;

    LightingInfo::updateLighting(localGeometry, lightInfo);
    renderFrame(*layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, backBuffer,
                mVkSurface->getCurrentPreTransform());