internal void UpdateBatchingFlags()
{
bool oldValue = _fBatchingRoot;
_fBatchingRoot = _fBatching || _clipRect != null || _mask != null || _paintingMode > 0;
if (oldValue != _fBatchingRoot)
{
if (_fBatchingRoot)
_fBatchingRequested = true;
else if (_descendants != null)
_descendants.Clear();
InvalidateBatchingState();
}
}