[webkit-changes] [WebKit/WebKit] 04dd36: [GTK][WPE] Add GLDisplay wrapper

Carlos Garcia Campos noreply at github.com
Fri Aug 16 23:48:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 04dd368b15065ab5dad288e2d5043a052a35591e
      https://github.com/WebKit/WebKit/commit/04dd368b15065ab5dad288e2d5043a052a35591e
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/PlatformPlayStation.cmake
    M Source/WebCore/PlatformWin.cmake
    M Source/WebCore/SourcesGTK.txt
    M Source/WebCore/SourcesWPE.txt
    M Source/WebCore/platform/graphics/PlatformDisplay.cpp
    M Source/WebCore/platform/graphics/PlatformDisplay.h
    A Source/WebCore/platform/graphics/egl/GLDisplay.cpp
    A Source/WebCore/platform/graphics/egl/GLDisplay.h
    M Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp
    M Source/WebCore/platform/graphics/gbm/PlatformDisplayGBM.cpp
    M Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp
    M Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp
    M Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h
    M Source/WebCore/platform/graphics/win/PlatformDisplayWin.cpp
    M Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
    M Source/WebCore/platform/graphics/x11/PlatformDisplayX11.h

  Log Message:
  -----------
  [GTK][WPE] Add GLDisplay wrapper
https://bugs.webkit.org/show_bug.cgi?id=278227

Reviewed by Adrian Perez de Castro.

Similar to GLContext but for EGLDisplay. For now it will be used
internally by PlatformDisplay, but the plan is to use it from gtk
specific code in the UI process once we remove the remaining gtk code
from PlatformDisplay.

* Source/WebCore/Headers.cmake:
* Source/WebCore/PlatformPlayStation.cmake:
* Source/WebCore/PlatformWin.cmake:
* Source/WebCore/SourcesGTK.txt:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/graphics/PlatformDisplay.cpp:
(WebCore::PlatformDisplay::PlatformDisplay):
(WebCore::PlatformDisplay::~PlatformDisplay):
(WebCore::PlatformDisplay::eglDisplay const):
(WebCore::PlatformDisplay::eglCheckVersion const):
(WebCore::PlatformDisplay::eglExtensions const):
(WebCore::PlatformDisplay::initializeEGLDisplay):
(WebCore::PlatformDisplay::terminateEGLDisplay):
(WebCore::PlatformDisplay::createEGLImage const):
(WebCore::PlatformDisplay::destroyEGLImage const):
(WebCore::PlatformDisplay::dmabufFormats):
* Source/WebCore/platform/graphics/PlatformDisplay.h:
(WebCore::PlatformDisplay::gtkEGLDisplay):
* Source/WebCore/platform/graphics/egl/GLDisplay.cpp: Added.
(WebCore::GLDisplay::create):
(WebCore::GLDisplay::GLDisplay):
(WebCore::GLDisplay::terminate):
(WebCore::GLDisplay::checkVersion const):
(WebCore::GLDisplay::createImage const):
(WebCore::GLDisplay::destroyImage const):
(WebCore::GLDisplay::dmabufFormats):
* Source/WebCore/platform/graphics/egl/GLDisplay.h: Added.
(WebCore::GLDisplay::eglDisplay const):
(WebCore::GLDisplay::extensions const):
* Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp:
(WebCore::PlatformDisplaySurfaceless::PlatformDisplaySurfaceless):
* Source/WebCore/platform/graphics/gbm/PlatformDisplayGBM.cpp:
(WebCore::PlatformDisplayGBM::PlatformDisplayGBM):
* Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp:
(WebCore::PlatformDisplayLibWPE::PlatformDisplayLibWPE):
(WebCore::PlatformDisplayLibWPE::initializeEGLDisplay):
* Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp:
(WebCore::PlatformDisplayWayland::gtkEGLDisplay):
(WebCore::PlatformDisplayWayland::initializeEGLDisplay):
* Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h:
* Source/WebCore/platform/graphics/win/PlatformDisplayWin.cpp:
(WebCore::PlatformDisplayWin::initializeEGLDisplay):
* Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:
(WebCore::PlatformDisplayX11::gtkEGLDisplay):
(WebCore::PlatformDisplayX11::initializeEGLDisplay):
* Source/WebCore/platform/graphics/x11/PlatformDisplayX11.h:

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



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


More information about the webkit-changes mailing list