diff options
-rwxr-xr-x | moorefield_hdmi/common/base/HwcLayerList.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/moorefield_hdmi/common/base/HwcLayerList.cpp b/moorefield_hdmi/common/base/HwcLayerList.cpp index c163c8a..479534c 100755 --- a/moorefield_hdmi/common/base/HwcLayerList.cpp +++ b/moorefield_hdmi/common/base/HwcLayerList.cpp @@ -267,6 +267,10 @@ bool HwcLayerList::initialize() DEINIT_AND_RETURN_FALSE("layer %d is null", i); } + if ((layer->compositionType != HWC_FRAMEBUFFER_TARGET) && + (layer->compositionType != HWC_SIDEBAND)) + layer->compositionType = HWC_FRAMEBUFFER; + HwcLayer *hwcLayer = new HwcLayer(i, layer); if (!hwcLayer) { DEINIT_AND_RETURN_FALSE("failed to allocate hwc layer %d", i); @@ -905,7 +909,7 @@ DisplayPlane* HwcLayerList::getPlane(uint32_t index) const return 0; } - if (hwcLayer->getHandle() == 0) { + if (hwcLayer->getLayer()->handle == 0) { DLOGTRACE("plane is attached with invalid handle"); return 0; } |