Fix a crash in gl::DirectCompositionChildSurfaceWin::SetDrawRectangle
We assumed GLContext::GetCurrent() will not return null, but it the wild it seems it could be null. So instead of DCHECK, we fail gracefully. BUG=1002637 TEST=crash reports R=sunnyps@chromium.org Change-Id: If3b83bd93c73353632baedfa7876cba77cebdf16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804219 Commit-Queue: Zhenyao Mo <zmo@chromium.org> Auto-Submit: Zhenyao Mo <zmo@chromium.org> Reviewed-by:Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/master@{#696628}
Showing
Please register or sign in to comment