2201d08f8d
This is a bug introduced while refactoring init_display_surface(), in
[1]. As a result, user of res_create_multi_display_surface(), which is
effectively `charger` right now, crashes due to buffer overrun.
This CL fixes the wrong arg and adds a sanity test for
res_create_multi_display_surface(). The testdata (battery_scale.png) is
copied from system/core/healthd/images/battery_scale.png.
[1] commit
|
||
---|---|---|
.. | ||
include | ||
Android.bp | ||
events.cpp | ||
graphics.cpp | ||
graphics.h | ||
graphics_adf.cpp | ||
graphics_adf.h | ||
graphics_drm.cpp | ||
graphics_drm.h | ||
graphics_fbdev.cpp | ||
graphics_fbdev.h | ||
resources.cpp |