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

Commit b8ceeb8f authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am 85085cd6: Merge "libui: fix passing Fence object over binder"

* commit '85085cd6':
  libui: fix passing Fence object over binder
parents ef89f763 85085cd6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -138,7 +138,7 @@ status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) c
    if (size < getFlattenedSize() || count < getFdCount()) {
    if (size < getFlattenedSize() || count < getFdCount()) {
        return NO_MEMORY;
        return NO_MEMORY;
    }
    }
    FlattenableUtils::write(buffer, size, getFdCount());
    FlattenableUtils::write(buffer, size, (uint32_t)getFdCount());
    if (isValid()) {
    if (isValid()) {
        *fds++ = mFenceFd;
        *fds++ = mFenceFd;
        count--;
        count--;
@@ -156,7 +156,7 @@ status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, si
        return NO_MEMORY;
        return NO_MEMORY;
    }
    }


    size_t numFds;
    uint32_t numFds;
    FlattenableUtils::read(buffer, size, numFds);
    FlattenableUtils::read(buffer, size, numFds);


    if (numFds > 1) {
    if (numFds > 1) {