Android N MR2 Preview 2
Fix incorrect use of the ! operator.
Bug: http://b/31532493
Operator precedence means that the unary ! will apply to
hwcLayer->getUsage() before applying the unary & operator with
GRALLOC_USAGE_HW_COMPOSER. This means that these checks will always fail
(because it is defined as 0x00000800U). This code has either never
executed, or just chose a fallback path to continue working.
Test: Built without errors/warnings using new compiler.
Change-Id: Ie5d67369edd801d3944be2dba9b3cc4ec289949a
1 file changed