Sunday, August 1, 2010

Android - display

Android has a 2D and 3D software renderer

2D sw renderer the skia library

3D sw renderer is called pixel flinger

in addition hw support can be provided for 3D rendering

libhgl.so is the hardware renderer support .so

overlay engine is used for video acceleration

choice of 3D sw and hw renderer can be made by an activity using setEgl.... command

skia is used by default for menus

GL and canvas are different entities

both are bound to an activity using instance.. analogy ... like socket, process and tcp driver(==graphics driver)

an activity has a surface by default in view root,all menus are drawn on it, surfaceview and GLSurface view creates additional associated surfaces with the activity.Each surface is associated
with a graphics context ... context is either canvas by reference or EGL context by reference

No comments:

Post a Comment