Skip to content

Commit f7874d0

Browse files
kalenikaliaksandrawesomekling
authored andcommitted
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.
1 parent b532ded commit f7874d0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Userland/Libraries/LibWeb/Painting/PaintingCommandExecutorGPU.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ PaintingCommandExecutorGPU::PaintingCommandExecutorGPU(AccelGfx::Painter& painte
1515

1616
PaintingCommandExecutorGPU::~PaintingCommandExecutorGPU()
1717
{
18-
m_painter.flush();
1918
}
2019

2120
CommandResult PaintingCommandExecutorGPU::draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const& color)

0 commit comments

Comments
 (0)