cogl/onscreen: Add cogl_onscreen_egl_maybe_create_timestamp_query
Move the code out of cogl_onscreen_egl_swap_buffers_with_damage, and call the new function from callers of the former. v2: * Use early return if the cogl context doesn't support timestamp queries. (Sebastian Wick) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3689>
This commit is contained in:

committed by
Michel Dänzer

parent
0bbc25f694
commit
09267d0bdd
@ -1305,6 +1305,8 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
||||
rectangles,
|
||||
n_rectangles);
|
||||
|
||||
cogl_onscreen_egl_maybe_create_timestamp_query (onscreen, frame_info);
|
||||
|
||||
parent_class = COGL_ONSCREEN_CLASS (meta_onscreen_native_parent_class);
|
||||
parent_class->swap_buffers_with_damage (onscreen,
|
||||
rectangles,
|
||||
|
Reference in New Issue
Block a user