зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1875621 - SlicedInputStream::Serialize should serialize the outer SlicedInputStream as a pipe in the efficient path. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D199852
This commit is contained in:
Родитель
9d3d894d68
Коммит
c4b00a432d
|
@ -464,7 +464,7 @@ void SlicedInputStream::Serialize(mozilla::ipc::InputStreamParams& aParams,
|
|||
uint32_t sizeUsed = 0, pipes = 0, transferables = 0;
|
||||
SerializedComplexity(aMaxSize, &sizeUsed, &pipes, &transferables);
|
||||
if (pipes > 0 && transferables == 0) {
|
||||
InputStreamHelper::SerializeInputStreamAsPipe(mInputStream, aParams);
|
||||
InputStreamHelper::SerializeInputStreamAsPipe(this, aParams);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче