This is needed to avoid jank when resizing an embedded Android view. See https://github.com/flutter/flutter/issues/19572#issuecomment-410400724