Check before removing render pass resource
Replce the DCHECK in SkiaOutputSurfaceImpl::RemoveRenderPassResource() with a test to see if the render pass has an entry in |render_pass_image_cache_| before trying to remove it. There isn't a known repro for this crash, but I suspect that using a bypass to draw the quad in SkiaRenderer::DrawRenderPassQuad() can cause the circumstances to arise. An entry for |render_pass_image_cache_| is created in MakePromiseSkImageFromRenderPass(), but this is skipped if a bypass quad is used, causing a difference between the render pass maps in SkiaRenderer and SkiaOutputSurfaceImpl. Bug: 959071 Change-Id: I4765f57eb30a7b4f14a559722e419ae526f79572 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1648326Reviewed-by:Robert Kroeger <rjkroege@chromium.org> Commit-Queue: Sean Gilhuly <sgilhuly@chromium.org> Cr-Commit-Position: refs/heads/master@{#667291}
Showing
Please register or sign in to comment