summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Sally Qi <sallyqi@google.com> 2022-08-30 22:46:57 -0700
committer Sally Qi <sallyqi@google.com> 2022-09-12 12:14:12 -0700
commit49afba7d80a545131e3b6c1e989e56a4a2e581bd (patch)
tree4fa5d995bf49d006af859910420eb694ab439c69 /libs/input/PointerController.cpp
parent6b86e2cbbfc59839d0d75b29f41bc75d64615376 (diff)
Fix throw exception when using HardwareBuffer.BLOB format to create
ImageReader/ImageWriter object. - Internally, we should deal with HardwareBuffer.BLOB format according to surface's dataSpace. Directly passing BLOB format to getEstimatedNativeAllocBytes function will throw exception because BLOB format is not handled inside. Instead, use their corresponding imageFormat to avoid such failure in this case. Bug: 244268240 Test: atest android.hardware.camera2.cts.ImageReaderTest, atest android.hardware.camera2.cts.ImageWriterTest, atest android.hardware.cts.DataSpaceTest Change-Id: I3f18b9d3550f88be82cde75372637a3ae528b5ec
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions