Android Graphics Architecture

Android Graphics Architecture

ID:39909875

大小:87.77 KB

页数:19页

时间:2019-07-14

Android Graphics Architecture_第1页
Android Graphics Architecture_第2页
Android Graphics Architecture_第3页
Android Graphics Architecture_第4页
Android Graphics Architecture_第5页
资源描述:

《Android Graphics Architecture》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、AndroidGraphicsArchitectureI1.LaunchanewActivity2.CreateanewwindowfortheActivityandregisteritattheWindowManagerService3.CreateanewsurfacefortheActivity‘swindowandhanditovertotheActivity4.DrawtheActivity‘sviewhierarchyintotheoffscreensurface(layer)5.Compositeallvisibleoffscree

2、nsurfacesontothedisplayWindowManager2Service(ProcessA)ActivityManager1App3Service(ZygotechildprocessB)(ProcessA)ViewRootSurfaceFlinger(ViewHierarchy)(ProcessC)4LayerStackDecorView(FrameLayout)5compositingContentView(FrameLayout)LinearLayoutTextViewImageAndroidGraphicsArchite

3、ctureII01.ActivityManagerService.startActivity02.Activity.attachPolicyManager.makeNewWindow03.ViewRoot.setViewWindowManagerService.addWindow04.ViewRoot.performTraversalsPhoneWindow.DecorView.measure05.ViewRoot.relayoutWindowWindowManagerService.relayoutWindow(fetchesthesu

4、rfacecreatedbytheWMSalsointoprocessB)06.WindowManagerService.WindowState.createSurfaceLockedSurfaceFlinger.createSurface07.SurfaceFlinger.addLayer_l08.ViewRoot.performTraversalsPhoneWindow.DecorView.layout09.ViewRoot.performTraversalsViewRoot.drawSurface.lockCanvas(mmapra

5、wsurfacememoryintoprocessB)WindowManager10.Surface.unlockCanvasAndPost3,511.SurfaceFlinger.threadLoopSurfaceFlinger.composeSurfacesService12.ViewRoot.finishDrawingWindowManagerService.finishDrawingWindow(ProcessA)ActivityManagerApp(Activity)61Service2(ZygotechildprocessB)(P

6、rocessA)7ViewRoot(ViewHierarchy)SurfaceFlinger4,8,9,12(ProcessC)10LayerStackDecorView(FrameLayout)11compositingContentView(FrameLayout)LinearLayoutTextViewImageActivity.attachCallStack:Activity.attach(Activity.java)Activity.attachBaseContext(PhoneWindow.java)PolicyManager.ma

7、keNewWindow(PolicyManager.java)createstheActivity‘sPhoneWindowtheUIthreadissettothecallingthreadwhichistheActivity‘smainthreadWindow.setWindowManager(Window.java)createstheWindows‘sWindow.LocalWindowManagerinstanceActivity.setContentViewCallStack:Activity.setContentView(Ac

8、tivity.java)PhoneWindow.setContentView(PhoneWindow.java)PhoneWindow.

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。