@@ -89,6 +89,7 @@ void gd_egl_draw(VirtualConsole *vc)
eglSwapBuffers(qemu_egl_display, vc->gfx.esurface);
+ gd_gl_count_frame(&vc->gfx.dcl, false);
vc->gfx.scale_x = (double)ww / surface_width(vc->gfx.ds);
vc->gfx.scale_y = (double)wh / surface_height(vc->gfx.ds);
}
@@ -290,6 +291,7 @@ void gd_egl_scanout_flush(DisplayChangeListener *dcl,
}
eglSwapBuffers(qemu_egl_display, vc->gfx.esurface);
+ gd_gl_count_frame(&vc->gfx.dcl, false);
}
void gtk_egl_init(DisplayGLMode mode)
@@ -72,6 +72,7 @@ void gd_gl_area_draw(VirtualConsole *vc)
}
glFlush();
+ gd_gl_count_frame(&vc->gfx.dcl, false);
graphic_hw_gl_flushed(vc->gfx.dcl.con);
}
For FPS calculation, gd_gl_frame_counter is called at every draw(gtk-gl-area) or swap(gtk-egl) activity. Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> --- ui/gtk-egl.c | 2 ++ ui/gtk-gl-area.c | 1 + 2 files changed, 3 insertions(+)