#include "media/gpu/chromeos/fake_chromeos_intel_compressed_gpu_memory_buffer.h"
#include <drm_fourcc.h>
#include <fcntl.h>
#include "base/atomic_sequence_num.h"
#include "media/gpu/chromeos/chromeos_compressed_gpu_memory_buffer_video_frame_utils.h"
namespace media {
namespace {
base::ScopedFD GetDummyFD() { … }
}
FakeChromeOSIntelCompressedGpuMemoryBuffer::
FakeChromeOSIntelCompressedGpuMemoryBuffer(const gfx::Size& size,
gfx::BufferFormat format,
uint64_t modifier)
: … { … }
FakeChromeOSIntelCompressedGpuMemoryBuffer::
~FakeChromeOSIntelCompressedGpuMemoryBuffer() = default;
bool FakeChromeOSIntelCompressedGpuMemoryBuffer::Map() { … }
void* FakeChromeOSIntelCompressedGpuMemoryBuffer::memory(size_t plane) { … }
void FakeChromeOSIntelCompressedGpuMemoryBuffer::Unmap() { … }
gfx::Size FakeChromeOSIntelCompressedGpuMemoryBuffer::GetSize() const { … }
gfx::BufferFormat FakeChromeOSIntelCompressedGpuMemoryBuffer::GetFormat()
const { … }
int FakeChromeOSIntelCompressedGpuMemoryBuffer::stride(size_t plane) const { … }
gfx::GpuMemoryBufferId FakeChromeOSIntelCompressedGpuMemoryBuffer::GetId()
const { … }
gfx::GpuMemoryBufferType FakeChromeOSIntelCompressedGpuMemoryBuffer::GetType()
const { … }
gfx::GpuMemoryBufferHandle
FakeChromeOSIntelCompressedGpuMemoryBuffer::CloneHandle() const { … }
void FakeChromeOSIntelCompressedGpuMemoryBuffer::OnMemoryDump(
base::trace_event::ProcessMemoryDump* pmd,
const base::trace_event::MemoryAllocatorDumpGuid& buffer_dump_guid,
uint64_t tracing_process_id,
int importance) const { … }
uint64_t FakeChromeOSIntelCompressedGpuMemoryBuffer::plane_offset(
size_t plane) const { … }
uint64_t FakeChromeOSIntelCompressedGpuMemoryBuffer::plane_size(
size_t plane) const { … }
}