Mir
|
Go to the source code of this file.
Functions | |
void | mir_connection_allocate_buffer (MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage, mir_buffer_callback available_callback, void *available_context) |
Allocate a MirBuffer and do not wait for the server to return it. More... | |
bool | mir_buffer_is_valid (MirBuffer *buffer) |
Test for a valid buffer. More... | |
char const * | mir_buffer_get_error_message (MirBuffer *buffer) |
Retrieve a text description an error associated with a MirBuffer. More... | |
void | mir_buffer_set_callback (MirBuffer *buffer, mir_buffer_callback available_callback, void *available_context) |
Reassign the callback that the MirBuffer will call when the buffer is available for use again. More... | |
void | mir_buffer_release (MirBuffer *buffer) |
release a MirBuffer More... | |
Fenced Buffer content access functions. | |
These functions will wait until it is safe to access the buffer for the given purpose. If used with mir_none, the buffer will be given the buffer immediately, and without synchronization. It is then up to the user to ensure that the buffer contents are not accessed at inapproprate times.
| |
MirNativeBuffer * | mir_buffer_get_native_buffer (MirBuffer *, MirBufferAccess access) |
Access the native buffer associated with MirBuffer for a given purpose. More... | |
MirGraphicsRegion | mir_buffer_get_graphics_region (MirBuffer *buffer, MirBufferAccess access) |
Access a CPU-mapped region associated with a given buffer for the given purpose. More... | |
MirNativeFence * | mir_buffer_get_fence (MirBuffer *) |
Retrieve the native fence associated with this buffer. More... | |
void | mir_buffer_associate_fence (MirBuffer *buffer, MirNativeFence *native_fence, MirBufferAccess access) |
Protect the buffer's contents by associating a native fence with it. More... | |
int | mir_buffer_wait_for_access (MirBuffer *buffer, MirBufferAccess access, int timeout) |
Wait for the fence associated with the buffer to signal. More... | |
unsigned int | mir_buffer_get_width (MirBuffer *buffer) |
Retrieve the width of the buffer in pixels. More... | |
unsigned int | mir_buffer_get_height (MirBuffer *buffer) |
Retrieve the height of the buffer in pixels. More... | |
MirPixelFormat | mir_buffer_get_pixel_format (MirBuffer *buffer) |
Retrieve the pixel format of the buffer. More... | |
MirBufferUsage | mir_buffer_get_buffer_usage (MirBuffer *buffer) |
Retrieve the buffer usage of the buffer. More... | |
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016