mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibWeb/WebGL: Move extensions into their own folder
This commit is contained in:
parent
cfbd125e57
commit
de77a5e3ea
Notes:
github-actions[bot]
2025-01-21 20:37:44 +00:00
Author: https://github.com/Lubrsi
Commit: de77a5e3ea
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3239
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr
15 changed files with 30 additions and 26 deletions
|
@ -13,9 +13,9 @@
|
|||
#include <LibWeb/HTML/TraversableNavigable.h>
|
||||
#include <LibWeb/Infra/Strings.h>
|
||||
#include <LibWeb/Painting/Paintable.h>
|
||||
#include <LibWeb/WebGL/ANGLEInstancedArrays.h>
|
||||
#include <LibWeb/WebGL/EventNames.h>
|
||||
#include <LibWeb/WebGL/OESVertexArrayObject.h>
|
||||
#include <LibWeb/WebGL/Extensions/ANGLEInstancedArrays.h>
|
||||
#include <LibWeb/WebGL/Extensions/OESVertexArrayObject.h>
|
||||
#include <LibWeb/WebGL/OpenGLContext.h>
|
||||
#include <LibWeb/WebGL/WebGLContextEvent.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderingContext.h>
|
||||
|
@ -191,7 +191,7 @@ JS::Object* WebGLRenderingContext::get_extension(String const& name)
|
|||
|
||||
if (Infra::is_ascii_case_insensitive_match(name, "ANGLE_instanced_arrays"sv)) {
|
||||
if (!m_angle_instanced_arrays_extension) {
|
||||
m_angle_instanced_arrays_extension = MUST(ANGLEInstancedArrays::create(realm(), *this));
|
||||
m_angle_instanced_arrays_extension = MUST(Extensions::ANGLEInstancedArrays::create(realm(), *this));
|
||||
}
|
||||
|
||||
VERIFY(m_angle_instanced_arrays_extension);
|
||||
|
@ -200,7 +200,7 @@ JS::Object* WebGLRenderingContext::get_extension(String const& name)
|
|||
|
||||
if (Infra::is_ascii_case_insensitive_match(name, "OES_vertex_array_object"sv)) {
|
||||
if (!m_oes_vertex_array_object_extension) {
|
||||
m_oes_vertex_array_object_extension = MUST(OESVertexArrayObject::create(realm(), *this));
|
||||
m_oes_vertex_array_object_extension = MUST(Extensions::OESVertexArrayObject::create(realm(), *this));
|
||||
}
|
||||
|
||||
VERIFY(m_oes_vertex_array_object_extension);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue