#ifndef GPU_IPC_COMMON_GPU_PREFERENCES_MOJOM_SHARED_H_
#define GPU_IPC_COMMON_GPU_PREFERENCES_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "gpu/ipc/common/gpu_preferences.mojom-shared-internal.h"
#include "mojo/public/mojom/base/message_pump_type.mojom-shared.h"
#include "ui/gfx/mojom/buffer_types.mojom-shared.h"
namespace gpu::mojom {
class GpuPreferencesDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::gpu::mojom::GpuPreferencesDataView> { … };
}
}
namespace gpu::mojom {
enum class VulkanImplementationName : int32_t { … };
std::ostream& operator<<(std::ostream& os, VulkanImplementationName value);
inline bool IsKnownEnumValue(VulkanImplementationName value) { … }
enum class WebGPUAdapterName : int32_t { … };
std::ostream& operator<<(std::ostream& os, WebGPUAdapterName value);
inline bool IsKnownEnumValue(WebGPUAdapterName value) { … }
enum class WebGPUPowerPreference : int32_t { … };
std::ostream& operator<<(std::ostream& os, WebGPUPowerPreference value);
inline bool IsKnownEnumValue(WebGPUPowerPreference value) { … }
enum class GrContextType : int32_t { … };
std::ostream& operator<<(std::ostream& os, GrContextType value);
inline bool IsKnownEnumValue(GrContextType value) { … }
enum class DawnBackendValidationLevel : int32_t { … };
std::ostream& operator<<(std::ostream& os, DawnBackendValidationLevel value);
inline bool IsKnownEnumValue(DawnBackendValidationLevel value) { … }
class GpuPreferencesDataView { … };
}
namespace std {
template <>
struct hash<::gpu::mojom::VulkanImplementationName>
: public mojo::internal::EnumHashImpl<::gpu::mojom::VulkanImplementationName> { … };
template <>
struct hash<::gpu::mojom::WebGPUAdapterName>
: public mojo::internal::EnumHashImpl<::gpu::mojom::WebGPUAdapterName> { … };
template <>
struct hash<::gpu::mojom::WebGPUPowerPreference>
: public mojo::internal::EnumHashImpl<::gpu::mojom::WebGPUPowerPreference> { … };
template <>
struct hash<::gpu::mojom::GrContextType>
: public mojo::internal::EnumHashImpl<::gpu::mojom::GrContextType> { … };
template <>
struct hash<::gpu::mojom::DawnBackendValidationLevel>
: public mojo::internal::EnumHashImpl<::gpu::mojom::DawnBackendValidationLevel> { … };
}
namespace mojo {
namespace internal {
Serializer< ::gpu::mojom::VulkanImplementationName, MaybeConstUserType>;
}
namespace internal {
Serializer< ::gpu::mojom::WebGPUAdapterName, MaybeConstUserType>;
}
namespace internal {
Serializer< ::gpu::mojom::WebGPUPowerPreference, MaybeConstUserType>;
}
namespace internal {
Serializer< ::gpu::mojom::GrContextType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::gpu::mojom::DawnBackendValidationLevel, MaybeConstUserType>;
}
namespace internal {
Serializer< ::gpu::mojom::GpuPreferencesDataView, MaybeConstUserType>;
}
}
namespace gpu::mojom {
inline void GpuPreferencesDataView::GetEnabledDawnFeaturesListDataView(
mojo::ArrayDataView<mojo::StringDataView>* output) { … }
inline void GpuPreferencesDataView::GetDisabledDawnFeaturesListDataView(
mojo::ArrayDataView<mojo::StringDataView>* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::gpu::mojom::VulkanImplementationName> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::gpu::mojom::WebGPUAdapterName> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::gpu::mojom::WebGPUPowerPreference> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::gpu::mojom::GrContextType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::gpu::mojom::DawnBackendValidationLevel> { … };
}
#endif