LibWeb: Make a bunch of WebGL functions protected instead of public

Those do not need to accessible outside of WebGL code as they are just
helper functions.
This commit is contained in:
Undefine
2025-12-01 18:31:09 +01:00
committed by Alexander Kalenik
parent df39394a7e
commit cda2330658
Notes: github-actions[bot] 2026-01-10 12:23:11 +00:00
3 changed files with 14 additions and 13 deletions

View File

@@ -51,12 +51,6 @@ public:
WebIDL::Long drawing_buffer_width() const;
WebIDL::Long drawing_buffer_height() const;
virtual bool ext_texture_filter_anisotropic_extension_enabled() const override;
virtual bool angle_instanced_arrays_extension_enabled() const override;
virtual bool oes_standard_derivatives_extension_enabled() const override;
virtual bool webgl_draw_buffers_extension_enabled() const override;
virtual ReadonlySpan<WebIDL::UnsignedLong> enabled_compressed_texture_formats() const override;
private:
virtual void initialize(JS::Realm&) override;
@@ -64,6 +58,12 @@ private:
virtual void visit_edges(Cell::Visitor&) override;
virtual bool ext_texture_filter_anisotropic_extension_enabled() const override;
virtual bool angle_instanced_arrays_extension_enabled() const override;
virtual bool oes_standard_derivatives_extension_enabled() const override;
virtual bool webgl_draw_buffers_extension_enabled() const override;
virtual ReadonlySpan<WebIDL::UnsignedLong> enabled_compressed_texture_formats() const override;
GC::Ref<HTML::HTMLCanvasElement> m_canvas_element;
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#context-creation-parameters