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

Unified Diff: ui/gl/gl_context_android.cc

Issue 320283002: Fix crash when using surfaceless EGL on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix Mac build issue Created 6 years, 6 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 | « android_webview/browser/aw_gl_surface.cc ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_android.cc
diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
index 2b918929ddd0f2bf87ca0428f1ab1650adc6e6a5..a2b63fd796e7f7778bb793ed504de97fb06176a3 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -84,10 +84,10 @@ scoped_refptr<GLContext> GLContext::CreateGLContext(
context = new GLContextOSMesa(share_group);
break;
default:
- if (compatible_surface->GetHandle())
- context = new GLContextEGL(share_group);
- else
+ if (compatible_surface->RepresentsNonOwnedSurface())
context = new GLNonOwnedContext(share_group);
+ else
+ context = new GLContextEGL(share_group);
break;
}
« no previous file with comments | « android_webview/browser/aw_gl_surface.cc ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698