#ifndef SKIA_PUBLIC_MOJOM_BITMAP_MOJOM_H_
#define SKIA_PUBLIC_MOJOM_BITMAP_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "skia/public/mojom/bitmap.mojom-features.h"
#include "skia/public/mojom/bitmap.mojom-shared.h"
#include "skia/public/mojom/bitmap.mojom-forward.h"
#include "mojo/public/mojom/base/big_buffer.mojom.h"
#include "skia/public/mojom/image_info.mojom.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "skia/public/mojom/bitmap_skbitmap_mojom_traits.h"
namespace skia::mojom {
class BitmapN32 { … };
template <typename T, BitmapN32::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BitmapN32::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BitmapN32::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BitmapN32::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BitmapWithArbitraryBpp { … };
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BitmapMappedFromTrustedProcess { … };
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class InlineBitmap { … };
template <typename T, InlineBitmap::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, InlineBitmap::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, InlineBitmap::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, InlineBitmap::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BitmapN32Ptr BitmapN32::Clone() const { … }
template <typename T, BitmapN32::EnableIfSame<T>*>
bool BitmapN32::Equals(const T& other_struct) const { … }
template <typename T, BitmapN32::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BitmapWithArbitraryBppPtr BitmapWithArbitraryBpp::Clone() const { … }
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>*>
bool BitmapWithArbitraryBpp::Equals(const T& other_struct) const { … }
template <typename T, BitmapWithArbitraryBpp::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BitmapMappedFromTrustedProcessPtr BitmapMappedFromTrustedProcess::Clone() const { … }
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>*>
bool BitmapMappedFromTrustedProcess::Equals(const T& other_struct) const { … }
template <typename T, BitmapMappedFromTrustedProcess::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
InlineBitmapPtr InlineBitmap::Clone() const { … }
template <typename T, InlineBitmap::EnableIfSame<T>*>
bool InlineBitmap::Equals(const T& other_struct) const { … }
template <typename T, InlineBitmap::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::skia::mojom::BitmapN32::DataView,
::skia::mojom::BitmapN32Ptr> { … };
template <>
struct StructTraits<::skia::mojom::BitmapWithArbitraryBpp::DataView,
::skia::mojom::BitmapWithArbitraryBppPtr> { … };
template <>
struct StructTraits<::skia::mojom::BitmapMappedFromTrustedProcess::DataView,
::skia::mojom::BitmapMappedFromTrustedProcessPtr> { … };
template <>
struct StructTraits<::skia::mojom::InlineBitmap::DataView,
::skia::mojom::InlineBitmapPtr> { … };
}
#endif