Index: ui/gl/gl_surface_egl.h |
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h |
index 17e6e9404ceb9fda2c1542d76bb968f9e2ade879..43ce080102c1d7abc4de9b9f7d6838cce36a63ce 100644 |
--- a/ui/gl/gl_surface_egl.h |
+++ b/ui/gl/gl_surface_egl.h |
@@ -60,6 +60,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { |
virtual bool Initialize() OVERRIDE; |
virtual void Destroy() OVERRIDE; |
virtual bool Resize(const gfx::Size& size) OVERRIDE; |
+ virtual bool Recreate() OVERRIDE; |
virtual bool IsOffscreen() OVERRIDE; |
virtual bool SwapBuffers() OVERRIDE; |
virtual gfx::Size GetSize() OVERRIDE; |
@@ -67,6 +68,9 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { |
virtual std::string GetExtensions() OVERRIDE; |
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
virtual VSyncProvider* GetVSyncProvider() OVERRIDE; |
+ virtual bool RecreateOnMakeCurrent() OVERRIDE; |
+ |
+ void SetRecreateOnMakeCurrent(bool recreate); |
protected: |
virtual ~NativeViewGLSurfaceEGL(); |
@@ -77,6 +81,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL { |
EGLSurface surface_; |
bool supports_post_sub_buffer_; |
EGLConfig config_; |
+ bool recreate_on_make_current_; |
scoped_ptr<VSyncProvider> vsync_provider_; |