Fix DCHECK in VulkanSurface
After crrev.com/649520 VulkanSurface was failing with a DCHECK when initializing on platforms that don't report currentExtent values for VulkanSurface. Updated VulkanSurface::CreateSwapChain() to handle this case properly. Also added some extra checks when casting uint32_t value received from Vulkan to int. Change-Id: I33a1d1ff3dc40b12ed9f7951ec5068f791fc45a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565249Reviewed-by:Antoine Labour <piman@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#650469}
Showing
Please register or sign in to comment