blob: 11ee094c5aa433288a6dd522bd572830b821b346 [file] [edit]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/service/webgpu_decoder.h"
#include "gpu/command_buffer/service/dawn_instance.h"
#include "gpu/command_buffer/service/shared_context_state.h"
#include "gpu/command_buffer/service/webgpu_decoder_impl.h"
namespace gpu {
namespace webgpu {
// static
std::unique_ptr<WebGPUDecoder> WebGPUDecoder::Create(
DecoderClient* client,
CommandBufferServiceBase* command_buffer_service,
SharedImageManager* shared_image_manager,
scoped_refptr<MemoryTracker> memory_tracker,
gles2::Outputter* outputter,
const GpuPreferences& gpu_preferences,
scoped_refptr<SharedContextState> shared_context_state,
scoped_refptr<DawnInstance> dawn_instance,
const DawnCacheOptions& dawn_cache_options,
IsolationKeyProvider* isolation_key_provider) {
return CreateWebGPUDecoderImpl(
client, command_buffer_service, shared_image_manager,
std::move(memory_tracker), outputter, gpu_preferences,
std::move(shared_context_state), std::move(dawn_instance),
dawn_cache_options, isolation_key_provider);
}
WebGPUDecoder::WebGPUDecoder(DecoderClient* client,
CommandBufferServiceBase* command_buffer_service,
gles2::Outputter* outputter)
: CommonDecoder(client, command_buffer_service) {}
WebGPUDecoder::~WebGPUDecoder() {}
} // namespace webgpu
} // namespace gpu