Chinaunix首页 | 论坛 | 博客
  • 博客访问: 822004
  • 博文数量: 210
  • 博客积分: 10002
  • 博客等级: 上将
  • 技术积分: 1840
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 09:56
文章分类

全部博文(210)

文章存档

2011年(1)

2010年(6)

2009年(65)

2008年(138)

我的朋友

分类: LINUX

2009-03-29 11:25:19

I understand Windows manager is a separate service in the android
framework. I am wondering whether Window manager is like X Server or
not.
Lets say I have an activity with many views in it.
When an activity changes screen (i.e paint screen), Does it directly
draw on the drawing surface or request Window manager to draw on the
activity's behalf?
>>>
The window manager creates surfaces for the application, and applications
draw directly into those surfaces without going through the window manager.
>>>>>>
A surface is basically a pointer to block of memory. Why does a
separate process (i.e. Window Manager) have to create it? Why not the
activity itself create it?

Does Window manager need access to that memory?
If so, why?

>>>>>>>>>>>>

Because the window manager is responsible for organizing the screen,
applications don't get to decide that.  The window manager allocates
surfaces and decides where they go and how they are layered; it never
touches their bits, which is up to the application.

 

阅读(2031) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~