pub fn take_render_invalidation() -> bool
Returns true if a render invalidation was pending and clears the flag.