#include "third_party/blink/renderer/modules/webgpu/dawn_object.h"
#include "base/numerics/checked_math.h"
#include "gpu/command_buffer/client/webgpu_interface.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_device.h"
namespace blink {
ExternalMemoryTracker::~ExternalMemoryTracker() { … }
void ExternalMemoryTracker::SetCurrentSize(size_t newSizeUnchecked) { … }
DawnObjectBase::DawnObjectBase(
scoped_refptr<DawnControlClientHolder> dawn_control_client,
const String& label)
: … { … }
const scoped_refptr<DawnControlClientHolder>&
DawnObjectBase::GetDawnControlClient() const { … }
void DawnObjectBase::setLabel(const String& value) { … }
void DawnObjectBase::EnsureFlush(scheduler::EventLoop& event_loop) { … }
void DawnObjectBase::FlushNow() { … }
DawnObjectImpl::DawnObjectImpl(GPUDevice* device, const String& label)
: … { … }
DawnObjectImpl::~DawnObjectImpl() = default;
const wgpu::Device& DawnObjectImpl::GetDeviceHandle() const { … }
void DawnObjectImpl::Trace(Visitor* visitor) const { … }
}