Files
hardware_interfaces/graphics/allocator/2.0/default/Android.bp
Chia-I Wu 939e4018c2 graphics: rewrite libgralloc1-adapter
Rewrite libgralloc1-adapter to be based on Gralloc1On0Adapter.
Previously, the adapter targeted maximum portability and maximum
performance.  The rewritten adapter targets ease of use instead.

This also fixes a bug in the adapter's GRALLOC1_FUNCTION_RELEASE.  The
function does not imply native_handle_close/native_handle_delete.  As a
result, IMapper and IComposer are also fixed to close/delete handles.

Test: builds and boots
Change-Id: I5c071453dc950583087ae07967bca2c22866c538
2017-01-06 12:31:26 +08:00

42 lines
1.1 KiB
Plaintext

cc_library_shared {
name: "android.hardware.graphics.allocator@2.0-impl",
relative_install_path: "hw",
srcs: ["Gralloc.cpp"],
cppflags: ["-Wall", "-Wextra"],
shared_libs: [
"android.hardware.graphics.allocator@2.0",
"libbase",
"libcutils",
"libhardware",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog",
"libutils",
],
}
cc_binary {
name: "android.hardware.graphics.allocator@2.0-service",
relative_install_path: "hw",
srcs: ["service.cpp"],
init_rc: ["android.hardware.graphics.allocator@2.0-service.rc"],
shared_libs: [
"android.hardware.graphics.allocator@2.0",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog",
"libutils",
],
}
cc_library_static {
name: "libgralloc1-adapter",
srcs: ["gralloc1-adapter.cpp", "Gralloc1On0Adapter.cpp"],
include_dirs: ["system/core/libsync/include"],
cflags: ["-Wall", "-Wextra", "-Wno-unused-parameter"],
export_include_dirs: ["."],
}