libacryl_plugin: use std::array

cmdlist.commands, a large array of g2d_reg is allocated separately from
G2DHdrCommandWriter for memory efficiency. But the rest area of
G2DHdrCommandWriter except cmdlist.commands is very small. So allocating
G2DHdrCommandWriter and cmdlist.commands together will not overcommit
the amount allocated memory.

Bug: 155413192

Change-Id: I203f74a9b14f47ffb095d1de501bdba6a442767e
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
1 file changed
tree: c728d9b9f14111575571a787e6d515476d7d8942
  1. libacryl_plugins/
  2. libhwc2.1/