blob: 0c91e0d3f9fdc96640c62b10e53c304f2151691f [file] [log] [blame]
/*
* Copyright 2022 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/graphite/GpuWorkSubmission.h"
#include "src/gpu/graphite/CommandBuffer.h"
namespace skgpu::graphite {
GpuWorkSubmission::GpuWorkSubmission(sk_sp<CommandBuffer> cmdBuffer)
: fCommandBuffer(std::move(cmdBuffer)) {}
GpuWorkSubmission::~GpuWorkSubmission() {
fCommandBuffer->callFinishedProcs(/*success=*/true);
}
} // namespace skgpu::graphite