Perhaps you could try to start from frameworks/base/libs/ui/ FramebufferNativeWindow.cpp. That's where the graphics related operations delegate to concrete hardware modules. The detailed hardware modules usually located in hardware, find those framebuffer.cpp/gralloc.cpp/overlay.cpp files to check how things go to linux devices.
On 5月25日, 上午2时28分, drjunior <[email protected]> wrote: > I've been digging around SurfaceFlinger service implementation trying > to understand how it is implemented. I started studying the / > frameworks/base/services/surfaceflinger/SurfaceFlinger.cpp file and > the methods handleRepaint() and composeSurfaces(). What I would like > to know is how I can access the buffers(if I can do that) that has the > bitmap of the rectangle changed. I already found where the flip is > done( /frameworks/base/services/surfaceflinger/DisplayHardware/ > DisplayHardware.cpp::flip() ) and here I could confirm the size of the > rectangle(within the entire surface) that had changes. Now, I would > like to access the buffer of the surface that has the content with the > bitmap changed. There are a lot of files to search and without > documentation it's really difficult to find how to do that. > > Thank you for your help. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
