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:
Jonas Ådahl 2020-10-19 22:34:45 +02:00 committed by Robert Mader
parent b0ec3a3ad7
commit e43b95cd11
8 changed files with 0 additions and 79 deletions

View File

@ -544,37 +544,6 @@ cogl_onscreen_remove_frame_callback (CoglOnscreen *onscreen,
_cogl_closure_disconnect (closure); _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 void
_cogl_onscreen_notify_frame_sync (CoglOnscreen *onscreen, CoglFrameInfo *info) _cogl_onscreen_notify_frame_sync (CoglOnscreen *onscreen, CoglFrameInfo *info)
{ {

View File

@ -958,22 +958,6 @@ _cogl_winsys_onscreen_glx_get_window_xid (CoglOnscreen *onscreen)
return onscreen_glx->xwin; 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 void
_cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen, _cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen,
gboolean resizable) gboolean resizable)

View File

@ -47,10 +47,6 @@ _cogl_winsys_onscreen_glx_get_buffer_age (CoglOnscreen *onscreen);
uint32_t uint32_t
_cogl_winsys_onscreen_glx_get_window_xid (CoglOnscreen *onscreen); _cogl_winsys_onscreen_glx_get_window_xid (CoglOnscreen *onscreen);
void
_cogl_winsys_onscreen_glx_set_visibility (CoglOnscreen *onscreen,
gboolean visibility);
void void
_cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen, _cogl_winsys_onscreen_glx_set_resizable (CoglOnscreen *onscreen,
gboolean resizable); gboolean resizable);

View File

@ -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 void
_cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen, _cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen,
gboolean resizable) gboolean resizable)

View File

@ -49,10 +49,6 @@ cogl_onscreen_xlib_new (CoglContext *context,
void void
_cogl_winsys_egl_onscreen_xlib_deinit (CoglOnscreen *onscreen); _cogl_winsys_egl_onscreen_xlib_deinit (CoglOnscreen *onscreen);
void
_cogl_winsys_onscreen_xlib_set_visibility (CoglOnscreen *onscreen,
gboolean visibility);
void void
_cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen, _cogl_winsys_onscreen_xlib_set_resizable (CoglOnscreen *onscreen,
gboolean resizable); gboolean resizable);

View File

@ -590,8 +590,6 @@ _cogl_winsys_egl_xlib_get_vtable (void)
vtable.renderer_connect = _cogl_winsys_renderer_connect; vtable.renderer_connect = _cogl_winsys_renderer_connect;
vtable.renderer_disconnect = _cogl_winsys_renderer_disconnect; vtable.renderer_disconnect = _cogl_winsys_renderer_disconnect;
vtable.onscreen_set_visibility =
_cogl_winsys_onscreen_xlib_set_visibility;
vtable.onscreen_set_resizable = vtable.onscreen_set_resizable =
_cogl_winsys_onscreen_xlib_set_resizable; _cogl_winsys_onscreen_xlib_set_resizable;

View File

@ -1472,7 +1472,6 @@ static CoglWinsysVtable _cogl_winsys_vtable =
.onscreen_get_buffer_age = _cogl_winsys_onscreen_glx_get_buffer_age, .onscreen_get_buffer_age = _cogl_winsys_onscreen_glx_get_buffer_age,
.onscreen_x11_get_window_xid = .onscreen_x11_get_window_xid =
_cogl_winsys_onscreen_glx_get_window_xid, _cogl_winsys_onscreen_glx_get_window_xid,
.onscreen_set_visibility = _cogl_winsys_onscreen_glx_set_visibility,
.onscreen_set_resizable = .onscreen_set_resizable =
_cogl_winsys_onscreen_glx_set_resizable, _cogl_winsys_onscreen_glx_set_resizable,

View File

@ -104,10 +104,6 @@ typedef struct _CoglWinsysVtable
void void
(*context_deinit) (CoglContext *context); (*context_deinit) (CoglContext *context);
void
(*onscreen_set_visibility) (CoglOnscreen *onscreen,
gboolean visibility);
/* Optional functions */ /* Optional functions */
int64_t int64_t