#include "ui/ozone/platform/wayland/host/wayland_shm.h"
#include "base/logging.h"
#include "ui/ozone/platform/wayland/host/wayland_buffer_factory.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
}
constexpr char WaylandShm::kInterfaceName[];
void WaylandShm::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
WaylandShm::WaylandShm(wl_shm* shm, WaylandConnection* connection)
: … { … }
WaylandShm::~WaylandShm() = default;
wl::Object<wl_buffer> WaylandShm::CreateBuffer(const base::ScopedFD& fd,
size_t length,
const gfx::Size& size,
bool with_alpha_channel) { … }
}