diff options
Diffstat (limited to 'ui/gl/gl_context_egl.cc')
-rw-r--r-- | ui/gl/gl_context_egl.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc index fa655a0..f77c9f9 100644 --- a/ui/gl/gl_context_egl.cc +++ b/ui/gl/gl_context_egl.cc @@ -24,15 +24,6 @@ extern "C" { namespace gfx { -std::string GLContextEGL::GetExtensions() { - const char* extensions = eglQueryString(display_, - EGL_EXTENSIONS); - if (!extensions) - return GLContext::GetExtensions(); - - return GLContext::GetExtensions() + " " + extensions; -} - GLContextEGL::GLContextEGL(GLShareGroup* share_group) : GLContext(share_group), context_(NULL), @@ -40,10 +31,6 @@ GLContextEGL::GLContextEGL(GLShareGroup* share_group) config_(NULL) { } -GLContextEGL::~GLContextEGL() { - Destroy(); -} - bool GLContextEGL::Initialize( GLSurface* compatible_surface, GpuPreference gpu_preference) { DCHECK(compatible_surface); @@ -157,4 +144,17 @@ void GLContextEGL::SetSwapInterval(int interval) { } } +std::string GLContextEGL::GetExtensions() { + const char* extensions = eglQueryString(display_, + EGL_EXTENSIONS); + if (!extensions) + return GLContext::GetExtensions(); + + return GLContext::GetExtensions() + " " + extensions; +} + +GLContextEGL::~GLContextEGL() { + Destroy(); +} + } // namespace gfx |