#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 { … };
}
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) { … }
}