mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
cogl/onscreen: Remove show()/hide()
Not used, and not relevant. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>
This commit is contained in:
parent
b0ec3a3ad7
commit
e43b95cd11
@ -544,37 +544,6 @@ cogl_onscreen_remove_frame_callback (CoglOnscreen *onscreen,
|
||||
_cogl_closure_disconnect (closure);
|
||||
}
|
||||
|
||||
void
|
||||
cogl_onscreen_show (CoglOnscreen *onscreen)
|
||||
{
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
const CoglWinsysVtable *winsys;
|
||||
|
||||
if (!cogl_framebuffer_is_allocated (framebuffer))
|
||||
{
|
||||
if (!cogl_framebuffer_allocate (framebuffer, NULL))
|
||||
return;
|
||||
}
|
||||
|
||||
winsys = _cogl_framebuffer_get_winsys (framebuffer);
|
||||
if (winsys->onscreen_set_visibility)
|
||||
winsys->onscreen_set_visibility (onscreen, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
cogl_onscreen_hide (CoglOnscreen *onscreen)
|
||||
{
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
|
||||
if (cogl_framebuffer_is_allocated (framebuffer))
|
||||
{
|
||||
const CoglWinsysVtable *winsys =
|
||||
_cogl_framebuffer_get_winsys (framebuffer);
|
||||
if (winsys->onscreen_set_visibility)
|
||||
winsys->onscreen_set_visibility (onscreen, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_onscreen_notify_frame_sync (CoglOnscreen *onscreen, CoglFrameInfo *info)
|
||||
{
|
||||
|
@ -958,22 +958,6 @@ _cogl_winsys_onscreen_glx_get_window_xid (CoglOnscreen *onscreen)
|
||||
return onscreen_glx->xwin;
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_glx_set_visibility (CoglOnscreen *onscreen,
|
||||
gboolean visibility)
|
||||
{
|
||||
CoglOnscreenGlx *onscreen_glx = COGL_ONSCREEN_GLX (onscreen);
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
CoglContext *context = cogl_framebuffer_get_context (framebuffer);
|
||||
CoglXlibRenderer *xlib_renderer =
|
||||
_cogl_xlib_renderer_get_data (context->display->renderer);
|
||||
|
||||
if (visibility)
|
||||
XMapWindow (xlib_renderer->xdpy, onscreen_glx->xwin);
|
||||
else
|
||||
XUnmapWindow (xlib_renderer->xdpy, onscreen_glx->xwin);
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen,
|
||||
gboolean resizable)
|
||||
|
@ -47,10 +47,6 @@ _cogl_winsys_onscreen_glx_get_buffer_age (CoglOnscreen *onscreen);
|
||||
uint32_t
|
||||
_cogl_winsys_onscreen_glx_get_window_xid (CoglOnscreen *onscreen);
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_glx_set_visibility (CoglOnscreen *onscreen,
|
||||
gboolean visibility);
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen,
|
||||
gboolean resizable);
|
||||
|
@ -196,23 +196,6 @@ cogl_onscreen_xlib_dispose (GObject *object)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_xlib_set_visibility (CoglOnscreen *onscreen,
|
||||
gboolean visibility)
|
||||
{
|
||||
CoglOnscreenXlib *onscreen_xlib = COGL_ONSCREEN_XLIB (onscreen);
|
||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
|
||||
CoglContext *context = cogl_framebuffer_get_context (framebuffer);
|
||||
CoglRenderer *renderer = context->display->renderer;
|
||||
CoglXlibRenderer *xlib_renderer =
|
||||
_cogl_xlib_renderer_get_data (renderer);
|
||||
|
||||
if (visibility)
|
||||
XMapWindow (xlib_renderer->xdpy, onscreen_xlib->xwin);
|
||||
else
|
||||
XUnmapWindow (xlib_renderer->xdpy, onscreen_xlib->xwin);
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen,
|
||||
gboolean resizable)
|
||||
|
@ -49,10 +49,6 @@ cogl_onscreen_xlib_new (CoglContext *context,
|
||||
void
|
||||
_cogl_winsys_egl_onscreen_xlib_deinit (CoglOnscreen *onscreen);
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_xlib_set_visibility (CoglOnscreen *onscreen,
|
||||
gboolean visibility);
|
||||
|
||||
void
|
||||
_cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen,
|
||||
gboolean resizable);
|
||||
|
@ -590,8 +590,6 @@ _cogl_winsys_egl_xlib_get_vtable (void)
|
||||
vtable.renderer_connect = _cogl_winsys_renderer_connect;
|
||||
vtable.renderer_disconnect = _cogl_winsys_renderer_disconnect;
|
||||
|
||||
vtable.onscreen_set_visibility =
|
||||
_cogl_winsys_onscreen_xlib_set_visibility;
|
||||
vtable.onscreen_set_resizable =
|
||||
_cogl_winsys_onscreen_xlib_set_resizable;
|
||||
|
||||
|
@ -1472,7 +1472,6 @@ static CoglWinsysVtable _cogl_winsys_vtable =
|
||||
.onscreen_get_buffer_age = _cogl_winsys_onscreen_glx_get_buffer_age,
|
||||
.onscreen_x11_get_window_xid =
|
||||
_cogl_winsys_onscreen_glx_get_window_xid,
|
||||
.onscreen_set_visibility = _cogl_winsys_onscreen_glx_set_visibility,
|
||||
.onscreen_set_resizable =
|
||||
_cogl_winsys_onscreen_glx_set_resizable,
|
||||
|
||||
|
@ -104,10 +104,6 @@ typedef struct _CoglWinsysVtable
|
||||
void
|
||||
(*context_deinit) (CoglContext *context);
|
||||
|
||||
void
|
||||
(*onscreen_set_visibility) (CoglOnscreen *onscreen,
|
||||
gboolean visibility);
|
||||
|
||||
/* Optional functions */
|
||||
|
||||
int64_t
|
||||
|
Loading…
Reference in New Issue
Block a user