Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b195011055b14ddb0ced1b8765bf521f26616fa2
https://github.com/WebKit/WebKit/commit/b195011055b14ddb0ced1b8765bf521f26616fa2
Author: Adrian Perez de Castro <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebKit/UIProcess/glib/AcceleratedBackingStore.messages.in
M Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp
M Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.h
M Source/WebKit/WPEPlatform/wpe/WPEView.cpp
M Source/WebKit/WPEPlatform/wpe/WPEView.h
M
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h
Log Message:
-----------
[WPEPlatform] Provide a way to notify of changes in buffers used to render a
WPEView contents
https://bugs.webkit.org/show_bug.cgi?id=305877
Reviewed by Carlos Garcia Campos.
Add a new WPEView.buffers_changed virtual function (and a corresponding
signal) that gets invoked when the graphics buffers used to render the
contents of the view have changed. This may be used by platform
implementation to e.g. perform setup in advance, before rendered
contents are provided in those buffers.
While at it, always create at least two buffers initially, because in
most situations one buffer will be used for rendering while the other
is being displayed. This way the initial configuration can be always
reported as having two buffers, instead of invoking the virtual function
twice in quick succession right after the view is created.
* Source/WebKit/UIProcess/glib/AcceleratedBackingStore.messages.in:
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.cpp:
(WebKit::AcceleratedBackingStore::didChangeBufferConfiguration):
(WebKit::AcceleratedBackingStore::notifyBufferConfigurationIfNeeded):
(WebKit::AcceleratedBackingStore::didCreateDMABufBuffer):
(WebKit::AcceleratedBackingStore::didCreateSHMBuffer):
(WebKit::AcceleratedBackingStore::didCreateAndroidBuffer):
(WebKit::AcceleratedBackingStore::didDestroyBuffer):
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStore.h:
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_class_init):
(wpe_view_buffers_changed):
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::SwapChain::nextTarget):
(WebKit::AcceleratedSurface::SwapChain::reset):
(WebKit::AcceleratedSurface::SwapChain::releaseUnusedBuffers):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h:
Canonical link: https://commits.webkit.org/306008@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications