I am trying to understand the relationship between android.graphics package and SurfaceFlinger .
Based on the Android Graphics Documentation, there are two ways to draw 2D graphics. One uses a VIEW object, and the other by drawing directly on canvas. When I read from the documentation, by accessing the canvas directly, you can create a stream that controls the SurfaceView that is associated with SurfaceFlinger . I also noticed in the code that the android.graphics package is just a shell of the SKIA library. SKIA functions are called using the JNI. So, I canโt determine if calls to SurfaceFlinger continue.
Does this mean that when using the View object for simple 2D graphics, there is no need for SurfaceFlinger? Or is Surfaceflinger always used when drawing any graphics on the screen? Any inputs?
source share