diff options
Diffstat (limited to 'hwc2_device/HwcDisplay.h')
-rw-r--r-- | hwc2_device/HwcDisplay.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hwc2_device/HwcDisplay.h b/hwc2_device/HwcDisplay.h index 8ff9a92..cd33ebe 100644 --- a/hwc2_device/HwcDisplay.h +++ b/hwc2_device/HwcDisplay.h @@ -106,7 +106,7 @@ class HwcDisplay { float *min_luminance); HWC2::Error GetReleaseFences(uint32_t *num_elements, hwc2_layer_t *layers, int32_t *fences); - HWC2::Error PresentDisplay(int32_t *present_fence); + HWC2::Error PresentDisplay(int32_t *out_present_fence); HWC2::Error SetActiveConfig(hwc2_config_t config); HWC2::Error ChosePreferredConfig(); HWC2::Error SetClientTarget(buffer_handle_t target, int32_t acquire_fence, @@ -199,6 +199,8 @@ class HwcDisplay { DrmHwcTwo *const hwc2_; + UniqueFd present_fence_; + std::optional<DrmMode> staged_mode_; int64_t staged_mode_change_time_{}; uint32_t staged_mode_config_id_{}; |