[webkit-changes] [WebKit/WebKit] 83c5e9: [Skia] Create the fence after flush and submit

Carlos Garcia Campos noreply at github.com
Tue Apr 23 03:29:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 83c5e98d79948e06e2644c4ac2d0f81efdda5c63
      https://github.com/WebKit/WebKit/commit/83c5e98d79948e06e2644c4ac2d0f81efdda5c63
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/egl/GLFence.cpp
    M Source/WebCore/platform/graphics/egl/GLFence.h
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp

  Log Message:
  -----------
  [Skia] Create the fence after flush and submit
https://bugs.webkit.org/show_bug.cgi?id=273115

Reviewed by Miguel Gomez.

There might still be glitches because we create the GLFence before the
submit. Expose isGLFenceSyncSupported as static function
GLFence::isSupported() and use it to decide whether to sync cpu or not
in flushAndSubmit call. Also make the glFlush() in GLFence::create()
optional.

* Source/WebCore/platform/graphics/egl/GLFence.cpp:
(WebCore::GLFence::isSupported):
(WebCore::GLFence::create):
(WebCore::isGLFenceSyncSupported): Deleted.
* Source/WebCore/platform/graphics/egl/GLFence.h:
* Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp:
(Nicosia::AcceleratedBuffer::completePainting):

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