Index: ui/gl/gl_surface_ozone.cc |
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc |
index 8d9e6ad1c78d3b9daf81df142d1782acc2a89344..3fa5958aa1508f8130ce1de04db367a5ea97a8a4 100644 |
--- a/ui/gl/gl_surface_ozone.cc |
+++ b/ui/gl/gl_surface_ozone.cc |
@@ -31,6 +31,12 @@ class GL_EXPORT GLSurfaceOzoneEGL : public NativeViewGLSurfaceEGL { |
return NativeViewGLSurfaceEGL::Resize(size); |
} |
+ virtual bool SwapBuffers() OVERRIDE { |
+ if (!NativeViewGLSurfaceEGL::SwapBuffers()) |
+ return false; |
+ |
+ return ozone_surface_->OnSwapBuffers(); |
+ } |
private: |
virtual ~GLSurfaceOzoneEGL() { |