~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "overlay_optimization.h"
23
23
#include "display_resource_factory.h"
 
24
#include "power_mode.h"
24
25
#include <hardware/hwcomposer.h>
25
26
 
26
27
namespace mir
34
35
public:
35
36
    virtual ~HwcReport() = default;
36
37
 
37
 
    virtual void report_list_submitted_to_prepare(hwc_display_contents_1_t const& list) const = 0;
38
 
    virtual void report_prepare_done(hwc_display_contents_1_t const& list) const = 0;
39
 
    virtual void report_set_list(hwc_display_contents_1_t const& list) const = 0;
 
38
    virtual void report_list_submitted_to_prepare(
 
39
        std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const = 0;
 
40
    virtual void report_prepare_done(
 
41
        std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const = 0;
 
42
    virtual void report_set_list(
 
43
        std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const = 0;
 
44
    virtual void report_set_done(
 
45
        std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const = 0;
40
46
    virtual void report_overlay_optimization(OverlayOptimization optimization_option) const = 0;
41
47
    virtual void report_display_on() const = 0;
42
48
    virtual void report_display_off() const = 0;
44
50
    virtual void report_vsync_off() const = 0;
45
51
    virtual void report_hwc_version(HwcVersion) const = 0;
46
52
    virtual void report_legacy_fb_module() const = 0;
 
53
    virtual void report_power_mode(PowerMode mode) const = 0;
 
54
 
 
55
    void set_version(HwcVersion version) { hwc_version = version; }
47
56
 
48
57
protected:
49
58
    HwcReport() = default;
50
59
    HwcReport& operator=(HwcReport const&) = delete;
51
60
    HwcReport(HwcReport const&) = delete;
 
61
    HwcVersion hwc_version{unknown};
52
62
};
53
63
}
54
64
}