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

Commit ca8c5695 authored by Dan Stoza's avatar Dan Stoza Committed by Gerrit Code Review
Browse files

Merge "libgui: Implement onTransact for sideband streams"

parents becd89d1 17166698
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -414,6 +414,15 @@ status_t BnGraphicBufferConsumer::onTransact(
            reply->writeInt32(result);
            reply->writeInt32(result);
            return NO_ERROR;
            return NO_ERROR;
        }
        }
        case GET_SIDEBAND_STREAM: {
            CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
            sp<NativeHandle> stream = getSidebandStream();
            reply->writeInt32(static_cast<int32_t>(stream != NULL));
            if (stream != NULL) {
                reply->writeNativeHandle(stream->handle());
            }
            return NO_ERROR;
        }
        case DUMP: {
        case DUMP: {
            CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
            CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
            String8 result = data.readString8();
            String8 result = data.readString8();