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

Commit ccdf3e2f authored by Pablo Ceballos's avatar Pablo Ceballos
Browse files

camera2: Add parcel/unparcel for missing Surface field.

Read/write the newly added isSingleBuffered int in CaptureRequest.

Bug 31162160

Change-Id: I1801079648771579917d73695d0c060f875c1d2e
parent 790a227c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ status_t CaptureRequest::readFromParcel(const Parcel* parcel) {
        const char16_t* name = parcel->readString16Inplace(&len);
        ALOGV("%s: Read surface name = %s", __FUNCTION__,
            name != NULL ? String8(name).string() : "<null>");
        parcel->readInt32();
        sp<IBinder> binder(parcel->readStrongBinder());
        ALOGV("%s: Read surface binder = %p",
              __FUNCTION__, binder.get());
@@ -123,6 +124,7 @@ status_t CaptureRequest::writeToParcel(Parcel* parcel) const {

        // Surface.writeToParcel
        parcel->writeString16(String16("unknown_name"));
        parcel->writeInt32(0);
        // Surface.nativeWriteToParcel
        parcel->writeStrongBinder(binder);
    }