| Index: ui/gl/init/gl_factory_android.cc
|
| diff --git a/ui/gl/init/gl_factory_android.cc b/ui/gl/init/gl_factory_android.cc
|
| index 3446a1bd439d12f5bec12c48d02a804f53f27256..3dd167fcdc12e5218275852ce2b0d9004d612c2d 100644
|
| --- a/ui/gl/init/gl_factory_android.cc
|
| +++ b/ui/gl/init/gl_factory_android.cc
|
| @@ -11,6 +11,7 @@
|
| #include "ui/gl/gl_context_egl.h"
|
| #include "ui/gl/gl_context_osmesa.h"
|
| #include "ui/gl/gl_context_stub.h"
|
| +#include "ui/gl/gl_egl_api_implementation.h"
|
| #include "ui/gl/gl_implementation.h"
|
| #include "ui/gl/gl_share_group.h"
|
| #include "ui/gl/gl_surface.h"
|
| @@ -74,6 +75,22 @@ std::string GLNonOwnedContext::GetExtensions() {
|
|
|
| } // namespace
|
|
|
| +std::vector<GLImplementation> GetAllowedGLImplementations() {
|
| + std::vector<GLImplementation> impls;
|
| + impls.push_back(kGLImplementationEGLGLES2);
|
| + impls.push_back(kGLImplementationOSMesaGL);
|
| + return impls;
|
| +}
|
| +
|
| +bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
|
| + switch (GetGLImplementation()) {
|
| + case kGLImplementationEGLGLES2:
|
| + return GetGLWindowSystemBindingInfoEGL(info);
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
| +
|
| scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
|
| GLSurface* compatible_surface,
|
| GpuPreference gpu_preference) {
|
|
|