Index: ui/gl/gl_context_egl.cc |
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
index fa655a039a749d50e06eed0fec15778e04253fb1..f77c9f9d5eceae26aa917cf340a79621cba7e2cc 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 |