Ver código fonte

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.
Aliaksandr Kalenik 1 ano atrás
pai
commit
f7874d03fc

+ 0 - 1
Userland/Libraries/LibWeb/Painting/PaintingCommandExecutorGPU.cpp

@@ -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)