mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
30be7bd543
We can use the GL_ARB_timer_query extension (available since OpenGL 3.2, and part of the OpenGL specification since version 3.3) to query the time elapsed when drawing each frame. This allows us to gather timing information on our use of the GPU.
19 lines
548 B
C
19 lines
548 B
C
#ifndef __GSK_GL_PROFILER_PRIVATE_H__
|
|
#define __GSK_GL_PROFILER_PRIVATE_H__
|
|
|
|
#include <gsk/gsktypes.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_GL_PROFILER (gsk_gl_profiler_get_type ())
|
|
G_DECLARE_FINAL_TYPE (GskGLProfiler, gsk_gl_profiler, GSK, GL_PROFILER, GObject)
|
|
|
|
GskGLProfiler * gsk_gl_profiler_new (void);
|
|
|
|
void gsk_gl_profiler_begin_gpu_region (GskGLProfiler *profiler);
|
|
guint64 gsk_gl_profiler_end_gpu_region (GskGLProfiler *profiler);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_GL_PROFILER_PRIVATE_H__ */
|