summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2017-01-24 02:27:28 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-01-24 02:27:28 +0000
commitac9ce1aee4c4607780f8ebab544d365bc4d0370c (patch)
tree5e855bc421b490a3dc3f0f5b3a3e7227ceadde48
parent1ebca1b019e05b2beb267e955e896674a474ac8f (diff)
parent1ef94cc544c07dadee59726e7fd2a2d02dfa7a87 (diff)
downloadhwcomposer-ac9ce1aee4c4607780f8ebab544d365bc4d0370c.tar.gz
Fix incorrect use of the ! operator. am: b5a6873157 am: 44bf9cda81 am: 41f681bad0
am: 1ef94cc544 Change-Id: I95b520f9b14206235e23f9c3e334ac98e3c15c91
-rwxr-xr-xmoorefield_hdmi/common/base/HwcLayerList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moorefield_hdmi/common/base/HwcLayerList.cpp b/moorefield_hdmi/common/base/HwcLayerList.cpp
index 5185e98..c163c8a 100755
--- a/moorefield_hdmi/common/base/HwcLayerList.cpp
+++ b/moorefield_hdmi/common/base/HwcLayerList.cpp
@@ -68,7 +68,7 @@ bool HwcLayerList::checkSupported(int planeType, HwcLayer *hwcLayer)
}
// check usage
- if (!hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER) {
+ if (!(hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER)) {
WLOGTRACE("not a composer layer");
return false;
}
@@ -134,7 +134,7 @@ bool HwcLayerList::checkRgbOverlaySupported(HwcLayer *hwcLayer)
}
// check usage
- if (!hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER) {
+ if (!(hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER)) {
WLOGTRACE("not a composer layer");
return false;
}
@@ -204,7 +204,7 @@ bool HwcLayerList::checkCursorSupported(HwcLayer *hwcLayer)
}
// check usage
- if (!hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER) {
+ if (!(hwcLayer->getUsage() & GRALLOC_USAGE_HW_COMPOSER)) {
WLOGTRACE("not a composer layer");
return false;
}