mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +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;
|
return _context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CoglDisplay *
|
||||||
|
cogl_context_get_display (CoglContext *context)
|
||||||
|
{
|
||||||
|
return context->display;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef COGL_HAS_EGL_SUPPORT
|
#ifdef COGL_HAS_EGL_SUPPORT
|
||||||
EGLDisplay
|
EGLDisplay
|
||||||
cogl_egl_context_get_egl_display (CoglContext *context)
|
cogl_egl_context_get_egl_display (CoglContext *context)
|
||||||
|
@ -61,6 +61,10 @@ CoglContext *
|
|||||||
cogl_context_new (CoglDisplay *display,
|
cogl_context_new (CoglDisplay *display,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
#define cogl_context_get_display cogl_context_get_display_EXP
|
||||||
|
CoglDisplay *
|
||||||
|
cogl_context_get_display (CoglContext *context);
|
||||||
|
|
||||||
#ifdef COGL_HAS_EGL_SUPPORT
|
#ifdef COGL_HAS_EGL_SUPPORT
|
||||||
#define cogl_egl_context_get_egl_display cogl_egl_context_get_egl_display_EXP
|
#define cogl_egl_context_get_egl_display cogl_egl_context_get_egl_display_EXP
|
||||||
EGLDisplay
|
EGLDisplay
|
||||||
|
@ -72,6 +72,7 @@ cogl_wayland_display_set_compositor_display
|
|||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
cogl_context_new
|
cogl_context_new
|
||||||
|
cogl_context_get_display
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
cogl_push_matrix
|
cogl_push_matrix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user