summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2017-01-24 02:23:09 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-01-24 02:23:09 +0000
commit1ef94cc544c07dadee59726e7fd2a2d02dfa7a87 (patch)
tree2473c909f45a7fa8458e39f4aaed9819f8331680
parentbacd48231700ed2481e303d90ed62d96a2112991 (diff)
parent41f681bad0e1277eff324e610bf2907a05b9e6c6 (diff)
downloadhwcomposer-1ef94cc544c07dadee59726e7fd2a2d02dfa7a87.tar.gz
Fix incorrect use of the ! operator. am: b5a6873157 am: 44bf9cda81
am: 41f681bad0 Change-Id: I32f943bc9caaa330c2b1b96325767ee26925d379
-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;
}