pool append move and copy

This commit is contained in:
2026-08-31 08:59:41 +02:00
parent cfb6a9b3dd
commit 4d2470b0c6
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() {}