mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/WebGL: Add extensions APIs to WebGLRenderingContextBase
These currently return nothing, as we don't currently support any WebGL extensions.
This commit is contained in:
parent
076c9772a4
commit
aa77c26b60
Notes:
sideshowbarker
2024-07-17 10:15:59 +09:00
Author: https://github.com/Lubrsi
Commit: aa77c26b60
Pull-request: https://github.com/SerenityOS/serenity/pull/14184
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sunverwerth
3 changed files with 28 additions and 0 deletions
|
@ -71,6 +71,28 @@ void WebGLRenderingContextBase::needs_to_present()
|
|||
m_canvas_element->layout_node()->set_needs_display();
|
||||
}
|
||||
|
||||
Optional<Vector<String>> WebGLRenderingContextBase::get_supported_extensions() const
|
||||
{
|
||||
if (m_context_lost)
|
||||
return Optional<Vector<String>> {};
|
||||
|
||||
dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_supported_extensions()");
|
||||
|
||||
// FIXME: We don't currently support any extensions.
|
||||
return Vector<String> {};
|
||||
}
|
||||
|
||||
JS::Object* WebGLRenderingContextBase::get_extension(String const& name) const
|
||||
{
|
||||
if (m_context_lost)
|
||||
return nullptr;
|
||||
|
||||
dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::get_extension(name='{}')", name);
|
||||
|
||||
// FIXME: We don't currently support any extensions.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void WebGLRenderingContextBase::clear(GLbitfield mask)
|
||||
{
|
||||
if (m_context_lost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue