Index: ui/gl/init/gl_factory_ozone.cc |
diff --git a/ui/gl/init/gl_factory_ozone.cc b/ui/gl/init/gl_factory_ozone.cc |
index 7ee46c7d47dc4d45e477866291a639b00a285e64..2fdcec5210921043425145e06bbcde4472b6082f 100644 |
--- a/ui/gl/init/gl_factory_ozone.cc |
+++ b/ui/gl/init/gl_factory_ozone.cc |
@@ -10,6 +10,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" |
@@ -91,6 +92,22 @@ scoped_refptr<GLSurface> CreateOffscreenGLSurfaceOld(const gfx::Size& size) { |
} // 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) { |