1
0
Fork 0
mutter-performance-source/examples
Neil Roberts a29b8c475e wayland: Add a convenience function to update a region from SHM buffer
Adds cogl_wayland_texture_set_region_from_shm_buffer which is a
convenience wrapper around cogl_texture_set_region but it uses the
correct format to copy the data from a Wayland SHM buffer. This will
typically be used by compositors to update the texture for a surface
when an SHM buffer is attached. The ordering of the arguments is based
on cogl_texture_set_region_from_bitmap.

Based on a patch by Jasper St. Pierre.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit c76c1d136d2cac7f3d1331a4d1dc0dd0f06e812c)

Conflicts:
	examples/cogland.c
2013-11-28 18:12:22 +00:00
..
android/hello examples: Fix the first colour in the triangle_vertices 2013-04-22 13:01:45 +01:00
cogl-basic-video-player.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-crate.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-emscripten-hello.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
cogl-gles2-context.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-gles2-gears.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-hello.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-info.c Add support for per-vertex point sizes 2013-06-07 16:53:29 +01:00
cogl-msaa.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-point-sprites.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-sdl-hello.c Add _primitive_draw to replace _framebuffer_draw_primitive 2013-07-29 18:31:36 +01:00
cogl-sdl2-hello.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-x11-foreign.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogl-x11-tfp.c Declare interface types as void and remove cast macros 2013-11-27 19:33:44 +00:00
cogland.c wayland: Add a convenience function to update a region from SHM buffer 2013-11-28 18:12:22 +00:00
crate.jpg Adds another example that draws a 3D crate 2011-06-30 14:33:11 +01:00
emscripten-example-js-library.js emscripten-hello: improve mainloop integration 2013-05-29 19:30:44 +01:00
emscripten-example-js.h emscripten-hello: improve mainloop integration 2013-05-29 19:30:44 +01:00
Makefile.am Add a cogl-point-sprites example 2013-08-21 15:40:09 +01:00