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

Commit fe5966b0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: Layer children should call parents' onFirstRef"

parents 84a727e3 7b1b5a84
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -424,6 +424,8 @@ void BufferQueueLayer::onSidebandStreamChanged() {
// -----------------------------------------------------------------------

void BufferQueueLayer::onFirstRef() {
    BufferLayer::onFirstRef();

    // Creates a custom BufferQueue for SurfaceFlingerConsumer to use
    sp<IGraphicBufferProducer> producer;
    sp<IGraphicBufferConsumer> consumer;
+2 −0
Original line number Diff line number Diff line
@@ -537,6 +537,8 @@ void BufferStateLayer::setHwcLayerBuffer(const sp<const DisplayDevice>& display)
}

void BufferStateLayer::onFirstRef() {
    BufferLayer::onFirstRef();

    if (const auto display = mFlinger->getDefaultDisplayDevice()) {
        updateTransformHint(display);
    }