hwcomposer: Add support for UI mirroring
- Uevent observer as part of Hwcomposer
- HPD, enabling/disabling external display from HWC
Change-Id: I52b4f30c78e98c5b52c86722046389f458c2dbee
diff --git a/libgralloc/fb_priv.h b/libgralloc/fb_priv.h
index 83b941a..48e5669 100644
--- a/libgralloc/fb_priv.h
+++ b/libgralloc/fb_priv.h
@@ -25,11 +25,6 @@
#define NO_SURFACEFLINGER_SWAPINTERVAL
#define COLOR_FORMAT(x) (x & 0xFFF) // Max range for colorFormats is 0 - FFF
-enum hdmi_mirroring_state {
- HDMI_NO_MIRRORING,
- HDMI_UI_MIRRORING,
-};
-
struct private_handle_t;
enum {
@@ -54,21 +49,11 @@
float ydpi;
float fps;
uint32_t swapInterval;
-#if defined(__cplusplus) && defined(HDMI_DUAL_DISPLAY)
- int orientation;
- int videoOverlay; // VIDEO_OVERLAY - 2D or 3D
- int secureVideoOverlay; // VideoOverlay is secure
uint32_t currentOffset;
- int enableHDMIOutput; // holds the type of external display
- bool trueMirrorSupport;
- bool exitHDMIUILoop;
- float actionsafeWidthRatio;
- float actionsafeHeightRatio;
- bool hdmiStateChanged;
- hdmi_mirroring_state hdmiMirroringState;
- pthread_mutex_t overlayLock;
- pthread_cond_t overlayPost;
-#endif
+ bool fbPostDone;
+ pthread_mutex_t fbPostLock;
+ //Condition to inform HWC that fb_post called
+ pthread_cond_t fbPostCond;
};