Mir
|
#include "mir_toolkit/mir_presentation_chain.h"
#include "mir_toolkit/mir_buffer.h"
#include "presentation_chain.h"
#include "buffer.h"
#include "mir/require.h"
#include "mir/uncaught.h"
#include <stdexcept>
#include <boost/throw_exception.hpp>
Functions | |
void | mir_presentation_chain_allocate_buffer (MirPresentationChain *chain, 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... | |
MirNativeFence * | mir_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... | |
MirNativeBuffer * | mir_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... | |
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016