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

namespace media::internal {

FakeDriver::FakeDriver(int drm_fd) :{}

FakeDriver::~FakeDriver() = default;

FakeConfig::IdType FakeDriver::CreateConfig(
    VAProfile profile,
    VAEntrypoint entrypoint,
    std::vector<VAConfigAttrib> attrib_list) {}

bool FakeDriver::ConfigExists(FakeConfig::IdType id) {}

const FakeConfig& FakeDriver::GetConfig(FakeConfig::IdType id) {}

void FakeDriver::DestroyConfig(FakeConfig::IdType id) {}

FakeSurface::IdType FakeDriver::CreateSurface(
    unsigned int format,
    unsigned int width,
    unsigned int height,
    std::vector<VASurfaceAttrib> attrib_list) {}

bool FakeDriver::SurfaceExists(FakeSurface::IdType id) {}

const FakeSurface& FakeDriver::GetSurface(FakeSurface::IdType id) {}

void FakeDriver::DestroySurface(FakeSurface::IdType id) {}

FakeContext::IdType FakeDriver::CreateContext(
    VAConfigID config_id,
    int picture_width,
    int picture_height,
    int flag,
    std::vector<VASurfaceID> render_targets) {}

bool FakeDriver::ContextExists(FakeContext::IdType id) {}

const FakeContext& FakeDriver::GetContext(FakeContext::IdType id) {}

void FakeDriver::DestroyContext(FakeContext::IdType id) {}

FakeBuffer::IdType FakeDriver::CreateBuffer(VAContextID context,
                                            VABufferType type,
                                            unsigned int size_per_element,
                                            unsigned int num_elements,
                                            const void* data) {}

bool FakeDriver::BufferExists(FakeBuffer::IdType id) {}

const FakeBuffer& FakeDriver::GetBuffer(FakeBuffer::IdType id) {}

void FakeDriver::DestroyBuffer(FakeBuffer::IdType id) {}

void FakeDriver::CreateImage(const VAImageFormat& format,
                             int width,
                             int height,
                             VAImage* va_image) {}

bool FakeDriver::ImageExists(FakeImage::IdType id) {}

const FakeImage& FakeDriver::GetImage(FakeImage::IdType id) {}

void FakeDriver::DestroyImage(FakeImage::IdType id) {}

}  // namespace media::internal