what’s the difference between ashmem and FRAMEBUFFER memory?

70 views
Skip to first unread message

Xing Xu

unread,
Jul 12, 2020, 7:43:07 PM7/12/20
to android-platform
I understand that there two kinds of GraphicBuffer here for qcom/msm chip: PRIV_FLAGS_FRAMEBUFFER and PRIV_FLAGS_USES_ASHMEM. The ASHMEM will be used as the Android client’s Surface memory, and the FRAMEBUFFER will be used as the SurfaceFlinger’s render target. But when the HWC is enabled, some of the Surface’s memory(from ashmem) will be delivered to HWC.  So does this means both the FRAMEBUFFER memory and Surface memory (ashmem) are treated the same way for the HWC?

If so, what’s the difference between ashmem and FRAMEBUFFER memory?

Any hints will be thankful!

Reply all
Reply to author
Forward
0 new messages