summaryrefslogtreecommitdiff
authorxiaojun liang <xiaojun.liang@amlogic.com>2017-10-19 03:17:13 (GMT)
committer xiaojun liang <xiaojun.liang@amlogic.com>2017-10-19 03:17:13 (GMT)
commitfd003ce8e1d05dff8c370a71aaf38352f646c6d1 (patch)
tree5ba39968e58481171ebd794885c92ed18a2bdd60
parent7fc131712a68eb584ede11edc7e84451023b25e0 (diff)
downloadhwcomposer-fd003ce8e1d05dff8c370a71aaf38352f646c6d1.zip
hwcomposer-fd003ce8e1d05dff8c370a71aaf38352f646c6d1.tar.gz
hwcomposer-fd003ce8e1d05dff8c370a71aaf38352f646c6d1.tar.bz2
HWC2: Fix black screen when netflix play mide sideband video layer [1/1]
PD# 152082 As the sideband stream always return nullptr so lead to the wrong value of mVideoOverlayLayerId . Change-Id: Idef27704f756b10811ae2263ceca5b32e7a7ba9e
Diffstat
-rw-r--r--hwc2/common/devices/PhysicalDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/hwc2/common/devices/PhysicalDevice.cpp b/hwc2/common/devices/PhysicalDevice.cpp
index fe0616b..95d24c6 100644
--- a/hwc2/common/devices/PhysicalDevice.cpp
+++ b/hwc2/common/devices/PhysicalDevice.cpp
@@ -287,7 +287,7 @@ int32_t PhysicalDevice::getChangedCompositionTypes(
// sideband stream.
if (layer->getCompositionType() == HWC2_COMPOSITION_SIDEBAND
- && layer->getSidebandStream()) {
+ /* && layer->getSidebandStream()*/) {
// TODO: we just transact SIDEBAND to OVERLAY for now;
DTRACE("get HWC_SIDEBAND layer, just change to overlay");
outLayers[i] = layerId;
@@ -407,7 +407,7 @@ int32_t PhysicalDevice::getDisplayRequests(
}
// sideband stream.
- if ((layer->getCompositionType() == HWC2_COMPOSITION_SIDEBAND && layer->getSidebandStream())
+ if ((layer->getCompositionType() == HWC2_COMPOSITION_SIDEBAND /*&& layer->getSidebandStream()*/)
|| layer->getCompositionType() == HWC2_COMPOSITION_CURSOR) {
// TODO: we just transact SIDEBAND to OVERLAY for now;
DTRACE("get HWC_SIDEBAND layer, just change to overlay");
@@ -1139,7 +1139,7 @@ int32_t PhysicalDevice::preValidate() {
if ((hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_VIDEO_OVERLAY) &&
(layer->getCompositionType() == HWC2_COMPOSITION_DEVICE)) ||
(layer->getCompositionType() == HWC2_COMPOSITION_SIDEBAND
- && layer->getSidebandStream())) {
+ /* && layer->getSidebandStream()*/)) {
if (mVideoOverlayLayerId != 0) {
ETRACE("ERROR: Find two video layer, should never get here !!");
}