mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
context: Add an accessor to get display associated with the context
https://bugzilla.gnome.org/show_bug.cgi?id=657347 Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
4e1d08d59e
commit
6584c183f0
@ -495,6 +495,12 @@ _cogl_context_get_default (void)
|
||||
return _context;
|
||||
}
|
||||
|
||||
CoglDisplay *
|
||||
cogl_context_get_display (CoglContext *context)
|
||||
{
|
||||
return context->display;
|
||||
}
|
||||
|
||||
#ifdef COGL_HAS_EGL_SUPPORT
|
||||
EGLDisplay
|
||||
cogl_egl_context_get_egl_display (CoglContext *context)
|
||||
|
@ -61,6 +61,10 @@ CoglContext *
|
||||
cogl_context_new (CoglDisplay *display,
|
||||
GError **error);
|
||||
|
||||
#define cogl_context_get_display cogl_context_get_display_EXP
|
||||
CoglDisplay *
|
||||
cogl_context_get_display (CoglContext *context);
|
||||
|
||||
#ifdef COGL_HAS_EGL_SUPPORT
|
||||
#define cogl_egl_context_get_egl_display cogl_egl_context_get_egl_display_EXP
|
||||
EGLDisplay
|
||||
|
@ -72,6 +72,7 @@ cogl_wayland_display_set_compositor_display
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_context_new
|
||||
cogl_context_get_display
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_push_matrix
|
||||
|
Loading…
Reference in New Issue
Block a user