updateSubtreeNeedsAddToScene method

  1. @protected
void updateSubtreeNeedsAddToScene ()
@protected

Traverse the layer tree and compute if any subtree needs addToScene.

A subtree needs addToScene if any of its layer needs addToScene. The ContainerLayer will override this to respect its children.

Implementation

@protected
void updateSubtreeNeedsAddToScene() {
  _subtreeNeedsAddToScene = _needsAddToScene || alwaysNeedsAddToScene;
}