Merge "gfx: support external display" into cw-e-dev
diff --git a/merrifield/common/base/Hwcomposer.cpp b/merrifield/common/base/Hwcomposer.cpp
index 6f1698a..e4d9ad8 100644
--- a/merrifield/common/base/Hwcomposer.cpp
+++ b/merrifield/common/base/Hwcomposer.cpp
@@ -81,8 +81,9 @@
VTRACE("device %d doesn't exist", i);
continue;
}
- if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
- continue;
+
+ if (device->getType() == IDisplayDevice::DEVICE_VIRTUAL)
+ continue;
device->prePrepare(displays[i]);
}
@@ -94,8 +95,8 @@
continue;
}
- if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
- continue;
+ if (device->getType() == IDisplayDevice::DEVICE_VIRTUAL)
+ continue;
ret = device->prepare(displays[i]);
if (ret == false) {
@@ -137,8 +138,8 @@
continue;
}
- if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
- continue;
+ if (device->getType() == IDisplayDevice::DEVICE_VIRTUAL)
+ continue;
ret = device->commit(displays[i], mDisplayContext);
if (ret == false) {