diff options
| author | 2021-12-01 13:19:26 -0800 | |
|---|---|---|
| committer | 2021-12-01 13:23:39 -0800 | |
| commit | 42a88242c83a6e46357b3d3b3ea90da3f7a66381 (patch) | |
| tree | b73167a5257a17d3b66ea1c9b00446310872d201 /vulkan/libvulkan/api.cpp | |
| parent | 18e8bbb4d04d6324275369c203fca9d1edf51fd7 (diff) | |
Updates encoding/decoding of optional metadata
... to always encode/decode the metadata type with a "is present"
value in order to be able to differentiate bad optional metadata from
unset optional metadata. The SetBadMetadata test in
VtsHalGraphicsMapperV4_0TargetTest.cpp expects that
gralloc->set(Smpte2086, <empty vec>)
returns Error::UNSUPPORTED. However, prior to this change,
android::gralloc4::decodeSmpte2086()
would return NO_ERROR as an empty stream was equivalent to an unset
optional.
Bug: b/207388558
Test: VtsHalGraphicsMapperV4_0TargetTest
Test: GrallocTypes_test
Change-Id: Ie47d3146f4e76c5c38919b776826d707e85aa438
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions