#include "ui/ozone/platform/wayland/host/single_pixel_buffer.h"
#include <single-pixel-buffer-v1-client-protocol.h>
#include <wayland-util.h>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/common/wayland_object.h"
#include "ui/ozone/platform/wayland/common/wayland_util.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
namespace ui {
namespace {
constexpr uint32_t kVersion = …;
}
constexpr char SinglePixelBuffer::kInterfaceName[];
void SinglePixelBuffer::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
SinglePixelBuffer::SinglePixelBuffer(
wp_single_pixel_buffer_manager_v1* single_pixel_buffer,
WaylandConnection* connection)
: … { … }
SinglePixelBuffer::~SinglePixelBuffer() = default;
wl::Object<wl_buffer> SinglePixelBuffer::CreateSinglePixelBuffer(
const SkColor4f& color) { … }
}