updateSubtreeNeedsAddToScene method

  1. @protected
  2. @visibleForTesting
void updateSubtreeNeedsAddToScene ()
@protected, @visibleForTesting

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
@visibleForTesting
void updateSubtreeNeedsAddToScene() {
  _subtreeNeedsAddToScene = _needsAddToScene || alwaysNeedsAddToScene;
}