mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 06:09:51 +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
Notes:
sideshowbarker
2024-07-16 19:57:55 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: f7874d03fc
Pull-request: https://github.com/SerenityOS/serenity/pull/21914
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue