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

Unified Diff: ui/gl/gl_context_android.cc

Issue 23460026: [Android WebView] Fix async upload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | 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 d8238db54b6b7e1f7e197779e1cac80401ac2df8..1f7f8b1de874692a5fcba24954d298e6d8b3da2f 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -54,7 +54,12 @@ bool GLNonOwnedContext::MakeCurrent(GLSurface* surface) {
}
std::string GLNonOwnedContext::GetExtensions() {
- return GLContext::GetExtensions();
+ const char* extensions =
+ eglQueryString(eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_EXTENSIONS);
no sievers 2013/09/09 16:59:23 use |display_|
boliu 2013/09/09 17:49:37 This doesn't inherit from GLContextEGL, even thoug
+ if (!extensions)
+ return GLContext::GetExtensions();
+
+ return GLContext::GetExtensions() + " " + extensions;
}
} // anonymous namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698