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

Unified Diff: ui/gfx/gl/gl_context_osmesa.cc

Issue 10067034: RefCounted types should not have public destructors, printing/ and ui/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 8 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
« no previous file with comments | « ui/gfx/gl/gl_context_osmesa.h ('k') | ui/gfx/gl/gl_context_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_context_osmesa.cc
diff --git a/ui/gfx/gl/gl_context_osmesa.cc b/ui/gfx/gl/gl_context_osmesa.cc
index efa6d1695275dd3cc5140f7068a31646f3c28236..b40f284a9b93864252341b0300f6f05d4ef5b862 100644
--- a/ui/gfx/gl/gl_context_osmesa.cc
+++ b/ui/gfx/gl/gl_context_osmesa.cc
@@ -18,12 +18,8 @@ GLContextOSMesa::GLContextOSMesa(GLShareGroup* share_group)
context_(NULL) {
}
-GLContextOSMesa::~GLContextOSMesa() {
- Destroy();
-}
-
-bool GLContextOSMesa::Initialize(
- GLSurface* compatible_surface, GpuPreference gpu_preference) {
+bool GLContextOSMesa::Initialize(GLSurface* compatible_surface,
+ GpuPreference gpu_preference) {
DCHECK(!context_);
OSMesaContext share_handle = static_cast<OSMesaContext>(
@@ -127,4 +123,8 @@ void GLContextOSMesa::SetSwapInterval(int interval) {
LOG(WARNING) << "GLContextOSMesa::SetSwapInterval is ignored.";
}
+GLContextOSMesa::~GLContextOSMesa() {
+ Destroy();
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/gl/gl_context_osmesa.h ('k') | ui/gfx/gl/gl_context_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698