Mir
hwc_report.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_GRAPHICS_ANDROID_HWC_REPORT_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_REPORT_H_
21 
22 #include "overlay_optimization.h"
24 #include <hardware/hwcomposer.h>
25 
26 namespace mir
27 {
28 namespace graphics
29 {
30 namespace android
31 {
32 class HwcReport
33 {
34 public:
35  virtual ~HwcReport() = default;
36 
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;
40  virtual void report_overlay_optimization(OverlayOptimization optimization_option) const = 0;
41  virtual void report_display_on() const = 0;
42  virtual void report_display_off() const = 0;
43  virtual void report_vsync_on() const = 0;
44  virtual void report_vsync_off() const = 0;
45  virtual void report_hwc_version(HwcVersion) const = 0;
46  virtual void report_legacy_fb_module() const = 0;
47 
48 protected:
49  HwcReport() = default;
50  HwcReport& operator=(HwcReport const&) = delete;
51  HwcReport(HwcReport const&) = delete;
52 };
53 }
54 }
55 }
56 #endif /* MIR_GRAPHICS_ANDROID_HWC_REPORT_H_ */
All things Mir.
Definition: buffer_stream.h:37
Definition: hwc_report.h:32
virtual void report_overlay_optimization(OverlayOptimization optimization_option) const =0
virtual void report_prepare_done(hwc_display_contents_1_t const &list) const =0
virtual void report_vsync_off() const =0
virtual void report_list_submitted_to_prepare(hwc_display_contents_1_t const &list) const =0
virtual void report_hwc_version(HwcVersion) const =0
OverlayOptimization
Definition: overlay_optimization.h:28
virtual void report_legacy_fb_module() const =0
virtual void report_set_list(hwc_display_contents_1_t const &list) const =0
virtual void report_vsync_on() const =0
virtual void report_display_on() const =0
Definition: android_input_receiver.h:32
HwcVersion
Definition: display_resource_factory.h:42
virtual void report_display_off() const =0
HwcReport & operator=(HwcReport const &)=delete

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015