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

Commit 59cb7412 authored by Dan Stoza's avatar Dan Stoza Committed by Android (Google) Code Review
Browse files

Merge "libgui: Add a union to BufferItem for refactoring"

parents 7ecaa009 358fc008
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -86,9 +86,14 @@ class BufferItem : public Flattenable<BufferItem> {
    // mFrameNumber is the number of the queued frame for this slot.
    uint64_t mFrameNumber;

    union {
        // mSlot is the slot index of this buffer (default INVALID_BUFFER_SLOT).
        int mSlot;

        // mBuf is the former name for mSlot
        int mBuf;
    };

    // mIsDroppable whether this buffer was queued with the
    // property that it can be replaced by a new buffer for the purpose of
    // making sure dequeueBuffer() won't block.