mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
clutter: Add swap time and GPU rendering duration to FrameInfo
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1762>
This commit is contained in:
parent
1116b14f38
commit
8c4a91ddd6
@ -149,6 +149,9 @@ struct _ClutterFrameInfo
|
||||
ClutterFrameInfoFlag flags;
|
||||
|
||||
unsigned int sequence;
|
||||
|
||||
int64_t gpu_rendering_duration_ns;
|
||||
int64_t cpu_time_before_buffer_swap_us;
|
||||
};
|
||||
|
||||
typedef struct _ClutterCapture
|
||||
|
@ -849,6 +849,10 @@ frame_cb (CoglOnscreen *onscreen,
|
||||
cogl_frame_info_get_presentation_time_us (frame_info),
|
||||
.flags = flags,
|
||||
.sequence = cogl_frame_info_get_sequence (frame_info),
|
||||
.gpu_rendering_duration_ns =
|
||||
cogl_frame_info_get_rendering_duration_ns (frame_info),
|
||||
.cpu_time_before_buffer_swap_us =
|
||||
cogl_frame_info_get_time_before_buffer_swap_us (frame_info),
|
||||
};
|
||||
clutter_stage_view_notify_presented (view, &clutter_frame_info);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user