From 24a358e20f23c74e9dea46a40249f7b121aab4f2 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Mon, 17 May 2021 17:47:51 -0400 Subject: [PATCH] Remove wgpu::Fence object from Dawn backend. (It was unused.) Bug: dawn:22 Change-Id: Ibcb31d35044c9875ab99304282bcbac584251257 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/409498 Commit-Queue: Stephen White Reviewed-by: Austin Eng Reviewed-by: Corentin Wallez --- src/gpu/dawn/GrDawnGpu.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gpu/dawn/GrDawnGpu.cpp b/src/gpu/dawn/GrDawnGpu.cpp index da51543bcc..537636b613 100644 --- a/src/gpu/dawn/GrDawnGpu.cpp +++ b/src/gpu/dawn/GrDawnGpu.cpp @@ -45,7 +45,7 @@ namespace { class Fence { public: - Fence(const wgpu::Device& device, const wgpu::Fence& fence) + Fence(const wgpu::Device& device) : fDevice(device), fCalled(false) { device.GetQueue().OnSubmittedWorkDone(0, callback, this); } @@ -794,9 +794,7 @@ void GrDawnGpu::submit(GrOpsRenderPass* renderPass) { } GrFence SK_WARN_UNUSED_RESULT GrDawnGpu::insertFence() { - wgpu::FenceDescriptor desc; - wgpu::Fence fence = fQueue.CreateFence(&desc); - return reinterpret_cast(new Fence(fDevice, fence)); + return reinterpret_cast(new Fence(fDevice)); } bool GrDawnGpu::waitFence(GrFence fence) {