mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-12-03 23:32:37 -08:00
client: remove some buffer copies
This commit is contained in:
1 parent
fdc7d80aa8
commit
841e68ee28
5 files changed
+49
-56
No files matched your search
@@ -183,9 +183,10 @@ void decoder::blit(VkCommandBuffer command_buffer, blit_handle & handle, std::sp
|
||||
}
|
||||
}
|
||||
|
||||
void decoder::push_data(std::span<uint8_t> data, uint64_t frame_index, bool partial)
|
||||
void decoder::push_data(std::span<std::span<const uint8_t>> data, uint64_t frame_index, bool partial)
|
||||
{
|
||||
packet.insert(packet.end(), data.begin(), data.end());
|
||||
for (const auto& d: data)
|
||||
packet.insert(packet.end(), d.begin(), d.end());
|
||||
this->frame_index = frame_index;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user