Mir
Functions
mir_buffer_api.cpp File Reference
#include "mir_toolkit/mir_presentation_chain.h"
#include "mir_toolkit/mir_buffer.h"
#include "presentation_chain.h"
#include "mir_connection.h"
#include "buffer.h"
#include "mir/require.h"
#include "mir/uncaught.h"
#include <stdexcept>
#include <boost/throw_exception.hpp>
Include dependency graph for mir_buffer_api.cpp:

Functions

void mir_connection_allocate_buffer (MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage usage, mir_buffer_callback cb, void *context)
 Allocate a MirBuffer and do not wait for the server to return it. More...
 
void mir_buffer_release (MirBuffer *b)
 release a MirBuffer More...
 
MirNativeFencemir_buffer_get_fence (MirBuffer *b)
 Retrieve the native fence associated with this buffer. More...
 
void mir_buffer_associate_fence (MirBuffer *b, MirNativeFence *fence, MirBufferAccess access)
 Protect the buffer's contents by associating a native fence with it. More...
 
int mir_buffer_wait_for_access (MirBuffer *b, MirBufferAccess access, int timeout)
 Wait for the fence associated with the buffer to signal. More...
 
MirNativeBuffermir_buffer_get_native_buffer (MirBuffer *b, MirBufferAccess access)
 Access the native buffer associated with MirBuffer for a given purpose. More...
 
MirGraphicsRegion mir_buffer_get_graphics_region (MirBuffer *b, MirBufferAccess access)
 Access a CPU-mapped region associated with a given buffer for the given purpose. More...
 
unsigned int mir_buffer_get_width (MirBuffer *b)
 Retrieve the width of the buffer in pixels. More...
 
unsigned int mir_buffer_get_height (MirBuffer *b)
 Retrieve the height of the buffer in pixels. More...
 
MirPixelFormat mir_buffer_get_pixel_format (MirBuffer *b)
 Retrieve the pixel format of the buffer. More...
 
MirBufferUsage mir_buffer_get_buffer_usage (MirBuffer *b)
 Retrieve the buffer usage of the buffer. More...
 
bool mir_buffer_is_valid (MirBuffer *b)
 Test for a valid buffer. More...
 
char const * mir_buffer_get_error_message (MirBuffer *b)
 Retrieve a text description an error associated with a MirBuffer. More...
 
void mir_buffer_set_callback (MirBuffer *b, 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...
 

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016