chromium/out/Default/gen/gpu/ipc/common/gpu_preferences.mojom-shared.h

// gpu/ipc/common/gpu_preferences.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

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

#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;



}  // gpu::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::gpu::mojom::GpuPreferencesDataView> {};

}  // namespace internal
}  // namespace mojo


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 {};


}  // gpu::mojom

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 std

namespace mojo {


namespace internal {

Serializer< ::gpu::mojom::VulkanImplementationName, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gpu::mojom::WebGPUAdapterName, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gpu::mojom::WebGPUPowerPreference, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gpu::mojom::GrContextType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gpu::mojom::DawnBackendValidationLevel, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::gpu::mojom::GpuPreferencesDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace gpu::mojom {

inline void GpuPreferencesDataView::GetEnabledDawnFeaturesListDataView(
    mojo::ArrayDataView<mojo::StringDataView>* output) {}
inline void GpuPreferencesDataView::GetDisabledDawnFeaturesListDataView(
    mojo::ArrayDataView<mojo::StringDataView>* output) {}



}  // gpu::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct  TraceFormatTraits<::gpu::mojom::VulkanImplementationName> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gpu::mojom::WebGPUAdapterName> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gpu::mojom::WebGPUPowerPreference> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gpu::mojom::GrContextType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::gpu::mojom::DawnBackendValidationLevel> {};

} // namespace perfetto

#endif  // GPU_IPC_COMMON_GPU_PREFERENCES_MOJOM_SHARED_H_