Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r178414 - [GTK] Do not resize the redirected XComposite window …
…when not in accelerated compositing mode https://bugs.webkit.org/show_bug.cgi?id=140353 Reviewed by Martin Robinson. We create the redirected XComposite window unconditionally, but with a size of 1x1 to save memory. However, we are always resizing it, so in the end we always end up with a XWindow allocated for the same size of the web view, even for web views that never enter in accelerated compositing mode. * UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewRenderAcceleratedCompositingResults): Resize the RedirectedXCompositeWindow to the current web view size to ensure the sizes match before drawing. (resizeWebKitWebViewBaseFromAllocation): Only resize the RedirectedXCompositeWindow when in accelerated compositing mode. * UIProcess/gtk/RedirectedXCompositeWindow.cpp: (WebKit::RedirectedXCompositeWindow::resize): Return early if the given size is the current size. Canonical link: https://commits.webkit.org/154760.292@webkitgtk/2.6 git-svn-id: https://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-2.6@178502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
0100336
commit bc27ea5
Showing
3 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters