summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_surface_egl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_surface_egl.h')
-rw-r--r--ui/gl/gl_surface_egl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index dc6f418..bce2206 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -33,7 +33,6 @@ namespace gfx {
class GL_EXPORT GLSurfaceEGL : public GLSurface {
public:
GLSurfaceEGL();
- virtual ~GLSurfaceEGL();
// Implement GLSurface.
virtual EGLDisplay GetDisplay() OVERRIDE;
@@ -44,6 +43,8 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
static EGLNativeDisplayType GetNativeDisplay();
protected:
+ virtual ~GLSurfaceEGL();
+
bool software_;
private:
@@ -54,7 +55,6 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
public:
NativeViewGLSurfaceEGL(bool software, gfx::AcceleratedWidget window);
- virtual ~NativeViewGLSurfaceEGL();
// Implement GLSurface.
virtual EGLConfig GetConfig() OVERRIDE;
@@ -68,6 +68,7 @@ class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
protected:
+ virtual ~NativeViewGLSurfaceEGL();
void SetHandle(EGLSurface surface);
private:
@@ -83,7 +84,6 @@ class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
public:
PbufferGLSurfaceEGL(bool software, const gfx::Size& size);
- virtual ~PbufferGLSurfaceEGL();
// Implement GLSurface.
virtual EGLConfig GetConfig() OVERRIDE;
@@ -96,6 +96,9 @@ class GL_EXPORT PbufferGLSurfaceEGL : public GLSurfaceEGL {
virtual EGLSurface GetHandle() OVERRIDE;
virtual void* GetShareHandle() OVERRIDE;
+ protected:
+ virtual ~PbufferGLSurfaceEGL();
+
private:
gfx::Size size_;
EGLSurface surface_;