mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1626570 - Improve handling of copying arrays in dom/webgpu/. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D73666
This commit is contained in:
parent
5dce187722
commit
997dbb2670
@ -425,7 +425,7 @@ RawId WebGPUChild::DeviceCreateRenderPipeline(
|
||||
if (!vertex_desc.IsNull()) {
|
||||
vb_desc = ConvertVertexBufferLayoutDescriptor(vertex_desc.Value());
|
||||
}
|
||||
desc.mVertexState.mVertexBuffers.AppendElement(vb_desc);
|
||||
desc.mVertexState.mVertexBuffers.AppendElement(std::move(vb_desc));
|
||||
}
|
||||
desc.mSampleCount = aDesc.mSampleCount;
|
||||
desc.mSampleMask = aDesc.mSampleMask;
|
||||
|
@ -553,7 +553,7 @@ ipc::IPCResult WebGPUParent::RecvDeviceCreateSwapChain(
|
||||
auto textureHost = new layers::MemoryTextureHost(
|
||||
textureHostData, aDesc, layers::TextureFlags::NO_FLAGS);
|
||||
textureHost->CreateRenderTexture(aExternalId);
|
||||
nsTArray<RawId> bufferIds(aBufferIds);
|
||||
nsTArray<RawId> bufferIds(aBufferIds.Clone());
|
||||
RefPtr<PresentationData> data = new PresentationData();
|
||||
data->mDeviceId = aSelfId;
|
||||
data->mQueueId = aQueueId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user