Lines Matching full:gr

42 query_fps(struct hud_graph *gr, struct pipe_context *pipe)  in query_fps()  argument
44 struct fps_info *info = gr->query_data; in query_fps()
52 hud_graph_add_value(gr, frametime); in query_fps()
55 else if (info->last_time + gr->pane->period <= now) { in query_fps()
61 hud_graph_add_value(gr, fps); in query_fps()
78 struct hud_graph *gr = CALLOC_STRUCT(hud_graph); in hud_fps_graph_install() local
80 if (!gr) in hud_fps_graph_install()
83 strcpy(gr->name, "fps"); in hud_fps_graph_install()
84 gr->query_data = CALLOC_STRUCT(fps_info); in hud_fps_graph_install()
85 if (!gr->query_data) { in hud_fps_graph_install()
86 FREE(gr); in hud_fps_graph_install()
89 struct fps_info *info = gr->query_data; in hud_fps_graph_install()
92 gr->query_new_value = query_fps; in hud_fps_graph_install()
97 gr->free_query_data = free_query_data; in hud_fps_graph_install()
99 hud_pane_add_graph(pane, gr); in hud_fps_graph_install()
105 struct hud_graph *gr = CALLOC_STRUCT(hud_graph); in hud_frametime_graph_install() local
107 if (!gr) in hud_frametime_graph_install()
110 strcpy(gr->name, "frametime (ms)"); in hud_frametime_graph_install()
111 gr->query_data = CALLOC_STRUCT(fps_info); in hud_frametime_graph_install()
112 if (!gr->query_data) { in hud_frametime_graph_install()
113 FREE(gr); in hud_frametime_graph_install()
116 struct fps_info *info = gr->query_data; in hud_frametime_graph_install()
119 gr->query_new_value = query_fps; in hud_frametime_graph_install()
121 gr->free_query_data = free_query_data; in hud_frametime_graph_install()
123 hud_pane_add_graph(pane, gr); in hud_frametime_graph_install()