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

Unified Diff: ui/gl/gl_context_glx.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_glx.cc
diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc
index af94040d88fef1fd0d2116ec4a5289333dc43b0b..b8d13892f65d4172bec4054a93b154b2713e1828 100644
--- a/ui/gl/gl_context_glx.cc
+++ b/ui/gl/gl_context_glx.cc
@@ -38,10 +38,6 @@ GLContextGLX::GLContextGLX(GLShareGroup* share_group)
display_(NULL) {
}
-GLContextGLX::~GLContextGLX() {
- Destroy();
-}
-
Display* GLContextGLX::display() {
return display_;
}
@@ -250,4 +246,8 @@ bool GLContextGLX::WasAllocatedUsingARBRobustness() {
return GLSurfaceGLX::IsCreateContextRobustnessSupported();
}
+GLContextGLX::~GLContextGLX() {
+ Destroy();
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698