mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb/WebGL+Meta: Stub getSupportedExtensions() and getExtension()
This commit is contained in:
parent
64fec8b2de
commit
7e78d7d332
Notes:
github-actions[bot]
2024-12-03 22:36:38 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 7e78d7d332
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2688
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 20 additions and 2 deletions
|
@ -150,4 +150,14 @@ void WebGLRenderingContext::allocate_painting_surface_if_needed()
|
||||||
context().allocate_painting_surface_if_needed();
|
context().allocate_painting_surface_if_needed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Optional<Vector<String>> WebGLRenderingContext::get_supported_extensions() const
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
JS::Object* WebGLRenderingContext::get_extension(String const&)
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,9 @@ public:
|
||||||
void set_size(Gfx::IntSize const&);
|
void set_size(Gfx::IntSize const&);
|
||||||
void reset_to_default_state();
|
void reset_to_default_state();
|
||||||
|
|
||||||
|
Optional<Vector<String>> get_supported_extensions() const;
|
||||||
|
JS::Object* get_extension(String const& name);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void initialize(JS::Realm&) override;
|
virtual void initialize(JS::Realm&) override;
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@ interface mixin WebGLRenderingContextBase {
|
||||||
[FIXME] WebGLContextAttributes? getContextAttributes();
|
[FIXME] WebGLContextAttributes? getContextAttributes();
|
||||||
[FIXME] boolean isContextLost();
|
[FIXME] boolean isContextLost();
|
||||||
|
|
||||||
[FIXME] sequence<DOMString>? getSupportedExtensions();
|
sequence<DOMString>? getSupportedExtensions();
|
||||||
[FIXME] object? getExtension(DOMString name);
|
object? getExtension(DOMString name);
|
||||||
|
|
||||||
undefined activeTexture(GLenum texture);
|
undefined activeTexture(GLenum texture);
|
||||||
undefined attachShader(WebGLProgram program, WebGLShader shader);
|
undefined attachShader(WebGLProgram program, WebGLShader shader);
|
||||||
|
|
|
@ -171,6 +171,11 @@ public:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (function.name == "getSupportedExtensions"sv || function.name == "getExtension"sv) {
|
||||||
|
// Implemented in WebGLRenderingContext
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
StringBuilder function_declaration;
|
StringBuilder function_declaration;
|
||||||
|
|
||||||
StringBuilder function_parameters;
|
StringBuilder function_parameters;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue