Kristian Høgsberg
4226385e53
compositor: Destroy gles2 resource for weston_surface in gles2-renderer.c
...
This moves the last gles2 call out of compositor.c.
14 years ago
Kristian Høgsberg
3a0de88abf
compositor: Move unbind_display call into gles2-renderer.c
14 years ago
Kristian Høgsberg
9793fc7a4e
compositor: Move EGL context creation to gles2-renderer.c
14 years ago
Kristian Høgsberg
2bc5e8eaf8
compositor: Create outputs before initializing GLES2 state
...
This way we can just use the first weston_output EGLSurface to make a
context current.
14 years ago
Kristian Høgsberg
fa1be023a2
compositor: Introduce a weston_renderer object
...
Move the gles2 render functions to vfuncs on the renderer object.
14 years ago
Kristian Høgsberg
b7b77e6f8f
compositor: Move EGL/GLES2 parts of weston_surface_attach to gles2-renderer.c
14 years ago
Kristian Høgsberg
b1fd2d6dd8
compositor: Move update_shm_texture() to gles2-renderer.c
...
We rename it flush_damage() as it's the point where we update our rendering
API source (eg, the gles2 texture) according to the accumulated damage,
if necessary.
14 years ago
Kristian Høgsberg
25894fc920
compositor: Move gles2 initialization to gles2-renderer.h
14 years ago
Kristian Høgsberg
ecf6edec1f
compositor: Move surface repaint code to gles2-renderer.c
14 years ago
Kristian Høgsberg
d7c172648d
compositor: Consolidate output repaint logic
...
We move the EGL and GLES2 output repaint code into a new gles2-render.c
file. The eglMakeCurrent, glViewPort, surface loop etc was duplicated
across all backends, but this patch moves it to a new file.
14 years ago