Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e17ffe7b5bd3105bdd72617c07655ee4f2d0fdd4
      
https://github.com/WebKit/WebKit/commit/e17ffe7b5bd3105bdd72617c07655ee4f2d0fdd4
  Author: Carlos Garcia Campos <cgar...@igalia.com>
  Date:   2024-10-11 (Fri, 11 Oct 2024)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/AcceleratedSurface.cpp
    M Source/WebKit/WebProcess/WebPage/AcceleratedSurface.h
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h
    M 
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.h
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h
    M Source/WebKit/WebProcess/WebPage/libwpe/AcceleratedSurfaceLibWPE.cpp
    M Source/WebKit/WebProcess/WebPage/libwpe/AcceleratedSurfaceLibWPE.h

  Log Message:
  -----------
  [GTK][WPE] Move AcceleratedSurface handling from LayerTreeHost to 
ThreadedCompositor
https://bugs.webkit.org/show_bug.cgi?id=281049

Reviewed by Miguel Gomez.

The Threaded compositor has a client that is implemented by the
LayerTreeHost and is mainly used to pass messages from the
ThreadedCompositor to the AcceleratedSurface. The ThreadedCompositor
could just create the surface and call it directly instead of going
through the LayerTreeHost.

* Source/WebKit/WebProcess/WebPage/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::create):
(WebKit::AcceleratedSurface::AcceleratedSurface):
(WebKit::AcceleratedSurface::frameComplete const):
* Source/WebKit/WebProcess/WebPage/AcceleratedSurface.h:
(WebKit::AcceleratedSurface::initialize): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::LayerTreeHost):
(WebKit::LayerTreeHost::~LayerTreeHost):
(WebKit::LayerTreeHost::sizeDidChange):
(WebKit::LayerTreeHost::pauseRendering):
(WebKit::LayerTreeHost::resumeRendering):
(WebKit::LayerTreeHost::deviceOrPageScaleFactorChanged):
(WebKit::LayerTreeHost::backgroundColorDidChange):
(WebKit::LayerTreeHost::commitSceneState):
(WebKit::LayerTreeHost::preferredBufferFormatsDidChange):
(WebKit::LayerTreeHost::frameComplete): Deleted.
(WebKit::LayerTreeHost::nativeSurfaceHandleForCompositing): Deleted.
(WebKit::LayerTreeHost::didCreateGLContext): Deleted.
(WebKit::LayerTreeHost::willDestroyGLContext): Deleted.
(WebKit::LayerTreeHost::didDestroyGLContext): Deleted.
(WebKit::LayerTreeHost::resize): Deleted.
(WebKit::LayerTreeHost::willRenderFrame): Deleted.
(WebKit::LayerTreeHost::clearIfNeeded): Deleted.
(WebKit::LayerTreeHost::didRenderFrame): Deleted.
(WebKit::LayerTreeHost::didRenderFrameTimerFired): Deleted.
(WebKit::LayerTreeHost::displayDidRefresh): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h:
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::create):
(WebKit::ThreadedCompositor::ThreadedCompositor):
(WebKit::ThreadedCompositor::surfaceID const):
(WebKit::ThreadedCompositor::invalidate):
(WebKit::ThreadedCompositor::suspend):
(WebKit::ThreadedCompositor::resume):
(WebKit::ThreadedCompositor::setScrollPosition):
(WebKit::ThreadedCompositor::setViewportSize):
(WebKit::ThreadedCompositor::backgroundColorDidChange):
(WebKit::ThreadedCompositor::preferredBufferFormatsDidChange):
(WebKit::ThreadedCompositor::renderLayerTree):
(WebKit::ThreadedCompositor::requestComposition):
(WebKit::ThreadedCompositor::frameComplete):
(WebKit::ThreadedCompositor::displayUpdateFired):
(WebKit::ThreadedCompositor::sceneUpdateFinished):
(WebKit::ThreadedCompositor::~ThreadedCompositor): Deleted.
(WebKit::ThreadedCompositor::createGLContext): Deleted.
(WebKit::ThreadedCompositor::updateSceneState): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.h:
(WebKit::ThreadedCompositor::compositingRunLoop const): Deleted.
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp:
(WebKit::AcceleratedSurfaceDMABuf::create):
(WebKit::AcceleratedSurfaceDMABuf::AcceleratedSurfaceDMABuf):
(WebKit::AcceleratedSurfaceDMABuf::frameDone):
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h:
* Source/WebKit/WebProcess/WebPage/libwpe/AcceleratedSurfaceLibWPE.cpp:
(WebKit::AcceleratedSurfaceLibWPE::create):
(WebKit::AcceleratedSurfaceLibWPE::AcceleratedSurfaceLibWPE):
(WebKit::AcceleratedSurfaceLibWPE::finalize):
(WebKit::AcceleratedSurfaceLibWPE::window const):
(WebKit::AcceleratedSurfaceLibWPE::initialize): Deleted.
* Source/WebKit/WebProcess/WebPage/libwpe/AcceleratedSurfaceLibWPE.h:

Canonical link: https://commits.webkit.org/285007@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to