chromium/third_party/blink/renderer/platform/video_capture/gpu_memory_buffer_test_support.cc

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

#include "third_party/blink/renderer/platform/video_capture/gpu_memory_buffer_test_support.h"

#include "components/viz/test/test_context_provider.h"
#include "media/video/fake_gpu_memory_buffer.h"
#include "media/video/mock_gpu_video_accelerator_factories.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

Return;

namespace blink {

namespace {

class FakeGpuMemoryBufferImpl : public gpu::GpuMemoryBufferImpl {};

}  // namespace

std::unique_ptr<gpu::GpuMemoryBufferImpl>
FakeGpuMemoryBufferSupport::CreateGpuMemoryBufferImplFromHandle(
    gfx::GpuMemoryBufferHandle handle,
    const gfx::Size& size,
    gfx::BufferFormat format,
    gfx::BufferUsage usage,
    gpu::GpuMemoryBufferImpl::DestructionCallback callback,
    gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
    scoped_refptr<base::UnsafeSharedMemoryPool> pool,
    base::span<uint8_t> premapped_memory) {}

TestingPlatformSupportForGpuMemoryBuffer::
    TestingPlatformSupportForGpuMemoryBuffer()
    :{}

TestingPlatformSupportForGpuMemoryBuffer::
    ~TestingPlatformSupportForGpuMemoryBuffer() {}

media::GpuVideoAcceleratorFactories*
TestingPlatformSupportForGpuMemoryBuffer::GetGpuFactories() {}

void TestingPlatformSupportForGpuMemoryBuffer::SetGpuCapabilities(
    gpu::Capabilities* capabilities) {}

void TestingPlatformSupportForGpuMemoryBuffer::SetSharedImageCapabilities(
    const gpu::SharedImageCapabilities& shared_image_capabilities) {}

}  // namespace blink