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 <senorblanco@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
a5654567f6
commit
24a358e20f
@ -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<GrFence>(new Fence(fDevice, fence));
|
||||
return reinterpret_cast<GrFence>(new Fence(fDevice));
|
||||
}
|
||||
|
||||
bool GrDawnGpu::waitFence(GrFence fence) {
|
||||
|
Loading…
Reference in New Issue
Block a user