19 #ifndef MIR_GRAPHICS_ANDROID_RESOURCE_FACTORY_H_
20 #define MIR_GRAPHICS_ANDROID_RESOURCE_FACTORY_H_
31 class ResourceFactory :
public DisplayResourceFactory
34 ResourceFactory(
bool should_log_hwc);
37 std::shared_ptr<hwc_composer_device_1> create_hwc_native_device()
const;
38 std::shared_ptr<framebuffer_device_t> create_fb_native_device()
const;
41 std::shared_ptr<DisplayDevice> create_fb_device(
42 std::shared_ptr<framebuffer_device_t>
const& fb_native_device)
const;
43 std::shared_ptr<DisplayDevice> create_hwc_device(
44 std::shared_ptr<hwc_composer_device_1>
const& hwc_native_device)
const;
45 std::shared_ptr<DisplayDevice> create_hwc_fb_device(
46 std::shared_ptr<hwc_composer_device_1>
const& hwc_native_device,
47 std::shared_ptr<framebuffer_device_t>
const& fb_native_device)
const;
49 std::shared_ptr<ANativeWindow> create_native_window(
50 std::shared_ptr<FramebufferBundle>
const& fb_bundle)
const;
52 bool const should_log_hwc;