Branch: refs/heads/webkitglib/2.52
  Home:   https://github.com/WebKit/WebKit
  Commit: 42fb030f460aa3b4eae180a6381056d71c5014ed
      
https://github.com/WebKit/WebKit/commit/42fb030f460aa3b4eae180a6381056d71c5014ed
  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:
  -----------
  Cherry-pick 306008@main (b195011055b1). 
https://bugs.webkit.org/show_bug.cgi?id=305877

    [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

Canonical link: https://commits.webkit.org/305877.4@webkitglib/2.52



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to