blob: d11bb66e045656e400c658192182c9fd0d203e97 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_COMPILATION_INFO_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_COMPILATION_INFO_H_
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h"
namespace blink {
class GPUCompilationMessage;
class GPUCompilationInfo : public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
GPUCompilationInfo() = default;
GPUCompilationInfo(const GPUCompilationInfo&) = delete;
GPUCompilationInfo& operator=(const GPUCompilationInfo&) = delete;
void AppendMessage(GPUCompilationMessage* message);
const HeapVector<Member<GPUCompilationMessage>>& messages() const {
return messages_;
}
void Trace(Visitor*) const override;
private:
HeapVector<Member<GPUCompilationMessage>> messages_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_WEBGPU_GPU_COMPILATION_INFO_H_