setWillChangeHint method

void setWillChangeHint ()

Hints that the painting in the current layer is likely to change next frame.

This hint tells the compositor not to cache the current layer because the cache will not be used in the future. If this hint is not set, the compositor will apply its own heuristics to decide whether the current layer is likely to be reused in the future.

Implementation

void setWillChangeHint() {
  _currentLayer?.willChangeHint = true;
}