chromium/ui/ozone/platform/wayland/host/wayland_buffer_factory.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/ozone/platform/wayland/host/wayland_buffer_factory.h"

#include <memory>

#include "ui/ozone/platform/wayland/host/wayland_drm.h"
#include "ui/ozone/platform/wayland/host/wayland_zwp_linux_dmabuf.h"

namespace ui {

WaylandBufferFactory::WaylandBufferFactory() = default;

WaylandBufferFactory::~WaylandBufferFactory() = default;

void WaylandBufferFactory::CreateDmabufBuffer(
    const base::ScopedFD& fd,
    const gfx::Size& size,
    const std::vector<uint32_t>& strides,
    const std::vector<uint32_t>& offsets,
    const std::vector<uint64_t>& modifiers,
    uint32_t format,
    uint32_t planes_count,
    wl::OnRequestBufferCallback callback) const {}

wl::Object<struct wl_buffer> WaylandBufferFactory::CreateShmBuffer(
    const base::ScopedFD& fd,
    size_t length,
    const gfx::Size& size,
    bool with_alpha_channel) const {}

wl::BufferFormatsWithModifiersMap
WaylandBufferFactory::GetSupportedBufferFormats() const {}

bool WaylandBufferFactory::SupportsDmabuf() const {}

bool WaylandBufferFactory::CanCreateDmabufImmed() const {}

}  // namespace ui