Yiwei Zhang
854a9186df
gralloc: hide AIDL metadata for gralloc0-only build if requested
...
This is needed for ARC-R container targets using arc-cros-gralloc.
Meanwhile, bump -std=c++14 to -std=c++17 for std::optional and others.
Bug: b/433317686
Test: chromium CI + android CI
Change-Id: Id9ed5f27f6788ca63d0bdb9566c54b3cd4030e16
2025-09-10 15:40:18 -07:00
Jason Macnak
3a1e511437
gralloc: Avoid using std::optional in shared memory metadata
...
... to ensure the metadata is trivially copyable.
Bug: b/321158178
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: vts -m VtsHalGraphicsMapperStableC_TargetTest
Change-Id: Ib8cc1147692fa1e056108987339aff3e222ab0d7
2024-01-23 13:52:17 -08:00
Jason Macnak
92eb16bb24
gralloc: Move buffer metadata accessing into cros_gralloc_buffer
...
... to hide cros_gralloc_buffer_metadata from the AIDL/HIDL Apis.
No functional change expected.
Bug: b/321158178
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: vts -m VtsHalGraphicsMapperStableC_TargetTest
Change-Id: I33f17670a331385b0afe0e179cab8985b7fe78b9
2024-01-23 13:52:17 -08:00
Jason Macnak
bd616875b5
gralloc: Move buffer metadata initialization into common layer
...
... to dedup and support upcoming change to metadata initialization.
Bug: b/321158178
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: vts -m VtsHalGraphicsMapperStableC_TargetTest
Change-Id: Ib00873babcb2ec8816b0d319e675d6884594f618
2024-01-23 13:52:14 -08:00