display: Get panel type from framebuffer
Change-Id: I3b7cb78d7c6019482ae698b30d553ca782f5022b
diff --git a/libhwcomposer/hwc_utils.h b/libhwcomposer/hwc_utils.h
index a6c1446..9ce0815 100644
--- a/libhwcomposer/hwc_utils.h
+++ b/libhwcomposer/hwc_utils.h
@@ -37,6 +37,14 @@
namespace qhwc {
//fwrd decl
class QueuedBufferStore;
+class ExternalDisplay;
+class CopybitEngine;
+
+struct MDPInfo {
+ int version;
+ char panel;
+ bool hasOverlay;
+};
enum external_display_type {
EXT_TYPE_NONE,
@@ -57,8 +65,6 @@
};
-class ExternalDisplay;
-class CopybitEngine;
// -----------------------------------------------------------------------------
// Utility functions - implemented in hwc_utils.cpp
void dumpLayer(hwc_layer_t const* l);
@@ -102,8 +108,6 @@
struct hwc_context_t {
hwc_composer_device_t device;
int numHwLayers;
- int mdpVersion;
- bool hasOverlay;
int overlayInUse;
//Framebuffer device
@@ -121,6 +125,8 @@
// External display related information
qhwc::ExternalDisplay *mExtDisplay;
+ qhwc::MDPInfo mMDP;
+
};
#endif //HWC_UTILS_H