Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2259)

Unified Diff: content/common/gpu/image_transport_surface_linux.cc

Issue 8764001: Plumb damage rect to browser compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/gfx/compositor/compositor_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_linux.cc
diff --git a/content/common/gpu/image_transport_surface_linux.cc b/content/common/gpu/image_transport_surface_linux.cc
index 10ceae2dca77a8293d7a965747362adb77f1b987..87d56489e8f795e193818b3d6b454656cdfc088e 100644
--- a/content/common/gpu/image_transport_surface_linux.cc
+++ b/content/common/gpu/image_transport_surface_linux.cc
@@ -513,6 +513,11 @@ void GLXImageTransportSurface::OnResize(gfx::Size size) {
Display* dpy = static_cast<Display*>(GetDisplay());
XResizeWindow(dpy, window_, size_.width(), size_.height());
glXWaitX();
+ // Seems necessary to perform a swap after a resize
+ // in order to resize the front and back buffers (Intel driver bug).
+ // This doesn't always happen with scissoring enabled, so do it now.
+ if (gfx::g_GLX_MESA_copy_sub_buffer)
+ gfx::NativeViewGLSurfaceGLX::SwapBuffers();
needs_resize_ = true;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/gfx/compositor/compositor_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698