chromium/media/gpu/vaapi/test/fake_libva_driver/scoped_bo_mapping_factory.cc

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

#include "media/gpu/vaapi/test/fake_libva_driver/scoped_bo_mapping_factory.h"

#include <linux/dma-buf.h>
#include <sys/ioctl.h>
#include <sys/mman.h>

#include "base/check_op.h"
#include "base/notreached.h"
#include "base/posix/eintr_wrapper.h"

namespace media::internal {

ScopedBOMapping::ScopedAccess::ScopedAccess(const ScopedBOMapping& mapping)
    :{}

ScopedBOMapping::ScopedAccess::~ScopedAccess() {}

uint8_t* ScopedBOMapping::ScopedAccess::GetData(size_t plane) const {}

uint32_t ScopedBOMapping::ScopedAccess::GetStride(size_t plane) const {}

ScopedBOMapping::ScopedBOMapping()
    :{}

ScopedBOMapping::ScopedBOMapping(
    ScopedBOMappingFactory* scoped_bo_mapping_factory,
    std::vector<Plane> planes,
    struct gbm_bo* bo_import)
    :{}

ScopedBOMapping::ScopedBOMapping(ScopedBOMapping&& other)
    :{}

ScopedBOMapping& ScopedBOMapping::operator=(ScopedBOMapping&& other) {}

ScopedBOMapping::~ScopedBOMapping() {}

ScopedBOMapping::Plane::Plane(uint32_t stride,
                              void* addr,
                              void* mmap_data,
                              int prime_fd)
    :{}

ScopedBOMapping::Plane::Plane(Plane&& other)
    :{}

ScopedBOMapping::Plane& ScopedBOMapping::Plane::operator=(
    ScopedBOMapping::Plane&& other) {}

ScopedBOMapping::Plane::~Plane() = default;

ScopedBOMapping::ScopedAccess ScopedBOMapping::BeginAccess() const {}

ScopedBOMappingFactory::ScopedBOMappingFactory(int drm_fd)
    :{}

ScopedBOMappingFactory::~ScopedBOMappingFactory() = default;

ScopedBOMapping ScopedBOMappingFactory::Create(
    gbm_import_fd_modifier_data import_data) {}

void ScopedBOMappingFactory::UnmapAndDestroyBufferObject(
    std::vector<ScopedBOMapping::Plane> planes,
    struct gbm_bo* bo_import) {}

}  // namespace media::internal