| 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 2f2380f8c7b48a33e53dc77408018577d4f72da0..373bc857d48d02593c7663405aa97ddbebb222dc 100644
|
| --- a/ui/gfx/gl/gl_surface_glx.cc
|
| +++ b/ui/gfx/gl/gl_surface_glx.cc
|
| @@ -203,6 +203,17 @@ void* NativeViewGLSurfaceGLX::GetConfig() {
|
| return config_;
|
| }
|
|
|
| +bool NativeViewGLSurfaceGLX::SupportsPostSubBuffer() {
|
| + return g_GLX_MESA_copy_sub_buffer;
|
| +}
|
| +
|
| +bool NativeViewGLSurfaceGLX::PostSubBuffer(
|
| + int x, int y, int width, int height) {
|
| + DCHECK(SupportsPostSubBuffer());
|
| + glXCopySubBufferMESA(g_display, window_, x, y, width, height);
|
| + return true;
|
| +}
|
| +
|
| PbufferGLSurfaceGLX::PbufferGLSurfaceGLX(const gfx::Size& size)
|
| : size_(size),
|
| config_(NULL),
|
|
|