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

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

Merge "Fix build for non-HWC2 targets"

parents 0ffba8d3 cd939aa6
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -174,18 +174,17 @@ status_t FramebufferSurface::nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>&
#ifdef USE_HWC2
    mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer,
            &outSlot, &outBuffer);
    outDataspace = item.mDataSpace;
#else
    outBuffer = mCurrentBuffer;
#endif
    status_t result =
            mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
    if (result != NO_ERROR) {
        ALOGE("error posting framebuffer: %d", result);
    }

        return result;
    }
#else
    outBuffer = mCurrentBuffer;
#endif
    return NO_ERROR;
}

#ifndef USE_HWC2
// Overrides ConsumerBase::onFrameAvailable(), does not call base class impl.