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

Commit 3316452f authored by Dan Stoza's avatar Dan Stoza
Browse files

ImageWriter: Change detach to sp<GraphicBuffer>

Changes the call to IGBP::detachNextBuffer to return an
sp<GraphicBuffer> instead of an ANativeWindowBuffer*.

Bug: 20092217
Change-Id: I59d6acef7120de5040c6710aeecfa1633ec7f736
parent 1f0943dd
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);
        }