1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibWeb: Implement draw_glyph_run in PaintingCommandExecutorGPU

This commit is contained in:
Aliaksandr Kalenik 2023-11-05 00:59:53 +01:00 committed by Andreas Kling
parent ee28ba0c93
commit b6da9abfb2
5 changed files with 31 additions and 2 deletions

View file

@ -18,9 +18,9 @@ PaintingCommandExecutorGPU::~PaintingCommandExecutorGPU()
m_painter.flush();
}
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const&, Color const&)
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const& color)
{
// FIXME
painter().draw_glyph_run(glyph_run, color);
return CommandResult::Continue;
}
@ -238,4 +238,9 @@ bool PaintingCommandExecutorGPU::would_be_fully_clipped_by_painter(Gfx::IntRect)
return false;
}
void PaintingCommandExecutorGPU::prepare_glyph_texture(HashMap<Gfx::Font const*, HashTable<u32>> const& unique_glyphs)
{
m_painter.prepare_glyph_texture(unique_glyphs);
}
}