19 #ifndef MIR_GRAPHICS_ANDROID_OUTPUT_BUILDER_H_
20 #define MIR_GRAPHICS_ANDROID_OUTPUT_BUILDER_H_
23 #include "hardware/hwcomposer.h"
24 #include "hardware/fb.h"
33 class FramebufferBundle;
34 class DisplayResourceFactory;
35 class GraphicBufferAllocator;
38 class OutputBuilder :
public DisplayBuilder
42 std::shared_ptr<GraphicBufferAllocator>
const& buffer_allocator,
43 std::shared_ptr<DisplayResourceFactory>
const& res_factory,
44 std::shared_ptr<DisplayReport>
const& display_report);
47 std::unique_ptr<ConfigurableDisplayBuffer> create_display_buffer(
48 GLContext
const& gl_context);
51 std::shared_ptr<GraphicBufferAllocator>
const buffer_allocator;
52 std::shared_ptr<DisplayResourceFactory>
const res_factory;
53 std::shared_ptr<DisplayReport>
const display_report;
55 std::shared_ptr<FramebufferBundle> framebuffers;
56 bool force_backup_display;
58 std::shared_ptr<hwc_composer_device_1> hwc_native;
59 std::shared_ptr<framebuffer_device_t> fb_native;