1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb/WebGL: Add WebGLRenderingContextBase.canvas

This commit is contained in:
Luke Wilde 2022-06-19 20:11:10 +01:00 committed by Linus Groh
parent 0ec8a19a34
commit 50642f85ac
3 changed files with 11 additions and 0 deletions

View file

@ -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;