753: Use max function to ensure that the swapchain size is not less than 1. r=kvark a=Tnze ATT Co-authored-by: Tnze <cjd001113@outlook.com>