Make PrepareLayerList more readable and handle different HwcLayer easier. We want to wrap HwcList from HwcComposer2D into the new HAL class (ex. HwcHAL in Bug 1144012), so we don't need to care about memory allocation in HwcComposer. By the way, there are some #ifs in PrepareLayerList, we also want to wrap them. Therefore, we can easily add new HwcLayer type (ex. OverlayImage layer) without adding #if-#else for different Android versions in PrepareLayerList.
Created attachment 8617214 [details] [diff] [review] [WIP] Part 1: Add HwcListData type (v3) Use HwcListData to manage HwcList's memory.