mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb/WebGL: Set prototypes of the WebGL objects
This commit is contained in:
committed by
Alexander Kalenik
parent
2e1702a14b
commit
a14cd5dab8
Notes:
github-actions[bot]
2024-12-05 20:42:31 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/a14cd5dab8a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/shannonbooth
@@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
* Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@@ -17,12 +18,14 @@ class WebGLProgram final : public WebGLObject {
|
||||
GC_DECLARE_ALLOCATOR(WebGLProgram);
|
||||
|
||||
public:
|
||||
static GC::Ptr<WebGLProgram> create(JS::Realm& realm, GLuint handle);
|
||||
static GC::Ref<WebGLProgram> create(JS::Realm& realm, GLuint handle);
|
||||
|
||||
virtual ~WebGLProgram();
|
||||
|
||||
protected:
|
||||
explicit WebGLProgram(JS::Realm&, GLuint handle);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user