20 #ifndef MIR_PLATFORM_ANDROID_GRAPHIC_BUFFER_ALLOCATOR_H_ 21 #define MIR_PLATFORM_ANDROID_GRAPHIC_BUFFER_ALLOCATOR_H_ 23 #include <hardware/hardware.h> 41 class CommandStreamSyncFactory;
47 std::shared_ptr<CommandStreamSyncFactory>
const& cmdstream_sync_factory,
48 std::shared_ptr<DeviceQuirks>
const& quirks);
61 const hw_module_t *hw_module;
62 std::shared_ptr<Gralloc> alloc_device;
63 std::shared_ptr<EGLExtensions>
const egl_extensions;
64 std::shared_ptr<CommandStreamSyncFactory>
const cmdstream_sync_factory;
Interface to graphic buffer allocation.
Definition: graphic_buffer_allocator.h:37
All things Mir.
Definition: atomic_callback.h:25
std::unique_ptr< graphics::Buffer > reconstruct_from(MirNativeBuffer *anwb, MirPixelFormat)
Definition: graphic_buffer_allocator.cpp:100
Definition: mir_native_buffer.h:30
std::shared_ptr< graphics::Buffer > alloc_buffer(graphics::BufferProperties const &buffer_properties) override
Allocates a buffer.
Definition: graphic_buffer_allocator.cpp:82
GraphicBufferAllocator()=default
Definition: graphic_buffer_allocator.h:43
std::shared_ptr< graphics::Buffer > alloc_framebuffer(geometry::Size sz, MirPixelFormat pf)
Definition: graphic_buffer_allocator.cpp:91
Buffer creation properties.
Definition: buffer_properties.h:48
Definition: android_input_receiver.h:36
std::vector< MirPixelFormat > supported_pixel_formats() override
The supported buffer pixel formats.
Definition: graphic_buffer_allocator.cpp:119