Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cbcb2837f082adb93d0cfb9c5775b07e86ad2998
      
https://github.com/WebKit/WebKit/commit/cbcb2837f082adb93d0cfb9c5775b07e86ad2998
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/egl/GLContext.cpp
    M Source/WebKit/glib/environment-variables.md.in

  Log Message:
  -----------
  [EGL] Add backtrace on errors when GLContext logging is enabled
https://bugs.webkit.org/show_bug.cgi?id=307055

Reviewed by Carlos Garcia Campos.

Debugging of GL contexts was added in 306778@main but given the limited
information provided by some OpenGL implementations to the logging
callback function may be insufficient to pinpoint the source of the
reported issues. Add a backtrace to reported errors which, while it is
not the most convenient aid, helps when paired with builds that include
symbols.

Note that OpenGL implementations are not required to invoke the debug
logging callback as soon as an issue is found or in the same execution
context, which means using the GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR option
is needed to obtain relevant backtraces. Therefore, backtraces are only
added when the log channel is set to the debug log level, i.e. with
WEBKIT_DEBUG='GLContext=debug'.

* Source/WebCore/platform/graphics/egl/GLContext.cpp:
(WebCore::logGLDebugMessage): Append a backtrace for errors when the
log channel is enabled at the debug level.
(WebCore::GLContext::enableDebugLogging): Switch to synchronous debug
logging when the log channel is at the debug level.
* Source/WebKit/glib/environment-variables.md.in: Document the added
behaviour.

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



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

Reply via email to