Hello, This has already been discussed a while back. Neither API is "good", it really depends on the fb driver. From what I can tell, the linux driver documentation is very vague about what these functions actually do.
On some drivers, FBIOPAN_DISPLAY does a *smooth* panning, which is most definitely not what we want here. Conceptually, FBIOPUT_VSCREENINFO is what we want, but it is true that on some drivers it is not as efficient. We're working on a small abstraction layer (HAL) that will allow ISV to provide which ever code works best with their drivers. Mathias On May 21, 9:21 pm, Jill Zhou <ruohong.z...@gmail.com> wrote: > Hi, all > > In /frameworks/base/libs/ui/EGLDisplaySurface.cpp > function EGLDisplaySurface::swapBuffers will use FBIOPUT_VSCREENINFO > to interact with FB driver to do page flip. Why not use > FBIOPAN_DISPLAY? I think FBIOPAN_DISPLAY should be more efficient. FB > driver only need to update base address, instead of check all > parameter in VSCREENINFO. > > Regards, > Jill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---