summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/CameraModule.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-14 21:39:38 -0800
commitd6daa8ddf9ad758a9eaddd624dec57f543d51b44 (patch)
tree61b04e84c2bb030f8e46cfafc1faa40bc8beb001 /camera/common/1.0/default/CameraModule.cpp
parentd6695d5bdc83be03d775a91d961dfa5c89543ac1 (diff)
graphics: add allocator HAL support library
Add a header-only library android.hardware.graphics.allocator@2.0-hal that can be used by implementations. An imlpementation can class VendorHal : public AllocatorHal { ... }; auto allocator = std::make_unique<Allocator>(); allocator->init(std::make_unique<VendorHal>(...)); Or, if vendor extensions are to be added to the IAllocator, class AlocatorHalExt : public AllocatorHal { ... }; class VendorHal : public AllocatorHalExt { ... }; class AllocatorExt : public AllocatorImpl<IAllocatorExt, AllocatorHalExt> { ... }; auto allocator = std::make_unique<AllocatorExt>(); allocator->init(std::make_unique<VendorHal>(...)); Test: builds Change-Id: I7cb7a4888316b871e5c49d96524b1642fc708f2d
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions