Bug 162413 - [GTK] Improve performance when resizing a window with multiple web views in X11
Summary: [GTK] Improve performance when resizing a window with multiple web views in X11
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2016-09-22 10:10 PDT by Carlos Garcia Campos
Modified: 2016-09-23 01:05 PDT (History)
1 user (show)

See Also:


Attachments
Patch (4.35 KB, patch)
2016-09-22 10:13 PDT, Carlos Garcia Campos
mcatanzaro: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2016-09-22 10:10:35 PDT
Resizing a window with a single way view performs good enough, but when adding more tabs, the performance decreases a lot. This is because resize is a sync operation, and the UI process waits for the web process to have a new update for the new size, while still draws the previous frame. This is needed for the visible web view, to avoid flickering and artifacts while resizing, but for all other hidden web views, we don't really need to block the UI process. This doesn't happen in Wayland, because in Wayland we never block the UI process while waiting for web process update after a resize.
Comment 1 Carlos Garcia Campos 2016-09-22 10:13:47 PDT
Created attachment 289569 [details]
Patch
Comment 2 Michael Catanzaro 2016-09-22 13:11:40 PDT
Comment on attachment 289569 [details]
Patch

Works for me.
Comment 3 Carlos Garcia Campos 2016-09-23 01:05:24 PDT
Committed r206294: <http://trac.webkit.org/changeset/206294>