#include "gpu/ipc/common/gpu_channel.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "gpu/ipc/common/gpu_channel.mojom-params-data.h"
namespace gpu {
namespace mojom {
NOINLINE static const char* ContextTypeToStringHelper(ContextType value) { … }
std::string ContextTypeToString(ContextType value) { … }
std::ostream& operator<<(std::ostream& os, ContextType value) { … }
NOINLINE static const char* ContextColorSpaceToStringHelper(ContextColorSpace value) { … }
std::string ContextColorSpaceToString(ContextColorSpace value) { … }
std::ostream& operator<<(std::ostream& os, ContextColorSpace value) { … }
NOINLINE static const char* SchedulingPriorityToStringHelper(SchedulingPriority value) { … }
std::string SchedulingPriorityToString(SchedulingPriority value) { … }
std::ostream& operator<<(std::ostream& os, SchedulingPriority value) { … }
namespace internal {
bool DeferredRequestParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context,
bool inlined) { … }
bool DeferredCommandBufferRequestParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context,
bool inlined) { … }
bool DeferredSharedImageRequest_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context,
bool inlined) { … }
bool ContextCreationAttribs_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ContextCreationAttribs_Data::ContextCreationAttribs_Data()
: … { … }
bool CreateCommandBufferParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CreateCommandBufferParams_Data::CreateCommandBufferParams_Data()
: … { … }
bool CommandBufferState_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferState_Data::CommandBufferState_Data()
: … { … }
bool ScheduleImageDecodeParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ScheduleImageDecodeParams_Data::ScheduleImageDecodeParams_Data()
: … { … }
bool DeferredRequest_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DeferredRequest_Data::DeferredRequest_Data()
: … { … }
bool DeferredCommandBufferRequest_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DeferredCommandBufferRequest_Data::DeferredCommandBufferRequest_Data()
: … { … }
bool AsyncFlushParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AsyncFlushParams_Data::AsyncFlushParams_Data()
: … { … }
bool SetDefaultFramebufferSharedImageParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SetDefaultFramebufferSharedImageParams_Data::SetDefaultFramebufferSharedImageParams_Data()
: … { … }
bool SharedImageInfo_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SharedImageInfo_Data::SharedImageInfo_Data()
: … { … }
bool CreateSharedImageParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CreateSharedImageParams_Data::CreateSharedImageParams_Data()
: … { … }
bool CreateSharedImageWithDataParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CreateSharedImageWithDataParams_Data::CreateSharedImageWithDataParams_Data()
: … { … }
bool CreateSharedImageWithBufferParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CreateSharedImageWithBufferParams_Data::CreateSharedImageWithBufferParams_Data()
: … { … }
bool UpdateSharedImageParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
UpdateSharedImageParams_Data::UpdateSharedImageParams_Data()
: … { … }
bool AddReferenceToSharedImageParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AddReferenceToSharedImageParams_Data::AddReferenceToSharedImageParams_Data()
: … { … }
bool CopyToGpuMemoryBufferParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CopyToGpuMemoryBufferParams_Data::CopyToGpuMemoryBufferParams_Data()
: … { … }
bool GpuChannel_CrashForTesting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_CrashForTesting_Params_Data::GpuChannel_CrashForTesting_Params_Data()
: … { … }
bool GpuChannel_TerminateForTesting_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_TerminateForTesting_Params_Data::GpuChannel_TerminateForTesting_Params_Data()
: … { … }
bool GpuChannel_GetChannelToken_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetChannelToken_Params_Data::GpuChannel_GetChannelToken_Params_Data()
: … { … }
bool GpuChannel_GetChannelToken_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetChannelToken_ResponseParams_Data::GpuChannel_GetChannelToken_ResponseParams_Data()
: … { … }
bool GpuChannel_Flush_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_Flush_Params_Data::GpuChannel_Flush_Params_Data()
: … { … }
bool GpuChannel_Flush_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_Flush_ResponseParams_Data::GpuChannel_Flush_ResponseParams_Data()
: … { … }
bool GpuChannel_GetSharedMemoryForFlushId_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetSharedMemoryForFlushId_Params_Data::GpuChannel_GetSharedMemoryForFlushId_Params_Data()
: … { … }
bool GpuChannel_GetSharedMemoryForFlushId_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetSharedMemoryForFlushId_ResponseParams_Data::GpuChannel_GetSharedMemoryForFlushId_ResponseParams_Data()
: … { … }
bool GpuChannel_CreateCommandBuffer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_CreateCommandBuffer_Params_Data::GpuChannel_CreateCommandBuffer_Params_Data()
: … { … }
bool GpuChannel_CreateCommandBuffer_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_CreateCommandBuffer_ResponseParams_Data::GpuChannel_CreateCommandBuffer_ResponseParams_Data()
: … { … }
bool GpuChannel_DestroyCommandBuffer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_DestroyCommandBuffer_Params_Data::GpuChannel_DestroyCommandBuffer_Params_Data()
: … { … }
bool GpuChannel_DestroyCommandBuffer_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_DestroyCommandBuffer_ResponseParams_Data::GpuChannel_DestroyCommandBuffer_ResponseParams_Data()
: … { … }
bool GpuChannel_ScheduleImageDecode_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_ScheduleImageDecode_Params_Data::GpuChannel_ScheduleImageDecode_Params_Data()
: … { … }
bool GpuChannel_FlushDeferredRequests_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_FlushDeferredRequests_Params_Data::GpuChannel_FlushDeferredRequests_Params_Data()
: … { … }
bool GpuChannel_CreateGpuMemoryBuffer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_CreateGpuMemoryBuffer_Params_Data::GpuChannel_CreateGpuMemoryBuffer_Params_Data()
: … { … }
bool GpuChannel_CreateGpuMemoryBuffer_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_CreateGpuMemoryBuffer_ResponseParams_Data::GpuChannel_CreateGpuMemoryBuffer_ResponseParams_Data()
: … { … }
bool GpuChannel_GetGpuMemoryBufferHandleInfo_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetGpuMemoryBufferHandleInfo_Params_Data::GpuChannel_GetGpuMemoryBufferHandleInfo_Params_Data()
: … { … }
bool GpuChannel_GetGpuMemoryBufferHandleInfo_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_GetGpuMemoryBufferHandleInfo_ResponseParams_Data::GpuChannel_GetGpuMemoryBufferHandleInfo_ResponseParams_Data()
: … { … }
bool GpuChannel_WaitForTokenInRange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_WaitForTokenInRange_Params_Data::GpuChannel_WaitForTokenInRange_Params_Data()
: … { … }
bool GpuChannel_WaitForTokenInRange_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_WaitForTokenInRange_ResponseParams_Data::GpuChannel_WaitForTokenInRange_ResponseParams_Data()
: … { … }
bool GpuChannel_WaitForGetOffsetInRange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_WaitForGetOffsetInRange_Params_Data::GpuChannel_WaitForGetOffsetInRange_Params_Data()
: … { … }
bool GpuChannel_WaitForGetOffsetInRange_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuChannel_WaitForGetOffsetInRange_ResponseParams_Data::GpuChannel_WaitForGetOffsetInRange_ResponseParams_Data()
: … { … }
bool CommandBuffer_SetGetBuffer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_SetGetBuffer_Params_Data::CommandBuffer_SetGetBuffer_Params_Data()
: … { … }
bool CommandBuffer_RegisterTransferBuffer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_RegisterTransferBuffer_Params_Data::CommandBuffer_RegisterTransferBuffer_Params_Data()
: … { … }
bool CommandBuffer_CreateGpuFenceFromHandle_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_CreateGpuFenceFromHandle_Params_Data::CommandBuffer_CreateGpuFenceFromHandle_Params_Data()
: … { … }
bool CommandBuffer_GetGpuFenceHandle_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_GetGpuFenceHandle_Params_Data::CommandBuffer_GetGpuFenceHandle_Params_Data()
: … { … }
bool CommandBuffer_GetGpuFenceHandle_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_GetGpuFenceHandle_ResponseParams_Data::CommandBuffer_GetGpuFenceHandle_ResponseParams_Data()
: … { … }
bool CommandBuffer_SignalSyncToken_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_SignalSyncToken_Params_Data::CommandBuffer_SignalSyncToken_Params_Data()
: … { … }
bool CommandBuffer_SignalQuery_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBuffer_SignalQuery_Params_Data::CommandBuffer_SignalQuery_Params_Data()
: … { … }
bool CommandBufferClient_OnConsoleMessage_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferClient_OnConsoleMessage_Params_Data::CommandBufferClient_OnConsoleMessage_Params_Data()
: … { … }
bool CommandBufferClient_OnGpuSwitched_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferClient_OnGpuSwitched_Params_Data::CommandBufferClient_OnGpuSwitched_Params_Data()
: … { … }
bool CommandBufferClient_OnDestroyed_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferClient_OnDestroyed_Params_Data::CommandBufferClient_OnDestroyed_Params_Data()
: … { … }
bool CommandBufferClient_OnReturnData_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferClient_OnReturnData_Params_Data::CommandBufferClient_OnReturnData_Params_Data()
: … { … }
bool CommandBufferClient_OnSignalAck_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CommandBufferClient_OnSignalAck_Params_Data::CommandBufferClient_OnSignalAck_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::gpu::mojom::ContextType>::WriteIntoTrace(
perfetto::TracedValue context, ::gpu::mojom::ContextType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::gpu::mojom::ContextColorSpace>::WriteIntoTrace(
perfetto::TracedValue context, ::gpu::mojom::ContextColorSpace value) { … }
}
namespace perfetto {
void TraceFormatTraits<::gpu::mojom::SchedulingPriority>::WriteIntoTrace(
perfetto::TracedValue context, ::gpu::mojom::SchedulingPriority value) { … }
}