Merge "Fix an issue in SurfaceTexture with forgetting the dataspace"

This commit is contained in:
TreeHugger Robot
2018-12-18 14:41:42 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}
}