aboutsummaryrefslogtreecommitdiff
path: root/hwc2_device/DrmHwcTwo.h
diff options
context:
space:
mode:
Diffstat (limited to 'hwc2_device/DrmHwcTwo.h')
-rw-r--r--hwc2_device/DrmHwcTwo.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/hwc2_device/DrmHwcTwo.h b/hwc2_device/DrmHwcTwo.h
index 2b8a74f..81c5155 100644
--- a/hwc2_device/DrmHwcTwo.h
+++ b/hwc2_device/DrmHwcTwo.h
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-#ifndef ANDROID_DRM_HWC_TWO_H_
-#define ANDROID_DRM_HWC_TWO_H_
+#pragma once
#include <hardware/hwcomposer2.h>
@@ -31,7 +30,7 @@ class DrmHwcTwo : public PipelineToFrontendBindingInterface {
std::pair<HWC2_PFN_HOTPLUG, hwc2_callback_data_t> hotplug_callback_{};
std::pair<HWC2_PFN_VSYNC, hwc2_callback_data_t> vsync_callback_{};
-#if PLATFORM_SDK_VERSION > 29
+#if __ANDROID_API__ > 29
std::pair<HWC2_PFN_VSYNC_2_4, hwc2_callback_data_t> vsync_2_4_callback_{};
std::pair<HWC2_PFN_VSYNC_PERIOD_TIMING_CHANGED, hwc2_callback_data_t>
period_timing_changed_callback_{};
@@ -72,7 +71,7 @@ class DrmHwcTwo : public PipelineToFrontendBindingInterface {
int64_t timestamp) const;
private:
- void SendHotplugEventToClient(hwc2_display_t displayid, bool connected);
+ void SendHotplugEventToClient(hwc2_display_t displayid, bool connected) const;
ResourceManager resource_manager_;
std::map<hwc2_display_t, std::unique_ptr<HwcDisplay>> displays_;
@@ -86,5 +85,3 @@ class DrmHwcTwo : public PipelineToFrontendBindingInterface {
uint32_t last_display_handle_ = kPrimaryDisplay;
};
} // namespace android
-
-#endif