platform_bootable_recovery/minui
Kelvin Zhang 90f783f3ca use create_dumb.size as size of buffer
According to `man drm-memory` , "The size field contains the absolute
size in bytes of the buffer. This can normally also be computed with
(height * pitch + width) * bpp / 4". Which suggests that we should use
the .size field to allocate buffer.

Test: th
Test: go to recovery, make sure contents are properly displayed.

BYPASS_INCLUSIVE_LANGUAGE_REASON=commit message referenced "man",
        which is a linux command for lookup manual pages.

Change-Id: I512be6b7d493ef1783f2b7f746e279bc1dfe65f2
2021-05-17 16:25:00 -04:00
..
include minui: add ARGB_8888 format 2019-12-13 10:53:33 -08:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to bootable/recovery 2021-02-14 10:37:20 -08:00
events.cpp Fix ioctl FIONREAD call parameters to use int instead of size_t 2020-01-13 16:04:44 -08:00
graphics.cpp minui: remove libadf since it is no longer supported 2021-01-21 14:05:21 -08:00
graphics.h minui: Move graphics_{adf,drm,fbdev} into classes. 2017-02-10 17:05:15 -08:00
graphics_drm.cpp use create_dumb.size as size of buffer 2021-05-17 16:25:00 -04:00
graphics_drm.h minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
graphics_fbdev.cpp Use O_CLOEXEC at a few places. 2019-03-01 14:24:41 -08:00
graphics_fbdev.h minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
resources.cpp minui: fix mem leakage issue 2020-12-23 19:21:06 +08:00