mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Alexander Kalenik
parent
df39394a7e
commit
cda2330658
Notes:
github-actions[bot]
2026-01-10 12:23:11 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/cda2330658a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6992 Reviewed-by: https://github.com/kalenikaliaksandr ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user