diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp index 14d629bfe5c..f4625108a8f 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp @@ -80,18 +80,6 @@ void DisplayList::execute(DisplayListPlayer& executor) { executor.prepare_to_execute(m_corner_clip_max_depth); - if (executor.needs_update_immutable_bitmap_texture_cache()) { - HashMap immutable_bitmaps; - for (auto const& command_with_scroll_id : m_commands) { - auto& command = command_with_scroll_id.command; - if (command.has()) { - auto const& immutable_bitmap = command.get().bitmap; - immutable_bitmaps.set(immutable_bitmap->id(), immutable_bitmap.ptr()); - } - } - executor.update_immutable_bitmap_texture_cache(immutable_bitmaps); - } - HashTable skipped_sample_corner_commands; size_t next_command_index = 0; while (next_command_index < m_commands.size()) { diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.h b/Userland/Libraries/LibWeb/Painting/DisplayList.h index 7f4443fe38f..6edace05c2b 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.h @@ -67,8 +67,6 @@ public: virtual void blit_corner_clipping(BlitCornerClipping const&) = 0; virtual bool would_be_fully_clipped_by_painter(Gfx::IntRect) const = 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; }; class DisplayList { diff --git a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h index 8d259e756ae..5e67b794d2d 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h @@ -67,9 +67,6 @@ public: virtual void prepare_to_execute(size_t corner_clip_max_depth) override; - bool needs_update_immutable_bitmap_texture_cache() const override { return false; } - void update_immutable_bitmap_texture_cache(HashMap&) override {}; - DisplayListPlayerSkia(Gfx::Bitmap&); #ifdef USE_VULKAN