잡담

View, Surfaceview, GDI, Double Buffering

tomato13 2013. 5. 4. 00:16

http://openparadigm.tistory.com/49


I had some confusion among view, canvas, surfaceview and etc.

When I check the SPen’s sdk, I should understand them before.

 

So, how the view windows are shown to us? At first, we should do down to GDI thread. What is GDI(Graphic device interface)? It’s drawing surface buffer to the screen. There are many sufaces which is delivered to the FrameBuffer by a SuffaceFlinger.

 

View ( a set of surface views ) -> using canvas -> the image is passed to the FrameBuffer by the SurfaceFlinger

 

Surface view is drawn by not GDI but another thread.

( it’s drawn by double buffering )


http://www.matrix44.net/old/sdl/sdlnet.html

* Double buffering:

When Double Buffering is enabled (Default) we end up with two Surface in the Background - from which only one is shown on the Screen and the other one is used as a Back Buffer to draw into. Without Double Buffering we would encounter Flickering on the Screen when Drawing to our Surface.