summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_priv.h
diff options
context:
space:
mode:
authorWuZhen <wuzhen@jidemail.com>2016-06-02 22:56:55 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2016-06-27 20:01:00 +0800
commitc597559db6fa98c6b590dc00dc08c0a148c33219 (patch)
tree220f25167429eaaabb037ac47c045fb71accc996 /gralloc_drm_priv.h
parent7c9a5244690da7f5ab282475a31c0dfb17aa9880 (diff)
downloadexternal_drm_gralloc-c597559db6fa98c6b590dc00dc08c0a148c33219.zip
external_drm_gralloc-c597559db6fa98c6b590dc00dc08c0a148c33219.tar.gz
external_drm_gralloc-c597559db6fa98c6b590dc00dc08c0a148c33219.tar.bz2
Rename hdmi_output_mode
Rename it to drm_output_mode and move it into gralloc_drm_output in preparation for folowing changes. Change-Id: I488f395feede9c9a20eadb9145ebf46295ba4a71
Diffstat (limited to 'gralloc_drm_priv.h')
-rw-r--r--gralloc_drm_priv.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gralloc_drm_priv.h b/gralloc_drm_priv.h
index fd3b72e..9203fba 100644
--- a/gralloc_drm_priv.h
+++ b/gralloc_drm_priv.h
@@ -42,9 +42,10 @@ enum drm_swap_mode {
DRM_SWAP_SETCRTC,
};
-enum hdmi_output_mode {
- HDMI_CLONED,
- HDMI_EXTENDED,
+enum drm_output_mode {
+ DRM_OUTPUT_PRIMARY,
+ DRM_OUTPUT_CLONED,
+ DRM_OUTPUT_EXTENDED,
};
struct gralloc_drm_plane_t {
@@ -84,6 +85,8 @@ struct gralloc_drm_output
int bpp;
uint32_t active;
+ enum drm_output_mode output_mode;
+
/* 'private fb' for this output */
struct gralloc_drm_bo_t *bo;
};
@@ -97,7 +100,6 @@ struct gralloc_drm_t {
drmModeResPtr resources;
struct gralloc_drm_output primary;
struct gralloc_drm_output hdmi;
- enum hdmi_output_mode hdmi_mode;
/* hdmi hotplug */
pthread_mutex_t hdmi_mutex;