SkiaRenderer: Handle context lost errors
With this CL, SkiaRenderer will receive a signal from GpuServiceImpl::LoseAllContexts and mark the shared context_state_ as lost. This will cause us to abandon all future draws and no-op the releases. Unfortunately, we cannot delete fulfilled promise images after GrContext::abandonContext is called. So an explicit leak in ImageContextImpl::OnContextLost was added. TBR=boliu@chromium.org Bug: 1011420 Change-Id: I5f5e178b6a51d770534c2260274f0b9c75c21831 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864413 Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by:kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#706922}
Showing
Please register or sign in to comment