1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +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:
Aliaksandr Kalenik 2023-11-12 20:16:06 +01:00 committed by Andreas Kling
parent b532dedc91
commit f7874d03fc

View file

@ -15,7 +15,6 @@ PaintingCommandExecutorGPU::PaintingCommandExecutorGPU(AccelGfx::Painter& painte
PaintingCommandExecutorGPU::~PaintingCommandExecutorGPU()
{
m_painter.flush();
}
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const& color)