Index: content/browser/renderer_host/render_widget_host_view_gtk.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc |
index 9c05bca69e176e9abf7d9349c8192c587a3fb51b..001fac841e6bd77ae956c22e4725bbf8b9753693 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc |
@@ -1294,6 +1294,16 @@ gfx::GLSurfaceHandle RenderWidgetHostViewGtk::GetCompositingSurface() { |
return gfx::GLSurfaceHandle(compositing_surface_, gfx::NATIVE_TRANSPORT); |
} |
+void RenderWidgetHostViewGtk::ResizeCompositingSurface(const gfx::Size& size) { |
+ GtkWidget* widget = view_.get(); |
+ GdkWindow* window = gtk_widget_get_window(widget); |
+ if (window) { |
+ Display* display = GDK_WINDOW_XDISPLAY(window); |
+ gdk_window_resize(window, size.width(), size.height()); |
+ XSync(display, False); |
+ } |
+} |
+ |
bool RenderWidgetHostViewGtk::LockMouse() { |
if (mouse_locked_) |
return true; |