8、composite 流程分析

1、Flutter 之圖像繪製原理bash

2、Widget、Element、RenderObjectpost

3、Flutter UI 更新流程ui

4、build 流程分析this

5、layout 流程分析spa

6、Paint 繪製(1)3d

7、Paint 繪製(2)code

9、Flutter 小實踐cdn

(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提交數據基本完成了

相關文章
相關標籤/搜索