mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibWeb: Remove redundant flush() call in PaintingCommandExecutorGPU
Since we already call `Painter::flush()` in `PageHost::paint()` we do not need to do that again in `PaintingCommandExecutorGPU` destructor. This makes GPU painting run noticeably faster because `flush()` does expensive `glReadPixels()` call.
This commit is contained in:
parent
b532dedc91
commit
f7874d03fc
1 changed files with 0 additions and 1 deletions
|
@ -15,7 +15,6 @@ PaintingCommandExecutorGPU::PaintingCommandExecutorGPU(AccelGfx::Painter& painte
|
||||||
|
|
||||||
PaintingCommandExecutorGPU::~PaintingCommandExecutorGPU()
|
PaintingCommandExecutorGPU::~PaintingCommandExecutorGPU()
|
||||||
{
|
{
|
||||||
m_painter.flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const& color)
|
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const& color)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue