Android系统的开机画面显示过程分析(10)
BootAnimation类的成员函数readyToRun的实现如下所示: status_tBootAnimation::readyToRun(){ mAssets.addDefaultAssets(); DisplayInfodinfo; status_tstatus=session()->getDisplayInfo(0,&dinfo); if(status) return-1; //createthenativesurface sp<SurfaceControl>control=session()->createSurface( getpid(),0,dinfo.w,dinfo.h,PIXEL_FORMAT_RGB_565); session()->openTransaction(); control->setLayer(0x40000000); session()->closeTransaction(); sp<Surface>s=control->getSurface(); //initializeo...