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

Unified Diff: ui/gfx/gl/gl_surface_cgl.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_surface_cgl.h ('k') | ui/gfx/gl/gl_surface_osmesa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_surface_cgl.cc
diff --git a/ui/gfx/gl/gl_surface_cgl.cc b/ui/gfx/gl/gl_surface_cgl.cc
index e734523cf70a018e5691f1a65571c46a31aa602a..53d5376ce875d0c55b9b44721e6751699fa125ce 100644
--- a/ui/gfx/gl/gl_surface_cgl.cc
+++ b/ui/gfx/gl/gl_surface_cgl.cc
@@ -19,11 +19,7 @@ namespace {
CGLPixelFormatObj g_pixel_format;
}
-GLSurfaceCGL::GLSurfaceCGL() {
-}
-
-GLSurfaceCGL::~GLSurfaceCGL() {
-}
+GLSurfaceCGL::GLSurfaceCGL() {}
bool GLSurfaceCGL::InitializeOneOff() {
static bool initialized = false;
@@ -68,14 +64,12 @@ void* GLSurfaceCGL::GetPixelFormat() {
return g_pixel_format;
}
+GLSurfaceCGL::~GLSurfaceCGL() {}
+
NoOpGLSurfaceCGL::NoOpGLSurfaceCGL(const gfx::Size& size)
: size_(size) {
}
-NoOpGLSurfaceCGL::~NoOpGLSurfaceCGL() {
- Destroy();
-}
-
bool NoOpGLSurfaceCGL::Initialize() {
return true;
}
@@ -100,4 +94,8 @@ void* NoOpGLSurfaceCGL::GetHandle() {
return NULL;
}
+NoOpGLSurfaceCGL::~NoOpGLSurfaceCGL() {
+ Destroy();
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/gl/gl_surface_cgl.h ('k') | ui/gfx/gl/gl_surface_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698