#include "gpu/ipc/webgpu_in_process_context.h"
#include <utility>
#include "base/command_line.h"
#include "base/logging.h"
#include "base/test/test_simple_task_runner.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
#include "gpu/command_buffer/client/webgpu_cmd_helper.h"
#include "gpu/command_buffer/client/webgpu_implementation.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/common/context_creation_attribs.h"
#include "gpu/config/gpu_feature_info.h"
#include "gpu/config/gpu_switches.h"
#include "gpu/ipc/common/surface_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
WebGPUInProcessContext::WebGPUInProcessContext() = default;
WebGPUInProcessContext::~WebGPUInProcessContext() { … }
ContextResult WebGPUInProcessContext::Initialize(
CommandBufferTaskExecutor* task_executor,
const ContextCreationAttribs& attribs,
const SharedMemoryLimits& memory_limits) { … }
const Capabilities& WebGPUInProcessContext::GetCapabilities() const { … }
const GpuFeatureInfo& WebGPUInProcessContext::GetGpuFeatureInfo() const { … }
webgpu::WebGPUImplementation* WebGPUInProcessContext::GetImplementation() { … }
base::TestSimpleTaskRunner* WebGPUInProcessContext::GetTaskRunner() { … }
ServiceTransferCache* WebGPUInProcessContext::GetTransferCacheForTest() const { … }
InProcessCommandBuffer* WebGPUInProcessContext::GetCommandBufferForTest()
const { … }
CommandBufferHelper* WebGPUInProcessContext::GetCommandBufferHelperForTest()
const { … }
}