18 #ifndef MIR_GRAPHICS_ANDROID_GRALLOC_MODULE_H_ 19 #define MIR_GRAPHICS_ANDROID_GRALLOC_MODULE_H_ 23 #include <hardware/gralloc.h> 34 class CommandStreamSyncFactory;
40 std::shared_ptr<struct alloc_device_t>
const& alloc_device,
41 std::shared_ptr<CommandStreamSyncFactory>
const& cmdstream_sync_factory,
42 std::shared_ptr<DeviceQuirks>
const& quirks);
51 std::shared_ptr<struct alloc_device_t> alloc_dev;
52 std::shared_ptr<CommandStreamSyncFactory>
const sync_factory;
53 std::shared_ptr<DeviceQuirks>
const quirks;
54 unsigned int convert_to_android_usage(
BufferUsage usage);
All things Mir.
Definition: atomic_callback.h:25
Definition: gralloc_module.h:36
std::shared_ptr< NativeBuffer > alloc_buffer(geometry::Size, MirPixelFormat, unsigned int usage_bitmask) override
Definition: gralloc_module.cpp:75
GrallocModule(std::shared_ptr< struct alloc_device_t > const &alloc_device, std::shared_ptr< CommandStreamSyncFactory > const &cmdstream_sync_factory, std::shared_ptr< DeviceQuirks > const &quirks)
Definition: gralloc_module.cpp:53
BufferUsage
How a buffer is going to be used.
Definition: buffer_properties.h:36
std::shared_ptr< NativeBuffer > alloc_framebuffer(geometry::Size size, MirPixelFormat) override
Definition: gralloc_module.cpp:69
Definition: android_input_receiver.h:36
int const size
Definition: make_socket_rpc_channel.cpp:51