Logo
Explore Help
Register Sign In
Evolution-x/hardware_interfaces
1
0
Fork 0
You've already forked hardware_interfaces
mirror of https://github.com/Evolution-X/hardware_interfaces synced 2026-02-02 23:48:30 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
c4db9d17cd899992a1f14a91ebba385c87e4e708
hardware_interfaces/graphics/allocator/2.0/utils/hal/Android.bp

15 lines
433 B
Plaintext
Raw Normal View History

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-08 12:51:00 -08:00
cc_library_headers {
name: "android.hardware.graphics.allocator@2.0-hal",
defaults: ["hidl_defaults"],
vendor: true,
shared_libs: [
"android.hardware.graphics.allocator@2.0",
"android.hardware.graphics.mapper@2.0",
],
export_shared_lib_headers: [
"android.hardware.graphics.allocator@2.0",
"android.hardware.graphics.mapper@2.0",
],
export_include_dirs: ["include"],
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 20ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API