webkit中,TexturesGenerator线程主要负责执行webkit线程发来的operation。web
operation的做用主要是记录将webkit线程准备好的skpicture,转成bitmap,而后转换到相应的texture,供gpu进行渲染。canvas
调用stack以下:线程
tile:paintBitmap()中调用BaseRender::renderTiledContent(),blog
其中比较关键的两步:get
BaseRender::renderTiledContent(){it
……io
renderInfo.tilePainter->paint(&canvas);用来完成webkit线程准备好的skpicture,转成bitmap渲染
……
renderingComplete(renderInfo, &canvas);用来完成将bitmap转换到相应的texture
……webkit}map