1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

LibWeb+WebContent: Remove "Painting" prefix from command executor names

Painting command executors are defined within the "Painting" namespace,
allowing us to remove this prefix from their names.

This commit performs the following renamings:

- Painting::PaintingCommandExecutor to Painting::CommandExecutor
- Painting::PaintingCommandExecutorCPU to Painting::CommandExecutorCPU
- Painting::PaintingCommandExecutorGPU to Painting::CommandExecutorGPU
This commit is contained in:
Aliaksandr Kalenik 2024-02-15 15:00:43 +01:00 committed by Andreas Kling
parent 11d746a67f
commit cb97eef2cf
10 changed files with 91 additions and 91 deletions

View file

@ -43,9 +43,9 @@ enum class CommandResult {
SkipStackingContext,
};
class PaintingCommandExecutor {
class CommandExecutor {
public:
virtual ~PaintingCommandExecutor() = default;
virtual ~CommandExecutor() = default;
virtual CommandResult draw_glyph_run(Vector<Gfx::DrawGlyphOrEmoji> const& glyph_run, Color const&) = 0;
virtual CommandResult draw_text(Gfx::IntRect const&, String const&, Gfx::TextAlignment alignment, Color const&, Gfx::TextElision, Gfx::TextWrapping, Optional<NonnullRefPtr<Gfx::Font>> const&) = 0;
@ -96,7 +96,7 @@ public:
void append(Command&& command, Optional<i32> scroll_frame_id);
void apply_scroll_offsets(Vector<Gfx::IntPoint> const& offsets_by_frame_id);
void execute(PaintingCommandExecutor&);
void execute(CommandExecutor&);
private:
struct CommandWithScrollFrame {