SkiaRenderer: fix crashes when context is lost
When context is lost, the SharedContextState::gr_context_ could be nullptr, we should check it is not nullptr, before using it to avoid crashes. Bug: 1103726 Change-Id: I50a84d3cd2ffff05095ce682f80ddf31d5304d66 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2295683Reviewed-by:Vasiliy Telezhnikov <vasilyt@chromium.org> Commit-Queue: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#787918}
Showing
Please register or sign in to comment