зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1711868 - Only free WebGPU implicit layouts if they are given r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D115537
This commit is contained in:
Родитель
f892fd889c
Коммит
d329bf1572
|
@ -31,8 +31,10 @@ void ComputePipeline::Cleanup() {
|
|||
auto bridge = mParent->GetBridge();
|
||||
if (bridge && bridge->IsOpen()) {
|
||||
bridge->SendComputePipelineDestroy(mId);
|
||||
bridge->SendImplicitLayoutDestroy(mImplicitPipelineLayoutId,
|
||||
mImplicitBindGroupLayoutIds);
|
||||
if (mImplicitPipelineLayoutId) {
|
||||
bridge->SendImplicitLayoutDestroy(mImplicitPipelineLayoutId,
|
||||
mImplicitBindGroupLayoutIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,8 +31,10 @@ void RenderPipeline::Cleanup() {
|
|||
auto bridge = mParent->GetBridge();
|
||||
if (bridge && bridge->IsOpen()) {
|
||||
bridge->SendRenderPipelineDestroy(mId);
|
||||
bridge->SendImplicitLayoutDestroy(mImplicitPipelineLayoutId,
|
||||
mImplicitBindGroupLayoutIds);
|
||||
if (mImplicitPipelineLayoutId) {
|
||||
bridge->SendImplicitLayoutDestroy(mImplicitPipelineLayoutId,
|
||||
mImplicitBindGroupLayoutIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче