pixel-array: Allow passing of hints to cogl_buffer_map
authorRobert Bragg <robert@linux.intel.com>
Mon, 5 Jul 2010 15:14:00 +0000 (16:14 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 6 Jul 2010 11:07:28 +0000 (12:07 +0100)
commit82ba7220afcb03f87606a0a8800eb067f0962724
tree82a67b4c8300bc449d85e9dfc9c8079d43a8af41
parent0273b13d757ad968e29579e283aaf5c54a0e016c
pixel-array: Allow passing of hints to cogl_buffer_map

This allows you to tell Cogl that you are planning to replace all the
buffer's data once it is mapped with cogl_buffer_map. This means if the
buffer is currently being accessed by the GPU then the driver doesn't
have to stall and wait for it to finish before it can access it from the
CPU and can instead potentially allocate a new buffer with undefined
data and map that.
clutter/cogl/cogl/cogl-buffer-private.h
clutter/cogl/cogl/cogl-buffer.c
clutter/cogl/cogl/cogl-buffer.h
clutter/cogl/cogl/cogl-pixel-array.c
tests/conform/test-cogl-pixel-buffer.c