summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc2.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2022-01-26 12:10:59 -0500
committer John Reck <jreck@google.com> 2022-01-26 19:10:58 -0500
commite071138365de28bd83526fb90677b080302cc14f (patch)
tree35548a5541a43dbed4044037a5394ea40b761362 /libs/ui/Gralloc2.cpp
parenteb98d0e02fc6fd8b197564701808daf681313f5e (diff)
Fix mismatch between isSupported & allocate
isSupported failed to validate usage bits like allocate does, meaning that isSupported can return true if a vendor is unaware of a usage bit but then allocate will (correctly!) fail to allocate. Fix this so that all buffer descriptions go through the same validation path. Bug: 216478685 Test: atest HardwareBufferTest#testInvalidUsage Change-Id: Idc9a0837f555beceb604f27a06e4833f41e97261
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
0 files changed, 0 insertions, 0 deletions