Index: ui/gl/gl_implementation_android.cc |
diff --git a/ui/gl/gl_implementation_android.cc b/ui/gl/gl_implementation_android.cc |
index d948c5782f86963d0d8151d0a0f8f6c643d1f3b8..fd14e1ecc805a29c62405d5e59586dff184368ff 100644 |
--- a/ui/gl/gl_implementation_android.cc |
+++ b/ui/gl/gl_implementation_android.cc |
@@ -132,4 +132,26 @@ void ClearGLBindings() { |
UnloadGLNativeLibraries(); |
} |
+bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { |
+ *info = GLWindowSystemBindingInfo(); |
+ switch (GetGLImplementation()) { |
+ case kGLImplementationEGLGLES2: { |
+ EGLDisplay display = eglGetCurrentDisplay(); |
+ const char* vendor = eglQueryString(display, EGL_VENDOR); |
+ const char* version = eglQueryString(display, EGL_VERSION); |
+ const char* extensions = eglQueryString(display, EGL_EXTENSIONS); |
+ if (vendor) |
+ info->vendor = vendor; |
+ if (version) |
+ info->version = version; |
+ if (extensions) |
+ info->extensions = extensions; |
+ return true; |
+ } |
+ default: |
+ return false; |
+ } |
+ return false; |
+} |
+ |
} // namespace gfx |