Mark SharedImage lost if cannot MakeCurrent
SkiaOutputSurfaceOnGpuImpl::DestroySkImage may not be able to make the GL context current (e.g. tear down race or driver failure). In this case, we should not issue any GL calls. Most of these SkImages have an associated SharedImage. Eventually, all will. This notifies the SharedImage representation not to glDeleteTextures when the context is lost. Bug: 923473 Change-Id: I80f9777aa36278b021febc7b5492a0310deb0639 Reviewed-on: https://chromium-review.googlesource.com/c/1439622 Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by:Peng Huang <penghuang@chromium.org> Auto-Submit: Jonathan Backer <backer@chromium.org> Cr-Commit-Position: refs/heads/master@{#627982}
Showing
Please register or sign in to comment