Add a new version of ComposeDevice
to include displayId to support multi-display
Test: manually
Change-Id: Id1422b9d770d7e7414812ffd2c0ceb552a67c292
diff --git a/system/hwc2/EmuHWC2.h b/system/hwc2/EmuHWC2.h
index 14e7cec..a10f5c4 100644
--- a/system/hwc2/EmuHWC2.h
+++ b/system/hwc2/EmuHWC2.h
@@ -164,6 +164,13 @@
uint32_t numLayers;
struct compose_layer layer[0];
} ComposeDevice;
+ typedef struct compose_device_v2 {
+ uint32_t version;
+ uint32_t displayId;
+ uint32_t targetHandle;
+ uint32_t numLayers;
+ struct compose_layer layer[0];
+ } ComposeDevice_v2;
class ComposeMsg {
public: