* Remove unused local variables.
* Remove or comment out unused static functions.
* Fix trivial bugs found by unused value warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I99389b883c89551850180d25241a35a40bb77b26
One must explicitly include what it need.
time.h for clock_gettime
float.h for FLT_MAX
string.h for memset
Bug: 37629934
Test: build
Change-Id: I1030a9c9ff3c2de4c5febabc3064d6976e9535cf
For our prepare and set methods, starting in HWC 1.0 we're
assured that numDisplays is at least 1 and displays[0] is
non-NULL, so we're okay with not explicitly checking that.
We also fix a minor typo while we're in here.
Change-Id: Ia5452a9b3b48e1d6697562a2a9e0ea4d415df5c4
The new version adds an acquire and release fence to each layer,
providing explicit producer->hwc and hwc->producer synchronization.
Change-Id: Ibd6e3c7b3515c012c767246e6d6514274fdef01d