summaryrefslogtreecommitdiff
authorSky Zhou <sky.zhou@amlogic.com>2016-12-30 12:14:56 (GMT)
committer Sky Zhou <sky.zhou@amlogic.com>2017-01-04 12:49:50 (GMT)
commit962e99b762b16d2a120235d0ded8ccffe4bba544 (patch)
tree683226b241ae1224ab2d6e6efc3e5d8adfb7eb13
parentfe1516110c7dd8dc576449bfeda6d2d23dd073c0 (diff)
downloadhwcomposer-962e99b762b16d2a120235d0ded8ccffe4bba544.zip
hwcomposer-962e99b762b16d2a120235d0ded8ccffe4bba544.tar.gz
hwcomposer-962e99b762b16d2a120235d0ded8ccffe4bba544.tar.bz2
PD #137609: fix testcase "android.view.cts.WindowTest#testSetLocalFocus".
HWC returned HWC COMPOSITION for virtualdisplay when no outputbuffer set which is not supported by current HWC. Now HWC need always return CLIENT COMPOSITION for virtual display. Change-Id: I475a7626fa485797b4a239d6ad9567170cec842a
Diffstat
-rw-r--r--hwc2/common/devices/VirtualDevice.cpp10
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;
}
}
}