#include "ui/ozone/platform/wayland/host/wayland_shm_buffer.h"
#include "base/logging.h"
#include "base/memory/platform_shared_memory_region.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/ozone/platform/wayland/host/wayland_buffer_factory.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
namespace ui {
WaylandShmBuffer::WaylandShmBuffer(WaylandBufferFactory* buffer_factory,
const gfx::Size& size)
: … { … }
WaylandShmBuffer::~WaylandShmBuffer() = default;
WaylandShmBuffer::WaylandShmBuffer(WaylandShmBuffer&& buffer) = default;
WaylandShmBuffer& WaylandShmBuffer::operator=(WaylandShmBuffer&& buffer) =
default;
void WaylandShmBuffer::Initialize(WaylandBufferFactory* buffer_factory) { … }
uint8_t* WaylandShmBuffer::GetMemory() const { … }
}