mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/WebGL: Add WebGLRenderingContextBase.canvas
This commit is contained in:
parent
0ec8a19a34
commit
50642f85ac
Notes:
sideshowbarker
2024-07-17 09:55:57 +09:00
Author: https://github.com/Lubrsi
Commit: 50642f85ac
Pull-request: https://github.com/SerenityOS/serenity/pull/14341
3 changed files with 11 additions and 0 deletions
|
@ -77,6 +77,11 @@ HTML::HTMLCanvasElement const& WebGLRenderingContextBase::canvas_element() const
|
|||
return ref_count_target();
|
||||
}
|
||||
|
||||
NonnullRefPtr<HTML::HTMLCanvasElement> WebGLRenderingContextBase::canvas_for_binding() const
|
||||
{
|
||||
return canvas_element();
|
||||
}
|
||||
|
||||
void WebGLRenderingContextBase::needs_to_present()
|
||||
{
|
||||
m_should_present = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue