Mir
Functions
mir_buffer_stream.h File Reference
#include <mir_toolkit/mir_native_buffer.h>
#include <mir_toolkit/client_types.h>
#include <mir_toolkit/deprecations.h>
Include dependency graph for mir_buffer_stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool mir_buffer_stream_is_valid (MirBufferStream *buffer_stream)
 Test for a valid buffer stream. More...
 
char const * mir_buffer_stream_get_error_message (MirBufferStream *buffer_stream)
 Retrieve a text description of the error. More...
 
MirWaitHandlemir_connection_create_buffer_stream (MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage, MirBufferStreamCallback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_render_surface_get_buffer_stream instead")
 Create a new buffer stream. More...
 
MirBufferStreammir_connection_create_buffer_stream_sync (MirConnection *connection, int width, int height, MirPixelFormat format, MirBufferUsage buffer_usage) MIR_FOR_REMOVAL_IN_VERSION_1("Use mir_render_surface_get_buffer_stream instead")
 Create a new buffer stream unattached to a surface and wait for the result. More...
 
MirWaitHandlemir_buffer_stream_release (MirBufferStream *buffer_stream, MirBufferStreamCallback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("A stream obtained through mir_render_surface_get_buffer_stream() does not need to be released.")
 Release the supplied stream and any associated buffer. More...
 
void mir_buffer_stream_release_sync (MirBufferStream *buffer_stream) MIR_FOR_REMOVAL_IN_VERSION_1("A stream obtained through mir_render_surface_get_buffer_stream() does not need to be released.")
 Release the specified buffer stream like in mir,_buffer_stream_release(), but also wait for the operation to complete. More...
 
MirPlatformType mir_buffer_stream_get_platform_type (MirBufferStream *stream) MIR_FOR_REMOVAL_IN_VERSION_1("To identify the graphics platform use mir_connection_get_graphics_module(). \ "To safely interpret the buffer contents use mir_buffer_stream_get_graphics_region()")
 Get the underlying platform type so the buffer obtained in "raw" representation in mir_buffer_stream_get_current_buffer() may be understood. More...
 
void mir_buffer_stream_get_current_buffer (MirBufferStream *buffer_stream, MirNativeBuffer **buffer_package) MIR_FOR_REMOVAL_IN_VERSION_1("Use platform specific buffer extensions instead")
 Retrieve the current buffer in "raw" representation. More...
 
MirWaitHandlemir_buffer_stream_swap_buffers (MirBufferStream *buffer_stream, MirBufferStreamCallback callback, void *context) MIR_FOR_REMOVAL_IN_VERSION_1("For non-blocking swaps use mir_buffer_stream_swap_buffers_sync with an interval of zero." " And a client API for manual vsync will soon be available.")
 Advance a buffer stream's buffer. More...
 
void mir_buffer_stream_swap_buffers_sync (MirBufferStream *buffer_stream)
 Advance a buffer stream's buffer as in mir_buffer stream_swap_buffers(), but also wait for the operation to complete. More...
 
bool mir_buffer_stream_get_graphics_region (MirBufferStream *buffer_stream, MirGraphicsRegion *graphics_region)
 Retrieve a buffer stream's graphics region. More...
 
MirEGLNativeWindowType mir_buffer_stream_get_egl_native_window (MirBufferStream *buffer_stream) MIR_FOR_REMOVAL_IN_VERSION_1("Use MirRenderSurface *as the window type")
 Retrieve a window type which may be used by EGL. More...
 
MirWaitHandlemir_buffer_stream_set_scale (MirBufferStream *buffer_stream, float scale) MIR_FOR_REMOVAL_IN_VERSION_1("Functionality replaced by the introduction of MirRenderSurface")
 Set the scale associated with all buffers in the stream. More...
 
void mir_buffer_stream_set_scale_sync (MirBufferStream *buffer_stream, float scale) MIR_FOR_REMOVAL_IN_VERSION_1("Functionality replaced by the introduction of MirRenderSurface")
 Set the scale as in mir_buffer_stream_set_scale(), but also wait for the operation to complete. More...
 
MirWaitHandlemir_buffer_stream_set_swapinterval (MirBufferStream *stream, int interval)
 Set the swapinterval for the stream. More...
 
int mir_buffer_stream_get_swapinterval (MirBufferStream *stream)
 Query the swapinterval that the stream is operating with. More...
 
unsigned long mir_buffer_stream_get_microseconds_till_vblank (MirBufferStream const *stream)
 Query the approximate time interval in microseconds until the next vblank for a given buffer stream (actually the next vblank for the monitor deemed most relevant to the window using the buffer stream). More...
 
void mir_buffer_stream_set_size (MirBufferStream *stream, int width, int height)
 Set the physical size of the buffers provided by the buffer stream. More...
 
void mir_buffer_stream_get_size (MirBufferStream *stream, int *width, int *height)
 Get the physical size of the next buffer that will be provided by the stream. More...
 

Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:06:43 UTC 2018