20 #ifndef MIR_GRAPHICS_ANDROID_FB_SIMPLE_SWAPPER_H_ 21 #define MIR_GRAPHICS_ANDROID_FB_SIMPLE_SWAPPER_H_ 25 #include <hardware/gralloc.h> 26 #include <hardware/fb.h> 27 #include <condition_variable> 38 class GraphicBufferAllocator;
47 unsigned int num_framebuffers);
56 std::mutex queue_lock;
57 std::shared_ptr<Buffer> buffer_being_rendered;
58 std::condition_variable cv;
59 std::queue<std::shared_ptr<graphics::Buffer>> queue;
All things Mir.
Definition: atomic_callback.h:25
Definition: framebuffers.h:40
Framebuffers(GraphicBufferAllocator &buffer_allocator, geometry::Size size, MirPixelFormat format, unsigned int num_framebuffers)
Definition: framebuffers.cpp:27
std::shared_ptr< Buffer > last_rendered_buffer() override
Definition: framebuffers.cpp:63
Definition: framebuffer_bundle.h:36
Definition: graphic_buffer_allocator.h:43
geometry::Size fb_size() override
Definition: framebuffers.cpp:38
Definition: android_input_receiver.h:36
std::shared_ptr< Buffer > buffer_for_render() override
Definition: framebuffers.cpp:43