32 files changed, 2617 insertions, 874 deletions
diff --git a/hwc2/common/devices/VirtualDevice.cpp b/hwc2/common/devices/VirtualDevice.cpp index 24db6aa..b598edf 100644 --- a/hwc2/common/devices/VirtualDevice.cpp +++ b/hwc2/common/devices/VirtualDevice.cpp @@ -390,10 +390,12 @@ int32_t VirtualDevice::validateDisplay(uint32_t* outNumTypes, layer = mHwcLayers.valueAt(i); if (layer) { // Virtual Display. - if (layer->getCompositionType() != HWC2_COMPOSITION_CLIENT) { - // change all other device type to client. - mHwcLayersChangeType.add(layerId, layer); - continue; + if (mVirtualHnd && private_handle_t::validate(mVirtualHnd) >=0) { + if (layer->getCompositionType() != HWC2_COMPOSITION_CLIENT) { + // change all other device type to client. + mHwcLayersChangeType.add(layerId, layer); + continue; + } } } } @@ -428,6 +430,10 @@ void VirtualDevice::onVsync(int64_t timestamp) { // dont need implement now. } +void VirtualDevice::onHotplug(int disp, bool connected) { + // dont need implement now. +} + int32_t VirtualDevice::createVirtualDisplay( uint32_t width, uint32_t height, |