diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp index 1024006577a..14d629bfe5c 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp @@ -80,25 +80,6 @@ void DisplayList::execute(DisplayListPlayer& executor) { executor.prepare_to_execute(m_corner_clip_max_depth); - if (executor.needs_prepare_glyphs_texture()) { - HashMap> unique_glyphs; - for (auto& command_with_scroll_id : m_commands) { - auto& command = command_with_scroll_id.command; - if (command.has()) { - auto scale = command.get().scale; - auto const& font = command.get().glyph_run->font(); - auto scaled_font = font.with_size(font.point_size() * static_cast(scale)); - for (auto const& glyph_or_emoji : command.get().glyph_run->glyphs()) { - if (glyph_or_emoji.has()) { - auto const& glyph = glyph_or_emoji.get(); - unique_glyphs.ensure(scaled_font, [] { return HashTable {}; }).set(glyph.code_point); - } - } - } - } - executor.prepare_glyph_texture(unique_glyphs); - } - if (executor.needs_update_immutable_bitmap_texture_cache()) { HashMap immutable_bitmaps; for (auto const& command_with_scroll_id : m_commands) { diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.h b/Userland/Libraries/LibWeb/Painting/DisplayList.h index b69d4794b1a..7f4443fe38f 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.h @@ -66,8 +66,6 @@ public: virtual void sample_under_corners(SampleUnderCorners const&) = 0; virtual void blit_corner_clipping(BlitCornerClipping const&) = 0; virtual bool would_be_fully_clipped_by_painter(Gfx::IntRect) const = 0; - virtual bool needs_prepare_glyphs_texture() const { return false; } - virtual void prepare_glyph_texture(HashMap> const& unique_glyphs) = 0; virtual void prepare_to_execute([[maybe_unused]] size_t corner_clip_max_depth) { } virtual bool needs_update_immutable_bitmap_texture_cache() const = 0; virtual void update_immutable_bitmap_texture_cache(HashMap&) = 0; diff --git a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h index 65b49f129ff..8d259e756ae 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h @@ -65,9 +65,6 @@ public: bool would_be_fully_clipped_by_painter(Gfx::IntRect) const override; - bool needs_prepare_glyphs_texture() const override { return false; } - void prepare_glyph_texture(HashMap> const&) override {}; - virtual void prepare_to_execute(size_t corner_clip_max_depth) override; bool needs_update_immutable_bitmap_texture_cache() const override { return false; }