diff options
author | 2016-11-18 16:12:31 -0800 | |
---|---|---|
committer | 2016-11-22 12:55:17 -0800 | |
commit | eb3db61f914a2469fe632c48b46a0ce60c84c9d9 (patch) | |
tree | 68975de2d6bcab07091f1012123c88db7fbce4a9 /libs/binder/IActivityManager.cpp | |
parent | 057706f804e17d124f757048856c7374ae1b483c (diff) |
Fix 5x and 6P crash when using HWC2to1adapter
Angler and Bullhead crash when a SolidColor layer is used in
combination with HWC2to1Adapter. This is due to assumptions in
the HWC1 code (non-null handle field = valid pointer). This
assumption is incorrect with a background layer because it will
set the field backgroundcolor...which occupies the same location
as handle field in hwc_layer_1_t.
This patch detects whether the HWC supports BACKGROUND layer and
sets backgroundcolor/handle accordingly to HWC assumption.
Test: Manual on Angler and Bullhead.
Change-Id: Ic5c3366a4a8989f3a82b6367258bad8af25d3990
Diffstat (limited to 'libs/binder/IActivityManager.cpp')
0 files changed, 0 insertions, 0 deletions