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

Commit 2f70da2b authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am 6ed16a89: am 0b807d2e: Merge "Update the layer\'s alpha value upon composition of the layer"

* commit '6ed16a89':
  Update the layer's alpha value upon composition of the layer
parents a719f797 6ed16a89
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1076,7 +1076,13 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) {
        }
    } else if (!rect.isEmpty()) {
        dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);

        save(0);
        // the layer contains screen buffer content that shouldn't be alpha modulated
        // (and any necessary alpha modulation was handled drawing into the layer)
        mSnapshot->alpha = 1.0f;
        composeLayerRect(layer, rect, true);
        restore();
    }

    dirtyClip();