20 #ifndef MIR_PLATFORM_ANDROID_ANDROID_BUFFER_ALLOCATOR_H_
21 #define MIR_PLATFORM_ANDROID_ANDROID_BUFFER_ALLOCATOR_H_
23 #include <hardware/hardware.h>
34 class BufferInitializer;
40 class GraphicAllocAdaptor;
42 class AndroidGraphicBufferAllocator:
public GraphicBufferAllocator,
public graphics::GraphicBufferAllocator
45 AndroidGraphicBufferAllocator(
46 std::shared_ptr<BufferInitializer>
const& buffer_initializer);
49 graphics::BufferProperties
const& buffer_properties);
51 std::shared_ptr<Buffer> alloc_buffer_platform(
60 std::shared_ptr<GraphicAllocAdaptor> alloc_device;
61 std::shared_ptr<BufferInitializer>
const buffer_initializer;
62 std::shared_ptr<EGLExtensions>
const egl_extensions;