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:
parent
ee28ba0c93
commit
b6da9abfb2
5 changed files with 31 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue