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

Commit f6a4ee5b authored by Stan Iliev's avatar Stan Iliev
Browse files

Fix an issue in SurfaceTexture with forgetting the dataspace

Test: Ran CTS and verified dataspace is not set to 0
Bug: 119504473
Change-Id: I6f9920e1979e5435dc95a7c2ab3f02d57dc57c4e
parent d5cc0bc1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -70,7 +70,8 @@ sk_sp<SkImage> ImageConsumer::dequeueImage(bool* queueEmpty, SurfaceTexture& st,
            int slot = st.mCurrentTexture;
            if (slot != BufferItem::INVALID_BUFFER_SLOT) {
                *queueEmpty = true;
                mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer, item.mDataSpace);
                mImageSlots[slot].createIfNeeded(st.mSlots[slot].mGraphicBuffer,
                        st.mCurrentDataSpace);
                return mImageSlots[slot].mImage;
            }
        }