diff options
author | WuZhen <wuzhen@jidemail.com> | 2016-06-03 00:38:15 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2016-06-27 20:08:35 +0800 |
commit | 560cea305ee46cc1f21cd1e0f3bcbd6ec59a3676 (patch) | |
tree | f9f2affe62b903f2a0a71a1a72a1fda1b44b2099 /gralloc_drm_priv.h | |
parent | c597559db6fa98c6b590dc00dc08c0a148c33219 (diff) | |
download | external_drm_gralloc-560cea305ee46cc1f21cd1e0f3bcbd6ec59a3676.zip external_drm_gralloc-560cea305ee46cc1f21cd1e0f3bcbd6ec59a3676.tar.gz external_drm_gralloc-560cea305ee46cc1f21cd1e0f3bcbd6ec59a3676.tar.bz2 |
Maintain a list of connector outputs
Refactor code to support multiple mirrored outputs following code.
Change-Id: I60781d707ae68db2dbd2c4c4122b9183633a74be
Diffstat (limited to 'gralloc_drm_priv.h')
-rw-r--r-- | gralloc_drm_priv.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h index 9203fba..e77b31c 100644 --- a/gralloc_drm_priv.h +++ b/gralloc_drm_priv.h @@ -98,12 +98,14 @@ struct gralloc_drm_t { /* initialized by gralloc_drm_init_kms */ drmModeResPtr resources; - struct gralloc_drm_output primary; - struct gralloc_drm_output hdmi; - /* hdmi hotplug */ - pthread_mutex_t hdmi_mutex; - pthread_t hdmi_hotplug_thread; + struct gralloc_drm_output *outputs; + int output_count, output_capacity; + + struct gralloc_drm_output *primary, *hdmi; + + pthread_mutex_t outputs_mutex; + pthread_t hotplug_thread; #ifdef DRM_MODE_FEATURE_DIRTYFB drmModeClip clip; |