When tdm-monitor shows the information, the result
shows the width of the tbm_surface
instead of showing the real size of the buffer(stride/4).
Change-Id: Ib25a118d05798a96dcf4e99a31fd3c7f1462e399
format = tbm_surface_get_format(private_layer->showing_buffer->buffer);
tbm_surface_get_info(private_layer->showing_buffer->buffer, &buf_info);
- if (IS_RGB(format))
- size.h = buf_info.planes[0].stride >> 2;
- else
- size.h = buf_info.planes[0].stride;
+ size.h = tbm_surface_get_width(private_layer->showing_buffer->buffer);
size.v = tbm_surface_get_height(private_layer->showing_buffer->buffer);
if (info.src_config.format)