summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olv@google.com>2017-10-19 15:07:35 -0700
committerChia-I Wu <olv@google.com>2017-11-06 14:57:50 -0800
commit2b61444e954847fda9f3f1d64fb9476fbfe1d85d (patch)
treebb8c98d034cfb3f06de25bfd20336b90f3c444a8
parent5af9bdca62d686dd0554269f1ef4027e9a95b60b (diff)
downloadhikey-2b61444e954847fda9f3f1d64fb9476fbfe1d85d.tar.gz
hikey: enable HIDL HWC
This will use FB->HWC2 adapter. Test: boots hikey and hikey960 Change-Id: I70995d71f70c3cf6bd3bbaca8756ee0a6644b32a
-rw-r--r--BoardConfigCommon.mk1
-rw-r--r--device-common.mk1
-rw-r--r--manifest.xml9
3 files changed, 11 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index a8deb9f7..b5e7d9df 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -34,6 +34,7 @@ TARGET_USERIMAGES_USE_EXT4 := true
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USE_PAN_DISPLAY := true
+TARGET_USES_HWC2 := true
SF_START_GRAPHICS_ALLOCATOR_SERVICE := true
TARGET_AUX_OS_VARIANT_LIST := neonkey argonkey
diff --git a/device-common.mk b/device-common.mk
index d3476b5f..21959b59 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -58,6 +58,7 @@ PRODUCT_PACKAGES += libGLES_android
# Graphics HAL
PRODUCT_PACKAGES += \
android.hardware.graphics.allocator@2.0-impl \
+ android.hardware.graphics.composer@2.1-impl \
android.hardware.graphics.mapper@2.0-impl
# Memtrack
diff --git a/manifest.xml b/manifest.xml
index aa16a8cf..61da9eb8 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -18,6 +18,15 @@
</interface>
</hal>
<hal format="hidl">
+ <name>android.hardware.graphics.composer</name>
+ <transport arch="32+64">passthrough</transport>
+ <version>2.1</version>
+ <interface>
+ <name>IComposer</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
<name>android.hardware.graphics.mapper</name>
<transport arch="32+64">passthrough</transport>
<version>2.0</version>