mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb/WebGL: Add WebGLRenderingContextBase.isContextLost()
This commit is contained in:
parent
39a212b54f
commit
528c7bea03
Notes:
sideshowbarker
2024-07-17 10:15:51 +09:00
Author: https://github.com/Lubrsi
Commit: 528c7bea03
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 10 additions and 0 deletions
|
@ -71,6 +71,12 @@ void WebGLRenderingContextBase::needs_to_present()
|
|||
m_canvas_element->layout_node()->set_needs_display();
|
||||
}
|
||||
|
||||
bool WebGLRenderingContextBase::is_context_lost() const
|
||||
{
|
||||
dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContextBase::is_context_lost()");
|
||||
return m_context_lost;
|
||||
}
|
||||
|
||||
Optional<Vector<String>> WebGLRenderingContextBase::get_supported_extensions() const
|
||||
{
|
||||
if (m_context_lost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue