Chia-I Wu d6daa8ddf9 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
2018-01-14 21:39:38 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-29 17:53:33 +00:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-29 17:53:33 +00:00
2017-11-29 17:53:33 +00:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-11-28 14:23:43 -08:00
2017-05-02 16:45:27 -07:00
2017-11-28 14:23:43 -08:00
2017-12-14 16:05:53 -08:00
2016-08-30 11:28:36 -07:00
2016-08-30 11:28:36 -07:00
2017-06-12 13:20:12 -07:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%