mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
53616a73e9
This attempts to improve the accuracy for the "presentation_time" of an individual GdkFrameTimings. That information is currently filled in as soon as we get a frame callback. However, if presentation-time wayland protocol is available, that will be used to supliment a more accurate time which may improve future presentation-time predictions within GdkFrameClockIdle. The protocol states that all related and sub surfaces will receive the same information so it is safe that this could be registered for more than just the toplevel. The information becomes idempotent.
20 lines
895 B
C
20 lines
895 B
C
#pragma once
|
|
|
|
#include <gdk/gdkframeclock.h>
|
|
#include <gdk/wayland/gdkdisplay-wayland.h>
|
|
#include <gdk/wayland/gdksurface-wayland.h>
|
|
#include <gdk/wayland/gdkwaylanddisplay.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GdkWaylandPresentationTime GdkWaylandPresentationTime;
|
|
|
|
GdkWaylandPresentationTime *gdk_wayland_presentation_time_new (GdkWaylandDisplay *display);
|
|
void gdk_wayland_presentation_time_track (GdkWaylandPresentationTime *self,
|
|
GdkFrameClock *frame_clock,
|
|
struct wl_surface *surface,
|
|
gint64 frame_number);
|
|
void gdk_wayland_presentation_time_free (GdkWaylandPresentationTime *self);
|
|
|
|
G_END_DECLS
|