Thanks Dianne two more quesions 1. As a multi windows systems, each window whill hold two buffers (front buffer, back buffer in surface). Is all the buffer size determined by the windows size or the display pannel size? If its size is same as the window'size, whether surface will destroyed and recreated if we resize it?
2. How to control the z-order of Layer in surface? everytime a new Layer created, it will be added to the top in surfaceflinger. So if we want jump to another exist windows, how to updat the z-order of the former window, jump-to window? On 3月27日, 下午3时44分, Dianne Hackborn <hack...@android.com> wrote: > On Fri, Mar 27, 2009 at 12:22 AM, waterblood <guoyin.c...@gmail.com> wrote: > > Does the bitmap data we write to Canvas is the same as we write to > > the back buffer to that surface, which means surface will not copy the > > data in Canvas to back buffer then swap the backbuffer with front > > buffer, or it will do the copy operation? > > Surfaces are normally double-buffered. How that is implemented is an > implementation detail. The current impl simply re-composites all surfaces > to the screen when one of them needs to be updated, so there is a (possibly > hardware-accelerated) blit of all surfaces after one is posted. > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---