The Android 8.1.0 releases do not provide graphics hardware acceleration. The master branch has code in
hardware/interfaces/graphics/composer/2.1/default/Hwc.cpp
that will use gralloc if hwcomposer is not available. This if
block is not part of the android-8.1.0_r2 release.
Two things have to happen in order for hardware acceleration to be in place for hikey960:
- BoardConfigCommon.mk needs the line: TARGET_USES_HWC2 := true
- There needs to be a hikey960-specific implementation of
hwcomposer
which then needs to be included as a package in device/linaro/hikey/hikey960/device-hikey960.mk
.
Writing a hikey960-specific version of hwcomposer will be the most time-consuming part.