From f438e83f0b42a1c2d4e2be81bcf4c4e789514867 Mon Sep 17 00:00:00 2001 From: Fabien Sanglard Date: Tue, 21 Feb 2017 20:50:38 +0000 Subject: Revert "Fix plane assignment issue for HWC2On1Adaptor." This reverts commit a65b73f7ceada366254fb2fd8fd4b9f24dc870f4. Change-Id: I1cb7e7874ddd49b07ad02c404e731ec390277531 --- moorefield_hdmi/common/base/HwcLayerList.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'moorefield_hdmi/common/base') diff --git a/moorefield_hdmi/common/base/HwcLayerList.cpp b/moorefield_hdmi/common/base/HwcLayerList.cpp index 479534c..c163c8a 100755 --- a/moorefield_hdmi/common/base/HwcLayerList.cpp +++ b/moorefield_hdmi/common/base/HwcLayerList.cpp @@ -267,10 +267,6 @@ 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); @@ -909,7 +905,7 @@ DisplayPlane* HwcLayerList::getPlane(uint32_t index) const return 0; } - if (hwcLayer->getLayer()->handle == 0) { + if (hwcLayer->getHandle() == 0) { DLOGTRACE("plane is attached with invalid handle"); return 0; } -- cgit v1.2.3