chromium/out/Default/gen/services/viz/privileged/mojom/gl/gpu_host.mojom.cc

// services/viz/privileged/mojom/gl/gpu_host.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "services/viz/privileged/mojom/gl/gpu_host.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "services/viz/privileged/mojom/gl/gpu_host.mojom-params-data.h"
#include "services/viz/privileged/mojom/gl/gpu_host.mojom-shared-message-ids.h"

#include "services/viz/privileged/mojom/gl/gpu_host.mojom-import-headers.h"
#include "services/viz/privileged/mojom/gl/gpu_host.mojom-test-utils.h"


namespace viz::mojom {
const char GpuHost::Name_[] =;

GpuHost::IPCStableHashFunction GpuHost::MessageToMethodInfo_(mojo::Message& message) {}


const char* GpuHost::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t GpuHost::DidInitialize_Sym::IPCStableHash() {}
uint32_t GpuHost::DidFailInitialize_Sym::IPCStableHash() {}
uint32_t GpuHost::DidCreateContextSuccessfully_Sym::IPCStableHash() {}
uint32_t GpuHost::DidCreateOffscreenContext_Sym::IPCStableHash() {}
uint32_t GpuHost::DidDestroyOffscreenContext_Sym::IPCStableHash() {}
uint32_t GpuHost::DidDestroyChannel_Sym::IPCStableHash() {}
uint32_t GpuHost::DidDestroyAllChannels_Sym::IPCStableHash() {}
uint32_t GpuHost::DidLoseContext_Sym::IPCStableHash() {}
uint32_t GpuHost::DidUpdateGPUInfo_Sym::IPCStableHash() {}
uint32_t GpuHost::DisableGpuCompositing_Sym::IPCStableHash() {}
uint32_t GpuHost::GetIsolationKey_Sym::IPCStableHash() {}
uint32_t GpuHost::StoreBlobToDisk_Sym::IPCStableHash() {}
uint32_t GpuHost::RecordLogMessage_Sym::IPCStableHash() {}
uint32_t GpuHost::ClearGrShaderDiskCache_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class GpuHost_GetIsolationKey_ForwardToCallback
    : public mojo::MessageReceiver {};

GpuHostProxy::GpuHostProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void GpuHostProxy::DidInitialize(
    const ::gpu::GPUInfo& in_gpu_info, const ::gpu::GpuFeatureInfo& in_gpu_feature_info, const std::optional<::gpu::GPUInfo>& in_gpu_info_for_hardware_gpu, const std::optional<::gpu::GpuFeatureInfo>& in_gpu_feature_info_for_hardware_gpu, const ::gfx::GpuExtraInfo& in_gpu_extra_info) {}

void GpuHostProxy::DidFailInitialize(
    ) {}

void GpuHostProxy::DidCreateContextSuccessfully(
    ) {}

void GpuHostProxy::DidCreateOffscreenContext(
    const ::GURL& in_url) {}

void GpuHostProxy::DidDestroyOffscreenContext(
    const ::GURL& in_url) {}

void GpuHostProxy::DidDestroyChannel(
    int32_t in_client_id) {}

void GpuHostProxy::DidDestroyAllChannels(
    ) {}

void GpuHostProxy::DidLoseContext(
    ::gpu::error::ContextLostReason in_reason, const ::GURL& in_active_url) {}

void GpuHostProxy::DidUpdateGPUInfo(
    const ::gpu::GPUInfo& in_gpu_info) {}

void GpuHostProxy::DisableGpuCompositing(
    ) {}

void GpuHostProxy::GetIsolationKey(
    int32_t in_client_id, const ::blink::WebGPUExecutionContextToken& in_wgpu_context_token, GetIsolationKeyCallback callback) {}

void GpuHostProxy::StoreBlobToDisk(
    const ::gpu::GpuDiskCacheHandle& in_cache_handle, const std::string& in_key, const std::string& in_blob) {}

void GpuHostProxy::RecordLogMessage(
    int32_t in_severity, const std::string& in_header, const std::string& in_message) {}

void GpuHostProxy::ClearGrShaderDiskCache(
    ) {}
class GpuHost_GetIsolationKey_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool GpuHost_GetIsolationKey_ForwardToCallback::Accept(
    mojo::Message* message) {}

void GpuHost_GetIsolationKey_ProxyToResponder::Run(
    const std::string& in_isolation_key) {}

// static
bool GpuHostStubDispatch::Accept(
    GpuHost* impl,
    mojo::Message* message) {}

// static
bool GpuHostStubDispatch::AcceptWithResponder(
    GpuHost* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kGpuHostValidationInfo[] =;

bool GpuHostRequestValidator::Accept(mojo::Message* message) {}

bool GpuHostResponseValidator::Accept(mojo::Message* message) {}


}  // viz::mojom


namespace mojo {

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace viz::mojom {


void GpuHostInterceptorForTesting::DidInitialize(const ::gpu::GPUInfo& gpu_info, const ::gpu::GpuFeatureInfo& gpu_feature_info, const std::optional<::gpu::GPUInfo>& gpu_info_for_hardware_gpu, const std::optional<::gpu::GpuFeatureInfo>& gpu_feature_info_for_hardware_gpu, const ::gfx::GpuExtraInfo& gpu_extra_info) {}
void GpuHostInterceptorForTesting::DidFailInitialize() {}
void GpuHostInterceptorForTesting::DidCreateContextSuccessfully() {}
void GpuHostInterceptorForTesting::DidCreateOffscreenContext(const ::GURL& url) {}
void GpuHostInterceptorForTesting::DidDestroyOffscreenContext(const ::GURL& url) {}
void GpuHostInterceptorForTesting::DidDestroyChannel(int32_t client_id) {}
void GpuHostInterceptorForTesting::DidDestroyAllChannels() {}
void GpuHostInterceptorForTesting::DidLoseContext(::gpu::error::ContextLostReason reason, const ::GURL& active_url) {}
void GpuHostInterceptorForTesting::DidUpdateGPUInfo(const ::gpu::GPUInfo& gpu_info) {}
void GpuHostInterceptorForTesting::DisableGpuCompositing() {}
void GpuHostInterceptorForTesting::GetIsolationKey(int32_t client_id, const ::blink::WebGPUExecutionContextToken& wgpu_context_token, GetIsolationKeyCallback callback) {}
void GpuHostInterceptorForTesting::StoreBlobToDisk(const ::gpu::GpuDiskCacheHandle& cache_handle, const std::string& key, const std::string& blob) {}
void GpuHostInterceptorForTesting::RecordLogMessage(int32_t severity, const std::string& header, const std::string& message) {}
void GpuHostInterceptorForTesting::ClearGrShaderDiskCache() {}
GpuHostAsyncWaiter::GpuHostAsyncWaiter(
    GpuHost* proxy) :{}

GpuHostAsyncWaiter::~GpuHostAsyncWaiter() = default;

void GpuHostAsyncWaiter::GetIsolationKey(
    int32_t client_id, const ::blink::WebGPUExecutionContextToken& wgpu_context_token, std::string* out_isolation_key) {}

std::string GpuHostAsyncWaiter::GetIsolationKey(
    int32_t client_id, const ::blink::WebGPUExecutionContextToken& wgpu_context_token) {}






}  // viz::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif