Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: ui/gl/gl_context_egl.cc

Issue 10392152: RefCounted types should not have public destructors, Linux fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698