#include "media/gpu/chromeos/gpu_buffer_layout.h"
#include <sstream>
#include "media/gpu/macros.h"
namespace media {
namespace {
template <class T>
std::string VectorToString(const std::vector<T>& vec) { … }
}
std::optional<GpuBufferLayout> GpuBufferLayout::Create(
const Fourcc& fourcc,
const gfx::Size& size,
const std::vector<ColorPlaneLayout>& planes,
uint64_t modifier) { … }
GpuBufferLayout::GpuBufferLayout(const Fourcc& fourcc,
const gfx::Size& size,
const std::vector<ColorPlaneLayout>& planes,
uint64_t modifier)
: … { … }
GpuBufferLayout::~GpuBufferLayout() = default;
GpuBufferLayout::GpuBufferLayout(const GpuBufferLayout&) = default;
GpuBufferLayout::GpuBufferLayout(GpuBufferLayout&&) = default;
GpuBufferLayout& GpuBufferLayout::operator=(const GpuBufferLayout& other) =
default;
bool GpuBufferLayout::operator==(const GpuBufferLayout& rhs) const { … }
bool GpuBufferLayout::operator!=(const GpuBufferLayout& rhs) const { … }
std::ostream& operator<<(std::ostream& ostream, const GpuBufferLayout& layout) { … }
}