Hello all.
I'm a student who interested in android-x86 OS, and recently I put my effort into researching Android-x86 Graphics System.
And now, I have analysed the
gralloc.default.so (implemented by AOSP) HAL module code and
gralloc.drm.so (implemented by Android-x86 developers) HAL module code. After reading these two gralloc HAL module source code, I find that they are absolutely different. Especially,
grallo.drm.so is implemented base on the DRM/KMS graphics system used widely in Linux x86 desktop.
The question what I want to ask is the drm_mod_register_buffer function how to map dumb buffer obejct that is represented by struct gralloc_drm_bo_t into app process address space.
Another question is SurfaceFlinger process how to obtain the start address of GraphicBuffer object(mCurrentBuffer) in FramebufferSurface class, I just want to something in the final composed screen image.
Thanks!
My English is not very good, please forgive me!