hwc: enable dual display on hwc 1.1
Enable dual display on HWC 1.1; video uses overlay.
Bug: 7124159
Change-Id: I8333e46cfc74072f6259fba2b82368f0dd52b6df
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/libhwcomposer/hwc_utils.h b/libhwcomposer/hwc_utils.h
index 0bde003..37708e6 100644
--- a/libhwcomposer/hwc_utils.h
+++ b/libhwcomposer/hwc_utils.h
@@ -60,6 +60,9 @@
float xdpi;
float ydpi;
int fd;
+ bool connected; //Applies only to pluggable disp.
+ //Connected does not mean it ready to use.
+ //It should be active also. (UNBLANKED)
bool isActive;
};
@@ -166,13 +169,13 @@
hwc_composer_device_1_t device;
const hwc_procs_t* proc;
int numHwLayers;
- int overlayInUse;
+ int overlayInUse[HWC_NUM_DISPLAY_TYPES];
//Framebuffer device
framebuffer_device_t *mFbDev;
//Overlay object - NULL for non overlay devices
- overlay::Overlay *mOverlay;
+ overlay::Overlay *mOverlay[HWC_NUM_DISPLAY_TYPES];
//QService object
qService::QService *mQService;