mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
clutter/egl: Remove unused clutter_egl_get_egl_display()
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1364
This commit is contained in:
parent
3566fa7bb0
commit
72a389ef12
@ -45,10 +45,6 @@
|
|||||||
#include "clutter-main.h"
|
#include "clutter-main.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
|
|
||||||
#ifdef COGL_HAS_EGL_SUPPORT
|
|
||||||
#include "clutter-egl.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (ClutterBackendEglNative, clutter_backend_egl_native, CLUTTER_TYPE_BACKEND);
|
G_DEFINE_TYPE (ClutterBackendEglNative, clutter_backend_egl_native, CLUTTER_TYPE_BACKEND);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -66,39 +62,3 @@ clutter_backend_egl_native_new (void)
|
|||||||
{
|
{
|
||||||
return g_object_new (CLUTTER_TYPE_BACKEND_EGL_NATIVE, NULL);
|
return g_object_new (CLUTTER_TYPE_BACKEND_EGL_NATIVE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_egl_get_egl_display:
|
|
||||||
*
|
|
||||||
* Retrieves the EGL display used by Clutter, if it supports the
|
|
||||||
* EGL windowing system and if it is running using an EGL backend.
|
|
||||||
*
|
|
||||||
* Return value: the EGL display used by Clutter, or 0
|
|
||||||
*
|
|
||||||
* Since: 1.6
|
|
||||||
*/
|
|
||||||
EGLDisplay
|
|
||||||
clutter_egl_get_egl_display (void)
|
|
||||||
{
|
|
||||||
ClutterBackend *backend;
|
|
||||||
|
|
||||||
if (!_clutter_context_is_initialized ())
|
|
||||||
{
|
|
||||||
g_critical ("The Clutter backend has not been initialized yet");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
backend = clutter_get_default_backend ();
|
|
||||||
|
|
||||||
if (!CLUTTER_IS_BACKEND_EGL_NATIVE (backend))
|
|
||||||
{
|
|
||||||
g_critical ("The Clutter backend is not an EGL backend");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef COGL_HAS_EGL_SUPPORT
|
|
||||||
return cogl_egl_context_get_egl_display (backend->cogl_context);
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
/*
|
|
||||||
* Clutter.
|
|
||||||
*
|
|
||||||
* An OpenGL based 'interactive canvas' library.
|
|
||||||
*
|
|
||||||
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 OpenedHand
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SECTION:clutter-egl
|
|
||||||
* @short_description: EGL specific API
|
|
||||||
*
|
|
||||||
* The EGL backend for Clutter provides some EGL specific API
|
|
||||||
*
|
|
||||||
* You need to include `clutter-egl.h` to have access to the functions documented here.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __CLUTTER_EGL_H__
|
|
||||||
#define __CLUTTER_EGL_H__
|
|
||||||
|
|
||||||
#include <glib.h>
|
|
||||||
|
|
||||||
#include "clutter-egl-headers.h"
|
|
||||||
#include <clutter/clutter.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_egl_get_egl_display:
|
|
||||||
*
|
|
||||||
* Retrieves the #EGLDisplay used by Clutter.
|
|
||||||
*
|
|
||||||
* Return value: the EGL display
|
|
||||||
*
|
|
||||||
* Since: 1.6
|
|
||||||
*/
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
EGLDisplay clutter_egl_get_egl_display (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __CLUTTER_EGL_H__ */
|
|
Loading…
Reference in New Issue
Block a user