• Jonathan Backer's avatar
    SkiaRenderer: Handle context lost errors · 2814d325
    Jonathan Backer authored
    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: default avatarkylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#706922}
    2814d325
image_context_impl.cc 8.48 KB