~vanvugt/mir/heresy

« back to all changes in this revision

Viewing changes to src/platforms/android/server/device_quirks.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:
22
22
#include <hybris/properties/properties.h>
23
23
#include <string>
24
24
 
 
25
namespace boost{ namespace program_options {class options_description;}}
 
26
 
25
27
namespace mir
26
28
{
 
29
namespace options{ class Option; }
27
30
namespace graphics
28
31
{
29
32
namespace android
55
58
{
56
59
public:
57
60
    DeviceQuirks(PropertiesWrapper const& properties);
 
61
    DeviceQuirks(PropertiesWrapper const& properties, mir::options::Option const& options);
58
62
 
59
63
    unsigned int num_framebuffers() const;
60
64
    bool gralloc_reopenable_after_close() const;
61
65
    int aligned_width(int width) const;
62
66
 
 
67
    static void add_options(boost::program_options::options_description& config);
 
68
 
63
69
private:
64
70
    DeviceQuirks(DeviceQuirks const&) = delete;
65
71
    DeviceQuirks & operator=(DeviceQuirks const&) = delete;
66
72
    std::string const device_name;
67
73
    unsigned int const num_framebuffers_;
68
74
    bool const gralloc_reopenable_after_close_;
 
75
    bool const enable_width_alignment_quirk;
69
76
};
70
77
}
71
78
}