ladybird/Meta/Generators
Aliaksandr Kalenik 5b856595b3 Meta+LibWeb/WebGL: Route all GL calls through generated GLFunctions
LibWeb's WebGL implementation currently reaches ANGLE by calling glFoo()
throughout the WebGL context and extension code. That ties the WebGL
spec layer to the concrete GL executor. A future backend that records
operations, sends them to another process, or executes them from the
Compositor would otherwise need to duplicate the WebGL logic or edit
every call site again.

Introduce GLFunctions as an explicit boundary between WebGL semantics
and GL execution. GLFunctions.json lists the GL entry points used by the
implementation, and the generator emits one forwarding method per entry
point. OpenGLContext implements those methods today, so the current
in-process ANGLE path keeps the same behavior while all callers go
through a single replaceable interface.

That boundary is needed before canvas/WebGL rendering can move to the
Compositor: the WebGL context code can keep doing validation, state
tracking, and spec-visible error handling in LibWeb, while a later
implementation can record the same GL calls and replay them where the
canvas surface is produced. The JSON source also gives the recorder and
replayer one shared description of argument shapes, avoiding two
hand-written views of the GL API drifting apart.
2026-06-13 01:58:43 +02:00
..
libweb_bindings LibWeb/Bindings: Don't install inherited members on global objects 2026-06-11 21:35:56 +02:00
embed_as_string.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_dom_tree.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_encoding_indexes.py LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00
generate_hsts_preload_data.py Meta: Generate HSTS preload data from Chromium's static list 2026-05-29 22:23:33 +02:00
generate_ipc_definitions.py Meta: Fix IPC generated try helper response unwrapping 2026-05-24 03:35:07 +01:00
generate_libjs_bytecode_def_derived.py LibJS: Cache dynamic environment coordinates 2026-05-19 15:54:23 +02:00
generate_libwasm_spec_test.py Meta+Tests: Fix test generation for extern refs and module definition 2026-06-10 14:10:57 +02:00
generate_libwasm_spec_test.sh Meta: Move python code generators to a subdirectory 2026-04-23 07:31:19 -04:00
generate_libweb_aria_roles.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_libweb_bindings.py LibWeb/Bindings: Port IDL bindings generator to Python 2026-06-08 01:11:40 +02:00
generate_libweb_css_descriptors.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_libweb_css_enums.py Meta: Mark generated CSS enum to_string() methods as WEB_API 2026-05-27 17:47:50 +01:00
generate_libweb_css_environment_variables.py Meta: Replace GenerateCSSEnvironmentVariable with a python generator 2026-04-25 12:02:49 +02:00
generate_libweb_css_keyword.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_libweb_css_math_functions.py Meta: Replace GenerateCSSMathFunctions with a python generator 2026-04-25 12:02:49 +02:00
generate_libweb_css_media_feature_id.py LibWeb/CSS: Extract base class from MediaFeature 2026-05-20 13:00:50 +01:00
generate_libweb_css_numeric_factory_methods.py Meta: Make CSS dimension loading reusable 2026-05-13 11:00:07 +01:00
generate_libweb_css_property_id.py Meta: Enable exit-time destructor warnings for libraries 2026-06-04 19:20:49 +02:00
generate_libweb_css_pseudo_class.py Meta: Replace GenerateCSSPseudoClass with a python generator 2026-04-25 12:02:49 +02:00
generate_libweb_css_pseudo_element.py LibWeb: Support CSS transitions and animations on all pseudo-elements 2026-05-22 10:07:29 +01:00
generate_libweb_css_style_properties.py LibWeb: Compact generated CSSStyleProperties bindings 2026-06-09 11:48:02 +02:00
generate_libweb_css_transform_functions.py Meta: Replace GenerateCSSTransformFunctions with a python generator 2026-04-25 12:02:49 +02:00
generate_libweb_css_units.py LibWeb: Resolve container-relative length units 2026-06-01 08:27:17 +01:00
generate_libweb_css_value_types_parsing.py LibWeb: Generate CSS <paint> parsing 2026-05-13 11:26:20 +01:00
generate_libweb_html_named_character_references.py Meta: Replace GenerateNamedCharacterReferences with a python generator 2026-04-29 17:28:09 +01:00
generate_libweb_webgl_functions.py Meta+LibWeb/WebGL: Route all GL calls through generated GLFunctions 2026-06-13 01:58:43 +02:00
libjs_bytecode_def.py Meta: Simplify tracking the current op in libjs_bytecode_def.py 2026-05-13 08:13:51 -05:00
libweb_webgl.py Meta+LibWeb/WebGL: Route all GL calls through generated GLFunctions 2026-06-13 01:58:43 +02:00
wasm_unimplemented_tests.txt Meta: Move python code generators to a subdirectory 2026-04-23 07:31:19 -04:00