[webkit-changes] [WebKit/WebKit] c4b3e2: [Skia] Check if glFence is available before using it

Carlos Garcia Campos noreply at github.com
Thu Mar 21 08:11:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c4b3e26f6881ae3d97a0ac8f1cb09a105cd95522
      https://github.com/WebKit/WebKit/commit/c4b3e26f6881ae3d97a0ac8f1cb09a105cd95522
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/PlatformPlayStation.cmake
    M Source/WebCore/SourcesGTK.txt
    M Source/WebCore/SourcesWPE.txt
    M Source/WebCore/platform/graphics/egl/GLContext.cpp
    M Source/WebCore/platform/graphics/egl/GLContext.h
    A Source/WebCore/platform/graphics/egl/GLFence.cpp
    A Source/WebCore/platform/graphics/egl/GLFence.h
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.h

  Log Message:
  -----------
  [Skia] Check if glFence is available before using it
https://bugs.webkit.org/show_bug.cgi?id=271376

Reviewed by Miguel Gomez.

If not available we need to call GrDirectContext::submit() with
GrSyncCpu=kYes. This patch adds a helper class GLFence to wrap it, that
can be extended in the future to support nvidia fences if needed too.

* Source/WebCore/Headers.cmake:
* Source/WebCore/PlatformPlayStation.cmake:
* Source/WebCore/SourcesGTK.txt:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/graphics/egl/GLContext.cpp:
(WebCore::GLContext::glExtensions const):
* Source/WebCore/platform/graphics/egl/GLContext.h:
* Source/WebCore/platform/graphics/egl/GLFence.cpp: Added.
(WebCore::GLFence::create):
(WebCore::GLFence::GLFence):
(WebCore::GLFence::~GLFence):
(WebCore::GLFence::wait):
* Source/WebCore/platform/graphics/egl/GLFence.h: Added.
* Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:
(Nicosia::AcceleratedBuffer::beginPainting):
(Nicosia::AcceleratedBuffer::completePainting):
(Nicosia::AcceleratedBuffer::waitUntilPaintingComplete):
(Nicosia::AcceleratedBuffer::~AcceleratedBuffer): Deleted.
* Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.h:

Canonical link: https://commits.webkit.org/276463@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