#ifndef SKIA_PUBLIC_MOJOM_IMAGE_INFO_MOJOM_SHARED_H_
#define SKIA_PUBLIC_MOJOM_IMAGE_INFO_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 "skia/public/mojom/image_info.mojom-shared-internal.h"
namespace skia::mojom {
class ImageInfoDataView;
class BitmapN32ImageInfoDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::skia::mojom::ImageInfoDataView> { … };
template <>
struct MojomTypeTraits<::skia::mojom::BitmapN32ImageInfoDataView> { … };
}
}
namespace skia::mojom {
enum class ColorType : int32_t { … };
std::ostream& operator<<(std::ostream& os, ColorType value);
inline bool IsKnownEnumValue(ColorType value) { … }
inline ColorType ToKnownEnumValue(ColorType value) { … }
enum class AlphaType : int32_t { … };
std::ostream& operator<<(std::ostream& os, AlphaType value);
inline bool IsKnownEnumValue(AlphaType value) { … }
inline AlphaType ToKnownEnumValue(AlphaType value) { … }
class ImageInfoDataView { … };
class BitmapN32ImageInfoDataView { … };
}
namespace std {
template <>
struct hash<::skia::mojom::ColorType>
: public mojo::internal::EnumHashImpl<::skia::mojom::ColorType> { … };
template <>
struct hash<::skia::mojom::AlphaType>
: public mojo::internal::EnumHashImpl<::skia::mojom::AlphaType> { … };
}
namespace mojo {
namespace internal {
Serializer< ::skia::mojom::ColorType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::skia::mojom::AlphaType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::skia::mojom::ImageInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::skia::mojom::BitmapN32ImageInfoDataView, MaybeConstUserType>;
}
}
namespace skia::mojom {
inline void ImageInfoDataView::GetColorTransferFunctionDataView(
mojo::ArrayDataView<float>* output) { … }
inline void ImageInfoDataView::GetColorToXyzMatrixDataView(
mojo::ArrayDataView<float>* output) { … }
inline void BitmapN32ImageInfoDataView::GetColorTransferFunctionDataView(
mojo::ArrayDataView<float>* output) { … }
inline void BitmapN32ImageInfoDataView::GetColorToXyzMatrixDataView(
mojo::ArrayDataView<float>* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::skia::mojom::ColorType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::skia::mojom::AlphaType> { … };
}
#endif