mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00: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:
parent
cda2330658
commit
2107142cdb
Notes:
github-actions[bot]
2026-01-10 12:23:06 +00:00
Author: https://github.com/cqundefine
Commit: 2107142cdb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6992
Reviewed-by: https://github.com/kalenikaliaksandr ✅
42 changed files with 146 additions and 149 deletions
|
|
@ -13,12 +13,12 @@ namespace Web::WebGL {
|
|||
|
||||
GC_DEFINE_ALLOCATOR(WebGLVertexArrayObject);
|
||||
|
||||
GC::Ref<WebGLVertexArrayObject> WebGLVertexArrayObject::create(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
|
||||
GC::Ref<WebGLVertexArrayObject> WebGLVertexArrayObject::create(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context, GLuint handle)
|
||||
{
|
||||
return realm.create<WebGLVertexArrayObject>(realm, context, handle);
|
||||
}
|
||||
|
||||
WebGLVertexArrayObject::WebGLVertexArrayObject(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
|
||||
WebGLVertexArrayObject::WebGLVertexArrayObject(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context, GLuint handle)
|
||||
: WebGLObject(realm, context, handle)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue