Use plane.stirde rather than plane.size as gbm buffer width for BLOB
format We use {width: data_size, height: 1} as size of gbm buffer to store data for BLOB format. Since height might be aligned and makes plane.size bigger than the actual data_size, we change to use plane.stride to represent the data size. Doing so, it won't fail for NativePixmapHandle validation. Bug: b/142105578 Test: ./jpeg_encode_accelerator_unittest Change-Id: Iaf93b0ae7834d2310e1bdfe9cf76be489a3747f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868931Reviewed-by:Ricky Liang <jcliang@chromium.org> Commit-Queue: Wei Lee <wtlee@chromium.org> Cr-Commit-Position: refs/heads/master@{#707306}
Showing
Please register or sign in to comment