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

Unified Diff: ui/gfx/gl/gl_surface_cgl.h

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.cc ('k') | ui/gfx/gl/gl_surface_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_surface_cgl.h
diff --git a/ui/gfx/gl/gl_surface_cgl.h b/ui/gfx/gl/gl_surface_cgl.h
index 036502edc58fa195f3eb1ed847d4c4705925971e..951c26663a16fd3b075dd3af636bf89143b0ac10 100644
--- a/ui/gfx/gl/gl_surface_cgl.h
+++ b/ui/gfx/gl/gl_surface_cgl.h
@@ -14,11 +14,13 @@ namespace gfx {
class GLSurfaceCGL : public GLSurface {
public:
GLSurfaceCGL();
- virtual ~GLSurfaceCGL();
static bool InitializeOneOff();
static void* GetPixelFormat();
+ protected:
+ virtual ~GLSurfaceCGL();
+
private:
DISALLOW_COPY_AND_ASSIGN(GLSurfaceCGL);
};
@@ -30,7 +32,6 @@ class GLSurfaceCGL : public GLSurface {
class UI_EXPORT NoOpGLSurfaceCGL : public GLSurfaceCGL {
public:
explicit NoOpGLSurfaceCGL(const gfx::Size& size);
- virtual ~NoOpGLSurfaceCGL();
// Implement GLSurface.
virtual bool Initialize() OVERRIDE;
@@ -40,6 +41,9 @@ class UI_EXPORT NoOpGLSurfaceCGL : public GLSurfaceCGL {
virtual gfx::Size GetSize() OVERRIDE;
virtual void* GetHandle() OVERRIDE;
+ protected:
+ virtual ~NoOpGLSurfaceCGL();
+
private:
gfx::Size size_;
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | ui/gfx/gl/gl_surface_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698