From 431d86000fb1491ca15eeab6f9bd027c6a75f477 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 15 Aug 2017 02:32:23 -0500 Subject: Add OpenGL Renderer to benchmark result details For the GPU Drawing benchmark at least, it should give some idea of the graphics capabilities of the machine. This is the only data hardinfo currently has about that. Maybe in the future, more advanced GPU information could be given. Signed-off-by: Burt P --- modules/computer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/computer.c') diff --git a/modules/computer.c b/modules/computer.c index 513d94f5..8c4e4345 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -645,6 +645,13 @@ gchar *get_os(void) return g_strdup(computer->os->distro); } +gchar *get_ogl_renderer(void) +{ + scan_display(FALSE); + + return g_strdup(computer->display->ogl_renderer); +} + gchar *get_display_summary(void) { scan_display(FALSE); @@ -689,6 +696,7 @@ ShellModuleMethod *hi_exported_methods(void) {"getOSKernel", get_os_kernel}, {"getOS", get_os}, {"getDisplaySummary", get_display_summary}, + {"getOGLRenderer", get_ogl_renderer}, {"getAudioCards", get_audio_cards}, {"getKernelModuleDescription", get_kernel_module_description}, {NULL} -- cgit v1.2.3