TexturesGenerator線程分析

webkit中,TexturesGenerator線程主要負責執行webkit線程發來的operation。web

operation的做用主要是記錄將webkit線程準備好的skpicture,轉成bitmap,而後轉換到相應的texture,供gpu進行渲染。canvas

調用stack以下:線程

2Q8TV7~I

 

tile:paintBitmap()中調用BaseRender::renderTiledContent(),blog

其中比較關鍵的兩步:get

BaseRender::renderTiledContent(){it

……io

renderInfo.tilePainter->paint(&canvas);用來完成webkit線程準備好的skpicture,轉成bitmap渲染

……
renderingComplete(renderInfo, &canvas);用來完成將bitmap轉換到相應的texture
……webkit

}map

相關文章
相關標籤/搜索