mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
c/main: Rename to calc_frame_pacing
This commit is contained in:
parent
d969bc334f
commit
40caa24d4b
|
@ -152,7 +152,7 @@ compositor_predict_frame(struct xrt_compositor *xc,
|
|||
uint64_t present_slop_ns = 0;
|
||||
uint64_t desired_present_time_ns = 0;
|
||||
uint64_t predicted_display_time_ns = 0;
|
||||
comp_target_calc_frame_timings( //
|
||||
comp_target_calc_frame_pacing( //
|
||||
c->target, //
|
||||
&frame_id, //
|
||||
&wake_up_time_ns, //
|
||||
|
|
|
@ -169,7 +169,7 @@ struct comp_target
|
|||
* Predict when the next frame should be started and when it will be
|
||||
* turned into photons by the hardware.
|
||||
*/
|
||||
void (*calc_frame_timings)(struct comp_target *ct,
|
||||
void (*calc_frame_pacing)(struct comp_target *ct,
|
||||
int64_t *out_frame_id,
|
||||
uint64_t *out_wake_up_time_ns,
|
||||
uint64_t *out_desired_present_time_ns,
|
||||
|
@ -348,13 +348,13 @@ comp_target_flush(struct comp_target *ct)
|
|||
}
|
||||
|
||||
/*!
|
||||
* @copydoc comp_target::calc_frame_timings
|
||||
* @copydoc comp_target::calc_frame_pacing
|
||||
*
|
||||
* @public @memberof comp_target
|
||||
* @ingroup comp_main
|
||||
*/
|
||||
static inline void
|
||||
comp_target_calc_frame_timings(struct comp_target *ct,
|
||||
comp_target_calc_frame_pacing(struct comp_target *ct,
|
||||
int64_t *out_frame_id,
|
||||
uint64_t *out_wake_up_time_ns,
|
||||
uint64_t *out_desired_present_time_ns,
|
||||
|
@ -363,7 +363,7 @@ comp_target_calc_frame_timings(struct comp_target *ct,
|
|||
{
|
||||
COMP_TRACE_MARKER();
|
||||
|
||||
ct->calc_frame_timings( //
|
||||
ct->calc_frame_pacing( //
|
||||
ct, //
|
||||
out_frame_id, //
|
||||
out_wake_up_time_ns, //
|
||||
|
|
|
@ -582,7 +582,7 @@ comp_target_swapchain_create_image_views(struct comp_target_swapchain *cts)
|
|||
*/
|
||||
|
||||
static void
|
||||
comp_target_swapchain_calc_frame_timings(struct comp_target *ct,
|
||||
comp_target_swapchain_calc_frame_pacing(struct comp_target *ct,
|
||||
int64_t *out_frame_id,
|
||||
uint64_t *out_wake_up_time_ns,
|
||||
uint64_t *out_desired_present_time_ns,
|
||||
|
@ -726,7 +726,7 @@ comp_target_swapchain_init_and_set_fnptrs(struct comp_target_swapchain *cts,
|
|||
cts->base.has_images = comp_target_swapchain_has_images;
|
||||
cts->base.acquire = comp_target_swapchain_acquire_next_image;
|
||||
cts->base.present = comp_target_swapchain_present;
|
||||
cts->base.calc_frame_timings = comp_target_swapchain_calc_frame_timings;
|
||||
cts->base.calc_frame_pacing = comp_target_swapchain_calc_frame_pacing;
|
||||
cts->base.mark_timing_point = comp_target_swapchain_mark_timing_point;
|
||||
cts->base.update_timings = comp_target_swapchain_update_timings;
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ struct comp_target_swapchain
|
|||
* - comp_target::has_images
|
||||
* - comp_target::acquire
|
||||
* - comp_target::present
|
||||
* - comp_target::calc_frame_timings
|
||||
* - comp_target::calc_frame_pacing
|
||||
* - comp_target::mark_timing_point
|
||||
* - comp_target::update_timings
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue