LibWeb: Split off WebGLRenderingContextImpl to Impl and Overloads

This is more like what the IDL files specify with two different mixins,
but the inheritance structure here is slightly different for easier
maintenance. This will also allow the WebGL2 Impl to inherit from the
WebGL1 Impl as WebGL versions don't share the functions defined in the
Overloads interfaces.
This commit is contained in:
Undefine 2025-11-03 16:13:03 +01:00 committed by Alexander Kalenik
parent 7f0f1c3266
commit c70886ab1f
Notes: github-actions[bot] 2025-11-05 01:21:09 +00:00
7 changed files with 379 additions and 324 deletions

View file

@ -12,12 +12,12 @@
#include <LibWeb/Forward.h>
#include <LibWeb/WebGL/Types.h>
#include <LibWeb/WebGL/WebGLContextAttributes.h>
#include <LibWeb/WebGL/WebGLRenderingContextImpl.h>
#include <LibWeb/WebGL/WebGLRenderingContextOverloads.h>
namespace Web::WebGL {
class WebGLRenderingContext final : public Bindings::PlatformObject
, public WebGLRenderingContextImpl {
, public WebGLRenderingContextOverloads {
WEB_PLATFORM_OBJECT(WebGLRenderingContext, Bindings::PlatformObject);
GC_DECLARE_ALLOCATOR(WebGLRenderingContext);