| Index: ui/gfx/gl/gl_surface_glx.cc
|
| diff --git a/ui/gfx/gl/gl_surface_glx.cc b/ui/gfx/gl/gl_surface_glx.cc
|
| index 09c4507b222ef754c08869146598d1e3e94c5d83..04eebd7993e951bdbe5fd643083cc030089f36d6 100644
|
| --- a/ui/gfx/gl/gl_surface_glx.cc
|
| +++ b/ui/gfx/gl/gl_surface_glx.cc
|
| @@ -124,6 +124,15 @@ bool NativeViewGLSurfaceGLX::Initialize() {
|
| void NativeViewGLSurfaceGLX::Destroy() {
|
| }
|
|
|
| +bool NativeViewGLSurfaceGLX::Resize(const gfx::Size& size) {
|
| + // On Intel drivers, the frame buffer won't be resize until the next swap. If
|
| + // we only do PostSubBuffer, then we're stuck in the old size. Force a swap
|
| + // now.
|
| + if (gfx::g_GLX_MESA_copy_sub_buffer)
|
| + SwapBuffers();
|
| + return true;
|
| +}
|
| +
|
| bool NativeViewGLSurfaceGLX::IsOffscreen() {
|
| return false;
|
| }
|
|
|