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

Commit 38465a14 authored by Carlos Martinez Romero's avatar Carlos Martinez Romero Committed by Android (Google) Code Review
Browse files

Merge "Use the new Surface API instead of IGBP." into main

parents 5bb39870 88c39329
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -732,7 +732,11 @@ status_t Camera3OutputStream::configureConsumerQueueLocked(bool allowPreviewResp
        if (res == OK) {
            // Disable buffer allocation for this BufferQueue, buffer manager will take over
            // the buffer allocation responsibility.
#if COM_ANDROID_GRAPHICS_LIBGUI_FLAGS(WB_PLATFORM_API_IMPROVEMENTS)
            mConsumer->allowAllocation(false);
#else
            mConsumer->getIGraphicBufferProducer()->allowAllocation(false);
#endif
            mUseBufferManager = true;
        } else {
            ALOGE("%s: Unable to register stream %d to camera3 buffer manager, "