LibWeb: Delete BlitCornerClipping display list command

Contrary to LibGfx, where corner clipping was implemented by sampling
and blitting pixels under corners into a temporary bitmap, Skia allows
us to simply apply a mask. As a result, we no longer need the
BlitCornerClipping command, which has become a no-op.

- SampleUnderCorners is renamed to AddRoundedRectClip
- The optimization that skipped unnecessary blit and sample commands has
  been removed. However, this should not result in a performance
  regression because Skia seems to perform mask rasterization lazily.
This commit is contained in:
Aliaksandr Kalenik 2024-07-29 14:13:34 +03:00 committed by Andreas Kling
commit 2c0f03f5b6
Notes: github-actions[bot] 2024-07-30 07:46:42 +00:00
13 changed files with 16 additions and 143 deletions

View file

@ -2143,7 +2143,6 @@ void Navigable::record_display_list(Painting::DisplayListRecorder& display_list_
scroll_offsets_by_frame_id[scrollable_frame->id] = scroll_offset;
}
display_list_recorder.display_list().apply_scroll_offsets(scroll_offsets_by_frame_id);
display_list_recorder.display_list().mark_unnecessary_commands();
}
m_needs_repaint = false;