2、Widget、Element、RenderObjectpost
4、build 流程分析this
7、Paint 繪製(2)code
(1) drawFrameblog
void drawFrame() {
pipelineOwner.flushLayout();
pipelineOwner.flushCompositingBits();
pipelineOwner.flushPaint();
renderView.compositeFrame(); // this sends the bits to the GPU
}
複製代碼
(2) compositeFrameip
void compositeFrame() {
final ui.SceneBuilder builder = ui.SceneBuilder();
final ui.Scene scene = layer.buildScene(builder);
if (automaticSystemUiAdjustment)
_updateSystemChrome();
_window.render(scene);
scene.dispose();
}
複製代碼
Composited Layer就是把全部layer組合成Scene,而後經過 ui.window.render 方法,把 scene提交給Engine,到這一步,Framework向Engine提交數據基本完成了