flushCompositingBits method

void flushCompositingBits ()

Updates the RenderObject.needsCompositing bits.

Called as part of the rendering pipeline after flushLayout and before flushPaint.

Implementation

void flushCompositingBits() {
  profile(() { Timeline.startSync('Compositing bits'); });
  _nodesNeedingCompositingBitsUpdate.sort((RenderObject a, RenderObject b) => a.depth - b.depth);
  for (RenderObject node in _nodesNeedingCompositingBitsUpdate) {
    if (node._needsCompositingBitsUpdate && node.owner == this)
      node._updateCompositingBits();
  }
  _nodesNeedingCompositingBitsUpdate.clear();
  profile(() { Timeline.finishSync(); });
}