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