Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: ui/gl/gl_context.cc

Issue 12038095: Android webview fix gpu crashes after destroy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fixes. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/image_transport_surface_android.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index a6e67da31b69e6ea2f02bf0a7af0ae64f1301bb2..2df03c28fced9ca7ce7fa57ca80d820bc92d7efd 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -121,8 +121,8 @@ bool GLContext::MakeVirtuallyCurrent(
}
void GLContext::OnDestroyVirtualContext(GLContext* virtual_context) {
- DCHECK(virtual_gl_api_);
- virtual_gl_api_->OnDestroyVirtualContext(virtual_context);
+ if (virtual_gl_api_)
+ virtual_gl_api_->OnDestroyVirtualContext(virtual_context);
}
void GLContext::SetRealGLApi() {
« no previous file with comments | « content/common/gpu/image_transport_surface_android.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698