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

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

Merge "Surface: Allow nullable IGBPs when unparceling a Surface"

parents 95c48ed4 7407963c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1393,14 +1393,18 @@ status_t Surface::readFromParcel(const Parcel* parcel, bool nameAlreadyRead) {
        int isSingleBuffered;
        res = parcel->readInt32(&isSingleBuffered);
        if (res != OK) {
            ALOGE("Can't read isSingleBuffered");
            return res;
        }
    }

    sp<IBinder> binder;

    res = parcel->readStrongBinder(&binder);
    if (res != OK) return res;
    res = parcel->readNullableStrongBinder(&binder);
    if (res != OK) {
        ALOGE("%s: Can't read strong binder", __FUNCTION__);
        return res;
    }

    graphicBufferProducer = interface_cast<IGraphicBufferProducer>(binder);