Android-x86
Fork
捐款

  • R/O
  • HTTP
  • SSH
  • HTTPS

device-generic-common: 提交

device/generic/common


Commit MetaInfo

修訂2c84b12f811d64c9e2f058e28625754948972129 (tree)
時間2017-11-10 15:11:52
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Make android.hardware.graphics.allocator passthrough

The gralloc.drm doesn't work in binderized mode.
Set its HIDL HAL to passthrough mode temporarily.

Note this violates the HAL type required by Android 8.0.
It should be fixed later.

Change Summary

差異

--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -63,6 +63,7 @@ USE_INTEL_OMX_COMPONENTS := true
6363 USE_OPENGL_RENDERER := true
6464 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
6565 BOARD_USES_DRM_HWCOMPOSER ?= true
66+SF_START_GRAPHICS_ALLOCATOR_SERVICE := true
6667
6768 USE_CAMERA_STUB ?= false
6869
--- /dev/null
+++ b/CleanSpec.mk
@@ -0,0 +1 @@
1+$(call add-clean-step, rm -f $(TARGET_OUT_VENDOR)/*/*/android.hardware.graphics.allocator@2.0-service*)
--- a/manifest.xml
+++ b/manifest.xml
@@ -36,6 +36,24 @@
3636 </interface>
3737 </hal>
3838 <hal format="hidl">
39+ <name>android.hardware.graphics.allocator</name>
40+ <transport arch="32+64">passthrough</transport>
41+ <version>2.0</version>
42+ <interface>
43+ <name>IAllocator</name>
44+ <instance>default</instance>
45+ </interface>
46+ </hal>
47+ <hal format="hidl">
48+ <name>android.hardware.graphics.mapper</name>
49+ <transport arch="32+64">passthrough</transport>
50+ <version>2.0</version>
51+ <interface>
52+ <name>IMapper</name>
53+ <instance>default</instance>
54+ </interface>
55+ </hal>
56+ <hal format="hidl">
3957 <name>android.hardware.media.omx</name>
4058 <transport>hwbinder</transport>
4159 <version>1.0</version>
--- a/treble.mk
+++ b/treble.mk
@@ -2,7 +2,6 @@
22 PRODUCT_PACKAGES += \
33 android.hardware.graphics.mapper@2.0-impl \
44 android.hardware.graphics.allocator@2.0-impl \
5- android.hardware.graphics.allocator@2.0-service
65
76 # HWComposer HAL
87 PRODUCT_PACKAGES += \
Show on old repository browser