chromium/media/gpu/vaapi/test/fake_libva_driver/fake_surface.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 "media/gpu/vaapi/test/fake_libva_driver/fake_surface.h"

#include <drm_fourcc.h>
#include <va/va_drmcommon.h>

#include <unordered_set>

#include "base/check_op.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"

namespace media::internal {

FakeSurface::FakeSurface(FakeSurface::IdType id,
                         unsigned int format,
                         uint32_t va_fourcc,
                         unsigned int width,
                         unsigned int height,
                         std::vector<VASurfaceAttrib> attrib_list,
                         ScopedBOMapping mapped_bo)
    :{}

FakeSurface::~FakeSurface() = default;

std::unique_ptr<FakeSurface> FakeSurface::Create(
    IdType id,
    unsigned int format,
    unsigned int width,
    unsigned int height,
    std::vector<VASurfaceAttrib> attrib_list,
    ScopedBOMappingFactory& scoped_bo_mapping_factory) {}

FakeSurface::IdType FakeSurface::GetID() const {}

unsigned int FakeSurface::GetFormat() const {}

uint32_t FakeSurface::GetVAFourCC() const {}

unsigned int FakeSurface::GetWidth() const {}

unsigned int FakeSurface::GetHeight() const {}

const std::vector<VASurfaceAttrib>& FakeSurface::GetSurfaceAttribs() const {}

const ScopedBOMapping& FakeSurface::GetMappedBO() const {}

}  // namespace media::internal