Psychpsyo
f4a86c8466
LibWeb: Implement enough of WebXR for xrSession_end test to pass
2026-04-03 13:14:33 +02:00
Psychpsyo
6ae9f21845
LibWeb: Implement makeXRCompatible() enough to work
2026-04-03 13:14:33 +02:00
Undefine
3101565f05
LibWeb: Unify WebGL handling code in WebGLRenderingContextBase
2026-03-11 20:19:45 +01:00
Aliaksandr Kalenik
004e5f851e
LibWeb: Use ExternalContentSource for canvas painting
...
present() now snapshots the PaintingSurface into an ImmutableBitmap
and publishes it to the ExternalContentSource, so the rendering thread
never touches the live GPU surface — eliminating the data race
described in the ExternalContentSource commit (problem 1).
Canvas elements are registered with Page and presented once per frame
from the event loop, rather than on every individual draw call in
CRC2D::did_draw(). A dirty flag on HTMLCanvasElement ensures the
snapshot is only taken when content has actually changed, and makes
the present() call in CanvasPaintable::paint() a no-op when the
surface has already been snapshotted for the current frame.
2026-02-20 18:41:33 +01:00
Undefine
2107142cdb
LibWeb: Make WebGLRenderingContextBase derive from PlatformObject
...
This resolves a bunch of FIXMEs and removes a bunch sketchy raw
pointers and hacks.
2026-01-10 13:22:17 +01:00
Undefine
cda2330658
LibWeb: Make a bunch of WebGL functions protected instead of public
...
Those do not need to accessible outside of WebGL code as they are just
helper functions.
2026-01-10 13:22:17 +01:00
Undefine
5caead88fc
LibWeb: Allow WebGL getParameter when WEBGL_draw_buffers is enabled
...
When that extensions is enabled we should allow getting the parameter
value of MAX_COLOR_ATTACHMENTS_WEBGL.
2025-11-06 19:02:36 +01:00
Undefine
d4ac9fc5c6
LibWeb: Implement WebGL extension OES_standard_derivatives
2025-11-06 19:02:36 +01:00
Undefine
e7aeb71d29
LibWeb: Move WebGL error variable to WebGLRenderingContextBase
...
Implementations in both WebGL1 and WebGL2 were the same and most
probably will stay the same.
2025-11-06 19:02:36 +01:00
Undefine
6c115171da
LibWeb: Split off WebGL2RenderingContextImpl to Impl and Overloads
...
This mostly analogous to the previous commit that does the same with
the WebGL1 Impl file.
2025-11-05 02:19:32 +01:00
Undefine
a2c659ee6b
LibWeb: Implement WebGL getVertexAttrib
...
This also implements all allowed parameter name values for this
function.
2025-11-01 16:53:39 -07:00
Undefine
932a3328a3
LibWeb: Implement WebGL getParameter(COMPRESSED_TEXTURE_FORMATS)
2025-11-01 16:53:39 -07:00
Luke Wilde
b15f4424f9
LibWeb/WebGL: Implement the EXT_texture_filter_anisotropic extension
2025-10-20 15:33:33 +02:00
Luke Wilde
d08915a0cd
LibWeb/WebGL: Implement the WEBGL_compressed_texture_s3tc_srgb extension
2025-10-20 15:33:33 +02:00
Luke Wilde
ddf60ebe9e
LibWeb/WebGL2: Implement the EXT_texture_norm16 extension
2025-10-20 15:33:33 +02:00
Luke Wilde
93d3ebfd59
LibWeb/WebGL2: Implement the EXT_render_snorm extension
2025-10-20 15:33:33 +02:00
Luke Wilde
9ca25eed7f
LibWeb/WebGL2: Implement EXT_color_buffer_float extension
...
This makes the Point Of Sale model on https://www.shopify.com/ have
colour instead of being completely black.
2025-03-06 12:59:28 +01:00
Luke Wilde
958938655d
LibWeb/WebGL: Implement WEBGL_compressed_texture_s3tc extension
2025-02-09 01:00:51 +01:00
Aliaksandr Kalenik
cf730870c5
LibWeb: Save WebGL context pointer in WebGLObject
...
This way we could be sure that context object won't be deallocated
before any of the objects that belong to it.
Having a context pointer is also going to be used in upcoming changes
to generate an INVALID_OPERATION error if an object does not belong to
the context it's being used in.
2024-12-19 13:38:43 +01:00
Aliaksandr Kalenik
145bb0f849
LibWeb/WebGL: Implement getSupportedExtensions()
2024-12-13 09:19:10 +01:00
Aliaksandr Kalenik
c199be061a
LibWeb/WebGL: Implement drawingBufferWidth and drawingBufferHeight
2024-12-13 09:19:10 +01:00
Andrew Kaster
56d45282ea
LibWeb/WebGL: Don't crash on unknown getParameter on the context
...
And allow the implementation to set the error code.
2024-12-06 15:35:36 +01:00
Andrew Kaster
af536e1192
LibWeb: Add stubbed-out WebGL2RenderingContext
2024-12-06 15:35:36 +01:00