Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1f77cbefe28bcbafc1fa965743f37a7d5c9d7873
https://github.com/WebKit/WebKit/commit/1f77cbefe28bcbafc1fa965743f37a7d5c9d7873
Author: Carlos Garcia Campos <[email protected]>
Date: 2026-05-16 (Sat, 16 May 2026)
Changed paths:
M Source/WebCore/platform/graphics/PlatformDisplay.h
M Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp
M
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h
M
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphicsGLib.cpp
M
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp
Log Message:
-----------
[WPE] Add support for using skia compositor with the legacy API
https://bugs.webkit.org/show_bug.cgi?id=314941
Reviewed by Nikolas Zimmermann.
For the legacy API we need to create the GrContext for the compositor GL
context that uses a native surface. So this patch adds
PlatformDisplay::setSkiaGLContextForCurrentThread() to able to set the
thread GrContext instead of being automatically created with an
offscreen context. Then we need to create a SkSurface wrapping the
default frame buffer of the gl context in
AcceleratedSurface::RenderTargetWPEBackend.
* Source/WebCore/platform/graphics/PlatformDisplay.h:
* Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp:
(WebCore::SkiaGLContext::create):
(WebCore::SkiaGLContext::SkiaGLContext):
(WebCore::PlatformDisplay::setSkiaGLContextForCurrentThread):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::RenderTargetWPEBackend::RenderTargetWPEBackend):
(WebKit::AcceleratedSurface::RenderTargetWPEBackend::resize):
(WebKit::AcceleratedSurface::RenderTargetWPEBackend::willRenderFrame):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/AcceleratedSurface.h:
*
Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphicsGLib.cpp:
(WebKit::DrawingAreaCoordinatedGraphics::updatePreferences):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/ThreadedCompositor.cpp:
(WebKit::m_renderTimer):
(WebKit::ThreadedCompositor::paintToSkiaCanvas):
(WebKit::ThreadedCompositor::renderLayerTree):
Canonical link: https://commits.webkit.org/313355@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications