Fix last reantrant object creation.
Fixed: dawn:723 Change-Id: I9697686a3a8a8d31539c04cd3e6073744152ff68 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85120 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
f32ae5b680
commit
dad225a896
|
@ -351,10 +351,7 @@ namespace dawn::native {
|
|||
static_cast<const uint8_t*>(pass.batchData.get()),
|
||||
pass.batchDataSize);
|
||||
|
||||
// TODO(dawn:723): change to not use AcquireRef for reentrant object creation.
|
||||
ComputePassDescriptor descriptor = {};
|
||||
Ref<ComputePassEncoder> passEncoder =
|
||||
AcquireRef(commandEncoder->APIBeginComputePass(&descriptor));
|
||||
Ref<ComputePassEncoder> passEncoder = commandEncoder->BeginComputePass();
|
||||
passEncoder->APISetPipeline(pipeline);
|
||||
|
||||
clientIndirectBinding.buffer = pass.clientIndirectBuffer;
|
||||
|
|
|
@ -423,7 +423,6 @@ namespace dawn::native::null {
|
|||
|
||||
ResultOrError<Ref<TextureViewBase>> SwapChain::GetCurrentTextureViewImpl() {
|
||||
TextureDescriptor textureDesc = GetSwapChainBaseTextureDescriptor(this);
|
||||
// TODO(dawn:723): change to not use AcquireRef for reentrant object creation.
|
||||
mTexture = AcquireRef(
|
||||
new Texture(GetDevice(), &textureDesc, TextureBase::TextureState::OwnedInternal));
|
||||
return mTexture->CreateView();
|
||||
|
|
Loading…
Reference in New Issue