Hi,

All UIs with opengl support have simliar code to handle opengl
framebuffers.  Create some helpers and put them into use to reduce
code duplication.

Gerd Hoffmann (4):
  egl-helpers: add helpers to handle opengl framebuffers
  egl-headless: use framebuffer helper functions.
  sdl2: use framebuffer helper functions.
  gtk: use framebuffer helper functions.

 include/ui/egl-helpers.h | 14 ++++++++++
 include/ui/gtk.h         |  4 +--
 include/ui/sdl2.h        |  8 ++++--
 ui/egl-headless.c        | 67 ++++++++++++----------------------------------
 ui/egl-helpers.c         | 69 ++++++++++++++++++++++++++++++++++++++++++++++++
 ui/gtk-egl.c             | 38 ++++++--------------------
 ui/gtk-gl-area.c         | 26 +++++-------------
 ui/sdl2-gl.c             | 38 ++++++--------------------
 8 files changed, 131 insertions(+), 133 deletions(-)

-- 
2.9.3


Reply via email to