[4.0] Avoid to call SurfaceResize functions