author | Tellen Yu <tellen.yu@amlogic.com> | 2017-01-09 05:42:18 (GMT) |
---|---|---|
committer | Gerrit Code Review <gituser@scgit.amlogic.com> | 2017-01-09 05:42:18 (GMT) |
commit | dd2fa4ef3d91ba4e92e13e106d5d14e9f78c5443 (patch) | |
tree | 4921e7602df49afeac8ee70f0c9d553430d332cb | |
parent | 544c3329253c4341d0a43732fa94043246f52c21 (diff) | |
parent | 962e99b762b16d2a120235d0ded8ccffe4bba544 (diff) | |
download | hwcomposer-dd2fa4ef3d91ba4e92e13e106d5d14e9f78c5443.zip hwcomposer-dd2fa4ef3d91ba4e92e13e106d5d14e9f78c5443.tar.gz hwcomposer-dd2fa4ef3d91ba4e92e13e106d5d14e9f78c5443.tar.bz2 |
Merge "PD #137609: fix testcase "android.view.cts.WindowTest#testSetLocalFocus"." into n-amlogic
-rw-r--r-- | hwc2/common/devices/VirtualDevice.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/hwc2/common/devices/VirtualDevice.cpp b/hwc2/common/devices/VirtualDevice.cpp index 7ef2315..a141582 100644 --- a/hwc2/common/devices/VirtualDevice.cpp +++ b/hwc2/common/devices/VirtualDevice.cpp @@ -371,12 +371,10 @@ int32_t VirtualDevice::validateDisplay(uint32_t* outNumTypes, layer = mHwcLayers.valueAt(i); if (layer) { // Virtual Display. - 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; - } + if (layer->getCompositionType() != HWC2_COMPOSITION_CLIENT) { + // change all other device type to client. + mHwcLayersChangeType.add(layerId, layer); + continue; } } } |