Re: Question about android graphics.

2009-04-14 Thread tom
On 3月31日, 下午5时27分, Dianne Hackborn hack...@android.com wrote: 2009/3/31 waterblood guoyin.c...@gmail.com if so, the Layer must have information about its position in display. But I only see it is created as the code below: Layer* layer = new Layer(this, display, client, id);

Re: Question about android graphics.

2009-03-31 Thread Dianne Hackborn
2009/3/31 waterblood guoyin.c...@gmail.com 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

Re: Question about android graphics.

2009-03-31 Thread waterblood
On 4月1日, 上午10时10分, Dianne Hackborn hack...@android.com wrote: 2009/3/31 waterblood guoyin.c...@gmail.com 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

Re: Question about android graphics.

2009-03-31 Thread Dianne Hackborn
2009/3/31 waterblood guoyin.c...@gmail.com if so, the Layer must have information about its position in display. But I only see it is created as the code below: Layer* layer = new Layer(this, display, client, id); status_t err = layer-setBuffers(client, w, h, format, flags); so layer

Question about android graphics.

2009-03-27 Thread waterblood
Hi All, I am tring to analyse the android graphics. After reading the source in android, I still have no idea how it works. Here I list a few questions. Any reply will be welcome. 1. what is the relationship between ViewRoot and View class. As my understanding, in each window, there is only

Re: Question about android graphics.

2009-03-27 Thread Romain Guy
1.  what is the relationship between ViewRoot and View class. The ViewRoot is the root of each view hierarchy. Like you said, there is one ViewRoot per window. The ViewRoot is responsible to handling the layout and drawing of the view hierarchy. The view hierarchy is made of Views and