Android模拟器硬件加速

Android渲染

1. aosp源码获取(https://source.android.com/docs/setup/download/downloading)

mkdir prodir
cd prodir
repo init -u https://android.googlesource.com/platform/manifest -b master
repo sync

1.1编译(https://source.android.com/docs/setup/build/building)

2. qemu模拟器渲染硬件加速(android9.0.0_r1)

2.1设计方案(https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-2.6-release/android/android-emugl/DESIGN)

image.png

2.2 客户端代码 (https://android.googlesource.com/device/generic/goldfish-opengl/+/refs/tags/android-9.0.0_r1)

${aosp}/device/generic/goldfish-opengl/


image.png

2.3 模拟器代码 (https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-2.7-release)

distrib/android/android-emugl

image.png

你可能感兴趣的:(Android模拟器硬件加速)