Allow independent rendering pipelines

Fixes #2723
This commit is contained in:
Kris Giesing
2016-03-18 15:15:50 -07:00
parent e074af8099
commit bb5a82a726
18 changed files with 275 additions and 169 deletions

View File

@@ -46,20 +46,20 @@ class _SteppedWidgetFlutterBinding extends WidgetFlutterBinding {
// Cloned from Renderer.beginFrame() but with early-exit semantics.
void _beginFrame() {
assert(renderView != null);
RenderObject.flushLayout();
pipelineOwner.flushLayout();
if (phase == EnginePhase.layout)
return;
RenderObject.flushCompositingBits();
pipelineOwner.flushCompositingBits();
if (phase == EnginePhase.compositingBits)
return;
RenderObject.flushPaint();
pipelineOwner.flushPaint();
if (phase == EnginePhase.paint)
return;
renderView.compositeFrame(); // this sends the bits to the GPU
if (phase == EnginePhase.composite)
return;
if (SemanticsNode.hasListeners) {
RenderObject.flushSemantics();
pipelineOwner.flushSemantics();
if (phase == EnginePhase.flushSemantics)
return;
SemanticsNode.sendSemanticsTree();