Index: ui/gl/gl_surface_egl.cc |
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc |
index 3b81daf83285a476768cb724f7facde9bbca8950..ae22a28419c53ef447145b2dc161cb699de5010c 100644 |
--- a/ui/gl/gl_surface_egl.cc |
+++ b/ui/gl/gl_surface_egl.cc |
@@ -411,6 +411,15 @@ bool NativeViewGLSurfaceEGL::Resize(const gfx::Size& size) { |
return true; |
} |
+bool NativeViewGLSurfaceEGL::Recreate() { |
+ Destroy(); |
+ if (!Initialize()) { |
+ LOG(ERROR) << "Failed to create surface."; |
+ return false; |
+ } |
+ return true; |
+} |
+ |
EGLSurface NativeViewGLSurfaceEGL::GetHandle() { |
return surface_; |
} |