Mir
hwc_loggers.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_LOGGERS_H_
20 #define MIR_GRAPHICS_ANDROID_HWC_LOGGERS_H_
21 
22 #include "hwc_report.h"
23 
24 namespace mir
25 {
26 namespace graphics
27 {
28 namespace android
29 {
31 {
32 public:
33  HwcFormattedLogger() = default;
35  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const override;
37  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const override;
38  void report_set_list(
39  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const override;
40  void report_set_done(
41  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const& displays) const override;
42  void report_overlay_optimization(OverlayOptimization optimization_option) const override;
43  void report_display_on() const override;
44  void report_display_off() const override;
45  void report_vsync_on() const override;
46  void report_vsync_off() const override;
47  void report_hwc_version(HwcVersion) const override;
48  void report_legacy_fb_module() const override;
49  void report_power_mode(PowerMode mode) const override;
50 };
51 
52 class NullHwcReport : public HwcReport
53 {
54 public:
55  NullHwcReport() = default;
57  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const&) const override;
59  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const&) const override;
60  void report_set_list(
61  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const&) const override;
62  void report_set_done(
63  std::array<hwc_display_contents_1_t*, HWC_NUM_DISPLAY_TYPES> const&) const override;
65  void report_display_on() const override;
66  void report_display_off() const override;
67  void report_vsync_on() const override;
68  void report_vsync_off() const override;
69  void report_hwc_version(HwcVersion) const override;
70  void report_legacy_fb_module() const override;
71  void report_power_mode(PowerMode mode) const override;
72 };
73 }
74 }
75 }
76 #endif /* MIR_GRAPHICS_ANDROID_HWC_LOGGERS_H_ */
void report_legacy_fb_module() const override
Definition: hwc_loggers.cpp:321
All things Mir.
Definition: atomic_callback.h:25
void report_display_on() const override
Definition: hwc_loggers.cpp:296
Definition: hwc_report.h:33
void report_vsync_on() const override
Definition: hwc_loggers.cpp:306
void report_set_done(std::array< hwc_display_contents_1_t *, HWC_NUM_DISPLAY_TYPES > const &displays) const override
Definition: hwc_loggers.cpp:273
void report_display_off() const override
Definition: hwc_loggers.cpp:301
OverlayOptimization
Definition: overlay_optimization.h:28
void report_list_submitted_to_prepare(std::array< hwc_display_contents_1_t *, HWC_NUM_DISPLAY_TYPES > const &displays) const override
Definition: hwc_loggers.cpp:196
PowerMode
Definition: power_mode.h:31
void report_set_list(std::array< hwc_display_contents_1_t *, HWC_NUM_DISPLAY_TYPES > const &displays) const override
Definition: hwc_loggers.cpp:250
void report_overlay_optimization(OverlayOptimization optimization_option) const override
Definition: hwc_loggers.cpp:291
void report_power_mode(PowerMode mode) const override
Definition: hwc_loggers.cpp:326
void report_vsync_off() const override
Definition: hwc_loggers.cpp:311
Definition: hwc_loggers.h:52
Definition: android_input_receiver.h:36
HwcVersion
Definition: display_resource_factory.h:42
void report_prepare_done(std::array< hwc_display_contents_1_t *, HWC_NUM_DISPLAY_TYPES > const &displays) const override
Definition: hwc_loggers.cpp:231
void report_hwc_version(HwcVersion) const override
Definition: hwc_loggers.cpp:316
Definition: hwc_loggers.h:30

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016