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

Commit e54fbaa2 authored by Dan Stoza's avatar Dan Stoza Committed by Android (Google) Code Review
Browse files

Merge "ImageWriter: Change detach to sp<GraphicBuffer>" into mnc-dev

parents 580c30a6 3316452f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ void JNIImageWriterContext::onBufferReleased() {
        // Writer. Do the detach unconditionally for opaque format now. see b/19977520
        if (mFormat == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
            sp<Fence> fence;
            ANativeWindowBuffer* buffer;
            sp<GraphicBuffer> buffer;
            ALOGV("%s: One buffer is detached", __FUNCTION__);
            mProducer->detachNextBuffer(&buffer, &fence);
        }