pool append move and copy

This commit is contained in:
2026-09-06 15:58:15 +02:00
parent de51a35734
commit b7f1037b18
4 changed files with 37 additions and 3 deletions
+7 -2
View File
@@ -10,9 +10,14 @@ PD_API Drawlist::Drawlist() { Clear(); }
PD_API Drawlist::~Drawlist() { Clear(); }
PD_API void Drawlist::Merge(Drawlist& other) {}
PD_API void Drawlist::Merge(Drawlist& other) {
pCommands.AppendMove(other.pCommands);
other.Clear();
}
PD_API void Drawlist::Copy(Drawlist& other) {}
PD_API void Drawlist::Copy(Drawlist& other) {
pCommands.AppendCopy(other.pCommands);
}
PD_API void Drawlist::Optimize() {}