~vanvugt/mir/heresy

« back to all changes in this revision

Viewing changes to src/platforms/android/server/hal_component_factory.h

  • Committer: Daniel van Vugt
  • Date: 2015-06-03 07:35:16 UTC
  • mfrom: (2600.2.13 development-branch)
  • Revision ID: daniel.van.vugt@canonical.com-20150603073516-av54iqy9ngrkrf2t
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "display_component_factory.h"
23
23
#include "display_resource_factory.h"
24
 
#include "device_quirks.h"
25
24
 
26
25
namespace mir
27
26
{
36
35
class DisplayDevice;
37
36
class HwcWrapper;
38
37
class HwcReport;
 
38
class DeviceQuirks;
39
39
 
40
40
//NOTE: this should be the only class that inspects the HWC version and assembles
41
41
//the components accordingly
45
45
    HalComponentFactory(
46
46
        std::shared_ptr<GraphicBufferAllocator> const& buffer_allocator,
47
47
        std::shared_ptr<DisplayResourceFactory> const& res_factory,
48
 
        std::shared_ptr<HwcReport> const& hwc_report);
 
48
        std::shared_ptr<HwcReport> const& hwc_report,
 
49
        std::shared_ptr<DeviceQuirks> const& quirks);
49
50
 
50
51
    std::unique_ptr<FramebufferBundle> create_framebuffers(DisplayConfigurationOutput const&) override;
51
52
    std::unique_ptr<DisplayDevice> create_display_device() override;
53
54
    std::unique_ptr<LayerList> create_layer_list() override;
54
55
 
55
56
private:
56
 
    DeviceQuirks quirks{PropertiesOps{}};
57
57
    std::shared_ptr<GraphicBufferAllocator> const buffer_allocator;
58
58
    std::shared_ptr<DisplayResourceFactory> const res_factory;
59
59
    std::shared_ptr<HwcReport> const hwc_report;