mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Make WebGLRenderingContextBase derive from PlatformObject
This resolves a bunch of FIXMEs and removes a bunch sketchy raw pointers and hacks.
This commit is contained in:
committed by
Alexander Kalenik
parent
cda2330658
commit
2107142cdb
Notes:
github-actions[bot]
2026-01-10 12:23:06 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/2107142cdbf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6992 Reviewed-by: https://github.com/kalenikaliaksandr ✅
@@ -16,12 +16,12 @@ class WebGLVertexArrayObject : public WebGLObject {
|
||||
GC_DECLARE_ALLOCATOR(WebGLVertexArrayObject);
|
||||
|
||||
public:
|
||||
static GC::Ref<WebGLVertexArrayObject> create(JS::Realm& realm, WebGLRenderingContextBase&, GLuint handle);
|
||||
static GC::Ref<WebGLVertexArrayObject> create(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase>, GLuint handle);
|
||||
|
||||
virtual ~WebGLVertexArrayObject() override;
|
||||
|
||||
protected:
|
||||
explicit WebGLVertexArrayObject(JS::Realm&, WebGLRenderingContextBase&, GLuint handle);
|
||||
explicit WebGLVertexArrayObject(JS::Realm&, GC::Ref<WebGLRenderingContextBase>, GLuint handle);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user