GetSharedContextState() return null if GrContext cannot be initialized
Looks like the crash in https://crbug.com/1086428 is because GrContext is not initialized successfully, and then we are accessing the nullptr GrContext, and then segment fault happens. Fix the problem by making GetSharedContextState() return nullptr if GrContext cannot be initialized. Bug: 1086428 Change-Id: I288fc6832d6b0c838e16c119354e50db2ad2af80 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214912 Commit-Queue: Peng Huang <penghuang@chromium.org> Reviewed-by:Jonathan Backer <backer@chromium.org> Auto-Submit: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#771851}
Showing
Please register or sign in to comment