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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user