19 #ifndef MIR_TEST_DOUBLES_STUB_BUFFER_ALLOCATOR_H_
20 #define MIR_TEST_DOUBLES_STUB_BUFFER_ALLOCATOR_H_
25 #include <gmock/gmock.h>
26 #include <gtest/gtest.h>
43 return std::make_shared<StubBuffer>(properties);
56 #endif // MIR_TEST_DOUBLES_STUB_BUFFER_ALLOCATOR_H_
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
std::vector< MirPixelFormat > supported_pixel_formats()
The supported buffer pixel formats.
Definition: stub_buffer_allocator.h:46
std::shared_ptr< graphics::Buffer > alloc_buffer(graphics::BufferProperties const &properties)
Allocates a buffer.
Definition: stub_buffer_allocator.h:40
Definition: stub_buffer_allocator.h:38
Buffer creation properties.
Definition: buffer_properties.h:48