OSDN Git Service

drm_hwcomposer: Store active mode instead of config index
authorSean Paul <seanpaul@chromium.org>
Wed, 4 Feb 2015 18:05:44 +0000 (10:05 -0800)
committerSean Paul <seanpaul@google.com>
Wed, 4 Feb 2015 22:46:27 +0000 (14:46 -0800)
commitfa406a10d4db9f58c822e20c60ea902aa2d56ccc
tree64263e4a959537b82ef886538468c535835c03e6
parentefb20cb773314e53a185d80454906243d7b9fb70
drm_hwcomposer: Store active mode instead of config index

Since the config indices can change out from under us, store the
actual mode instead of an index. This avoids having to
reset active_config when we get a new list from the driver.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Change-Id: I09a1ffbdde16c44ccc8a1d2865f09a5da22c2e26
hwcomposer.cpp