1
0
Fork 0
android_external_drm_hwcomp.../bufferinfo
Roman Stratiienko add24cb745 drm_hwcomposer: stop using pixel_stride
pixel_stride is used only to validate buffer when importing using
GraphicBufferMapper::importBuffer() method.

The problem is we can't always get this value from buffer_handle_t.
Libdrm and MapperMetadata getters can only calculate this value based
on byte stride and buffer format. But this calculation isn't always
possible, which causes importBuffer() to fail.

Instead we can use GrallocMapper::importBuffer() method,
which doesn't require to validate the buffer.

This commit is not compatible with Android-P.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2020-10-31 19:08:19 +02:00
..
legacy drm_hwcomposer: stop using pixel_stride 2020-10-31 19:08:19 +02:00
BufferInfoGetter.cpp drm_hwcomposer: stop using pixel_stride 2020-10-31 19:08:19 +02:00
BufferInfoGetter.h drm_hwcomposer: stop using pixel_stride 2020-10-31 19:08:19 +02:00
BufferInfoMapperMetadata.cpp drm_hwcomposer: refactor platform directory 2020-10-20 23:19:42 +03:00
BufferInfoMapperMetadata.h drm_hwcomposer: refactor platform directory 2020-10-20 23:19:42 +03:00