#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "gpu/ipc/common/client_gmb_interface.mojom-blink.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 "gpu/ipc/common/client_gmb_interface.mojom-params-data.h"
#include "gpu/ipc/common/client_gmb_interface.mojom-shared-message-ids.h"
#include "gpu/ipc/common/client_gmb_interface.mojom-blink-import-headers.h"
#include "gpu/ipc/common/client_gmb_interface.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace gpu::mojom::blink {
const char ClientGmbInterface::Name_[] = …;
ClientGmbInterface::IPCStableHashFunction ClientGmbInterface::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ClientGmbInterface::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ClientGmbInterface::CreateGpuMemoryBuffer_Sym::IPCStableHash() { … }
uint32_t ClientGmbInterface::DestroyGpuMemoryBuffer_Sym::IPCStableHash() { … }
uint32_t ClientGmbInterface::CopyGpuMemoryBuffer_Sym::IPCStableHash() { … }
# endif
class ClientGmbInterface_CreateGpuMemoryBuffer_ForwardToCallback
: public mojo::MessageReceiver { … };
class ClientGmbInterface_CopyGpuMemoryBuffer_ForwardToCallback
: public mojo::MessageReceiver { … };
ClientGmbInterfaceProxy::ClientGmbInterfaceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ClientGmbInterfaceProxy::CreateGpuMemoryBuffer(
::gfx::GpuMemoryBufferId in_id, const ::gfx::Size& in_size, ::gfx::BufferFormat in_format, ::gfx::BufferUsage in_usage, ::gpu::mojom::blink::SurfaceHandlePtr in_surface_handle, CreateGpuMemoryBufferCallback callback) { … }
void ClientGmbInterfaceProxy::DestroyGpuMemoryBuffer(
::gfx::GpuMemoryBufferId in_id) { … }
void ClientGmbInterfaceProxy::CopyGpuMemoryBuffer(
::gfx::GpuMemoryBufferHandle in_buffer_handle, ::base::UnsafeSharedMemoryRegion in_shared_memory, CopyGpuMemoryBufferCallback callback) { … }
class ClientGmbInterface_CreateGpuMemoryBuffer_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ClientGmbInterface_CreateGpuMemoryBuffer_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ClientGmbInterface_CreateGpuMemoryBuffer_ProxyToResponder::Run(
::gfx::GpuMemoryBufferHandle in_buffer_handle) { … }
class ClientGmbInterface_CopyGpuMemoryBuffer_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool ClientGmbInterface_CopyGpuMemoryBuffer_ForwardToCallback::Accept(
mojo::Message* message) { … }
void ClientGmbInterface_CopyGpuMemoryBuffer_ProxyToResponder::Run(
bool in_success) { … }
bool ClientGmbInterfaceStubDispatch::Accept(
ClientGmbInterface* impl,
mojo::Message* message) { … }
bool ClientGmbInterfaceStubDispatch::AcceptWithResponder(
ClientGmbInterface* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kClientGmbInterfaceValidationInfo[] = …;
bool ClientGmbInterfaceRequestValidator::Accept(mojo::Message* message) { … }
bool ClientGmbInterfaceResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace gpu::mojom::blink {
void ClientGmbInterfaceInterceptorForTesting::CreateGpuMemoryBuffer(::gfx::GpuMemoryBufferId id, const ::gfx::Size& size, ::gfx::BufferFormat format, ::gfx::BufferUsage usage, ::gpu::mojom::blink::SurfaceHandlePtr surface_handle, CreateGpuMemoryBufferCallback callback) { … }
void ClientGmbInterfaceInterceptorForTesting::DestroyGpuMemoryBuffer(::gfx::GpuMemoryBufferId id) { … }
void ClientGmbInterfaceInterceptorForTesting::CopyGpuMemoryBuffer(::gfx::GpuMemoryBufferHandle buffer_handle, ::base::UnsafeSharedMemoryRegion shared_memory, CopyGpuMemoryBufferCallback callback) { … }
ClientGmbInterfaceAsyncWaiter::ClientGmbInterfaceAsyncWaiter(
ClientGmbInterface* proxy) : … { … }
ClientGmbInterfaceAsyncWaiter::~ClientGmbInterfaceAsyncWaiter() = default;
void ClientGmbInterfaceAsyncWaiter::CreateGpuMemoryBuffer(
::gfx::GpuMemoryBufferId id, const ::gfx::Size& size, ::gfx::BufferFormat format, ::gfx::BufferUsage usage, ::gpu::mojom::blink::SurfaceHandlePtr surface_handle, ::gfx::GpuMemoryBufferHandle* out_buffer_handle) { … }
::gfx::GpuMemoryBufferHandle ClientGmbInterfaceAsyncWaiter::CreateGpuMemoryBuffer(
::gfx::GpuMemoryBufferId id, const ::gfx::Size& size, ::gfx::BufferFormat format, ::gfx::BufferUsage usage, ::gpu::mojom::blink::SurfaceHandlePtr surface_handle) { … }
void ClientGmbInterfaceAsyncWaiter::CopyGpuMemoryBuffer(
::gfx::GpuMemoryBufferHandle buffer_handle, ::base::UnsafeSharedMemoryRegion shared_memory, bool* out_success) { … }
bool ClientGmbInterfaceAsyncWaiter::CopyGpuMemoryBuffer(
::gfx::GpuMemoryBufferHandle buffer_handle, ::base::UnsafeSharedMemoryRegion shared_memory) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif