Bug 257475 - [GTK] Use three buffers for DMA-BUF renderer
Summary: [GTK] Use three buffers for DMA-BUF renderer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Garcia Campos
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2023-05-30 03:10 PDT by Carlos Garcia Campos
Modified: 2023-06-15 04:02 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2023-05-30 03:10:47 PDT
Two buffers is not enough, because we might be rendering in the UI process with the buffer that is being used by the web process. The first time we render a frame in the UI process we notify the web process that the buffer has been painted and web process does a swap and starts rendering the next frame. If there's a web view redraw before the next frame message is received in the UI process we would be using the current web process back buffer to repaint.
Comment 1 Carlos Garcia Campos 2023-05-30 03:14:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14474
Comment 2 EWS 2023-06-15 04:01:59 PDT
Committed 265192@main (0e48ee99a1fc): <https://commits.webkit.org/265192@main>

Reviewed commits have been landed. Closing PR #14474 and removing active labels.