#include "base/numerics/checked_math.h"
#include "media/gpu/vaapi/test/fake_libva_driver/fake_buffer.h"
namespace {
size_t CalculateDataSize(unsigned int size_per_element,
unsigned int num_elements) { … }
}
namespace media::internal {
FakeBuffer::FakeBuffer(IdType id,
VAContextID context,
VABufferType type,
unsigned int size_per_element,
unsigned int num_elements,
const void* data)
: … { … }
FakeBuffer::~FakeBuffer() = default;
FakeBuffer::IdType FakeBuffer::GetID() const { … }
VAContextID FakeBuffer::GetContextID() const { … }
VABufferType FakeBuffer::GetType() const { … }
size_t FakeBuffer::GetDataSize() const { … }
void* FakeBuffer::GetData() const { … }
}