mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibWeb: Remove step to prepare bitmap cache in display list player
This was only used by old OpenGL GPU painter.
This commit is contained in:
parent
a10576d016
commit
54cb888e2f
Notes:
github-actions[bot]
2024-07-24 15:50:11 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/54cb888e2f6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/808
3 changed files with 0 additions and 17 deletions
|
@ -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<u32, Gfx::ImmutableBitmap const*> immutable_bitmaps;
|
||||
for (auto const& command_with_scroll_id : m_commands) {
|
||||
auto& command = command_with_scroll_id.command;
|
||||
if (command.has<DrawScaledImmutableBitmap>()) {
|
||||
auto const& immutable_bitmap = command.get<DrawScaledImmutableBitmap>().bitmap;
|
||||
immutable_bitmaps.set(immutable_bitmap->id(), immutable_bitmap.ptr());
|
||||
}
|
||||
}
|
||||
executor.update_immutable_bitmap_texture_cache(immutable_bitmaps);
|
||||
}
|
||||
|
||||
HashTable<u32> skipped_sample_corner_commands;
|
||||
size_t next_command_index = 0;
|
||||
while (next_command_index < m_commands.size()) {
|
||||
|
|
|
@ -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<u32, Gfx::ImmutableBitmap const*>&) = 0;
|
||||
};
|
||||
|
||||
class DisplayList {
|
||||
|
|
|
@ -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<u32, Gfx::ImmutableBitmap const*>&) override {};
|
||||
|
||||
DisplayListPlayerSkia(Gfx::Bitmap&);
|
||||
|
||||
#ifdef USE_VULKAN
|
||||
|
|
Loading…
Reference in a new issue