OSDN Git Service

drm_hwcomposer: fix crash in hwc_set()
authorHaixia Shi <hshi@chromium.org>
Wed, 30 Sep 2015 17:57:54 +0000 (10:57 -0700)
committerHaixia Shi <hshi@chromium.org>
Wed, 30 Sep 2015 18:01:26 +0000 (11:01 -0700)
commit7acc59be7f12ad45b9abfa56c2d21726edf6224e
tree4d1ee8bd0bdfe7259d37894ab1c840ec047c5d83
parentd106b919a575fb45388ee4a21b41c77e18e7cd27
drm_hwcomposer: fix crash in hwc_set()

For each display context we need to unconditionally call emplace_back()
on layers_indices to ensure that entries in layers_indices correspond to
the correct display.

BUG=24506167
TEST=still builds and boots ok
Change-Id: I6bc0858471c9ec51615c8ed7d8613529f77cb1ab
hwcomposer.cpp