summaryrefslogtreecommitdiff
path: root/libhwc2.1/ExynosHWC.cpp
diff options
context:
space:
mode:
authorSeungchul Kim <sc377.kim@samsung.com>2019-03-12 16:35:29 +0900
committerWeizhung Ding <weizhungding@google.com>2021-03-19 20:12:47 +0800
commit166d1ec4bb7918e6e31d27876adde3ddacad36ce (patch)
tree1feddc0f6238144f75eab57e253dfee3342d176a /libhwc2.1/ExynosHWC.cpp
parentedc066233defe2cd3572eeca8729e06b241cdca7 (diff)
libhwc2.1: modify concept of display's type and ID
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: I4926f2b30abc2a9b4ddf1c47038ac7b9573213b1 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
Diffstat (limited to 'libhwc2.1/ExynosHWC.cpp')
-rw-r--r--libhwc2.1/ExynosHWC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhwc2.1/ExynosHWC.cpp b/libhwc2.1/ExynosHWC.cpp
index 50534d9..1887f59 100644
--- a/libhwc2.1/ExynosHWC.cpp
+++ b/libhwc2.1/ExynosHWC.cpp
@@ -238,7 +238,7 @@ int32_t exynos_createVirtualDisplay(hwc2_device_t *dev, uint32_t width, uint32_t
return HWC2_ERROR_BAD_PARAMETER;
ExynosDevice *exynosDevice = checkDevice(dev);
- *outDisplay = HWC_DISPLAY_VIRTUAL;
+ *outDisplay = getDisplayId(HWC_DISPLAY_VIRTUAL, 0);
if (exynosDevice) {
ExynosDisplay *exynosDisplay = checkDisplay(exynosDevice, *outDisplay);
@@ -1272,7 +1272,7 @@ void exynos_boot_finished(ExynosHWCCtx *dev)
char val;
if (read(sw_fd, &val, 1) == 1 && val == '1') {
ALOGI("%s : try to reconnect displayport", __func__);
- ExynosExternalDisplayModule *display = (ExynosExternalDisplayModule*)dev->device->getDisplay(HWC_DISPLAY_EXTERNAL);
+ ExynosExternalDisplayModule *display = (ExynosExternalDisplayModule*)dev->device->getDisplay(getDisplayId(HWC_DISPLAY_EXTERNAL, 0));
display->handleHotplugEvent();
}
hwcFdClose(sw_fd);