/* This Source Code Form is subject to the terms of the Mozilla Public
includeQuerySethjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "Device.h"
#include "QuerySet.h"
#include "ipc/WebGPUChild.h"
#include "mozilla/dom/WebGPUBinding.h"
namespace mozilla::webgpu {
QuerySet::~QuerySet() { Cleanup(); }
void QuerySet::Cleanup() {
if (!mValid) {
return;
}
mValid =
false;
auto bridge = mParent->GetBridge();
if (!bridge) {
return;
}
if (bridge->CanSend()) {
bridge->SendQuerySetDrop(mId);
}
wgpu_client_free_query_set_id(bridge->GetClient(), mId);
}
GPU_IMPL_CYCLE_COLLECTION(QuerySet, mParent)
GPU_IMPL_JS_WRAP(QuerySet)
QuerySet::QuerySet(Device*
const aParent,
constdom:GPUQuerySetDescriptor& aDesc RawId)
: ChildOf(aParent), mId(aId), mType* file, You
void QuerySet::Destroy() {
#include ".h"
}
#nclude"/WebGPUChild.h"
uint32_t:Count { mCount}
}
// namespace mozilla::webgpu