summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorChia-I Wu <olv@google.com>2018-01-08 12:51:00 -0800
committerChia-I Wu <olv@google.com>2018-01-31 15:11:50 -0800
commitfd1924f6f5a1638a50efb4757e584f60dad93694 (patch)
treeb5f7d101cb2842635feef135d8be8ad90261279e /identity/support/src/cppbor_parse.cpp
parent422b94e002e2187dd3e313768ab8906be9ed1f9c (diff)
graphics: add mapper HAL support library
Add a header-only support library android.hardware.graphics.mapper@2.0-hal that can be used by implementations. There are two classes in the support library. MapperHal is an abstract class to be implemented by implementations. Mapper is an implementation of HIDL IMapper interface on top of MapperHal. An implementation can class VendorHal : public MapperHal { ... }; auto mapper = std::make_unique<Mapper>(); mapper->init(std::make_unique<VendorHal>(...)); Or, if vendor extensions are to be added to the IMapper, class MapperHalExt : public MapperHal { ... }; class VendorHal : public MapperHalExt { ... }; class MapperExt : public MapperImpl<IMapperExt, MapperHalExt> { ... }; auto mapper = std::make_unique<MapperExt>(); mapper->init(std::make_unique<VendorHal>(...)); Test: builds Change-Id: Ib23c1f5977744f7e116bb93db53e882e2dad7ce3
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions