#include "ui/gfx/mojom/buffer_types.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 "ui/gfx/mojom/buffer_types.mojom-params-data.h"
namespace gfx {
namespace mojom {
NOINLINE static const char* BufferFormatToStringHelper(BufferFormat value) { … }
std::string BufferFormatToString(BufferFormat value) { … }
std::ostream& operator<<(std::ostream& os, BufferFormat value) { … }
NOINLINE static const char* BufferUsageToStringHelper(BufferUsage value) { … }
std::string BufferUsageToString(BufferUsage value) { … }
std::ostream& operator<<(std::ostream& os, BufferUsage value) { … }
NOINLINE static const char* BufferPlaneToStringHelper(BufferPlane value) { … }
std::string BufferPlaneToString(BufferPlane value) { … }
std::ostream& operator<<(std::ostream& os, BufferPlane value) { … }
namespace internal {
bool BufferUsageAndFormat_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
BufferUsageAndFormat_Data::BufferUsageAndFormat_Data()
: … { … }
bool GpuMemoryBufferId_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuMemoryBufferId_Data::GpuMemoryBufferId_Data()
: … { … }
bool GpuMemoryBufferHandle_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GpuMemoryBufferHandle_Data::GpuMemoryBufferHandle_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::gfx::mojom::BufferFormat>::WriteIntoTrace(
perfetto::TracedValue context, ::gfx::mojom::BufferFormat value) { … }
}
namespace perfetto {
void TraceFormatTraits<::gfx::mojom::BufferUsage>::WriteIntoTrace(
perfetto::TracedValue context, ::gfx::mojom::BufferUsage value) { … }
}
namespace perfetto {
void TraceFormatTraits<::gfx::mojom::BufferPlane>::WriteIntoTrace(
perfetto::TracedValue context, ::gfx::mojom::BufferPlane value) { … }
}