Vulkan: fix Crash drawing root render pass
The crash is because the vulkan device lost. Fix the problem by always calling context_state_->MakeCurrent() in SkiaOutputSurfaceImplOnGpu::MakeCurrent(), it will check vulkan device lost by testing gr_context_->abandoned(), and if the device is lost, we will skip the draw to avoid crash. Bug: 1068161 Change-Id: I128df218958c0fb0d8f48e8533678f90ceab270b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2146235 Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org> Auto-Submit: Peng Huang <penghuang@chromium.org> Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#758405}
Showing
Please register or sign in to comment