mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
backend: Remove usage of CLUTTER_STAGE_TYPE
It's only used for debugging purposes, and it's of limited usage since the stage creation is deferred to the backend implementation itself.
This commit is contained in:
parent
ca94d0cc37
commit
354f7b0e25
@ -50,6 +50,7 @@
|
|||||||
#include "clutter-profile.h"
|
#include "clutter-profile.h"
|
||||||
#include "clutter-stage-manager-private.h"
|
#include "clutter-stage-manager-private.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
|
#include "clutter-version.h"
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@
|
|||||||
#include "clutter-private.h"
|
#include "clutter-private.h"
|
||||||
#include "clutter-main.h"
|
#include "clutter-main.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
#include "clutter-version.h"
|
|
||||||
|
|
||||||
static ClutterBackendEGL *backend_singleton = NULL;
|
static ClutterBackendEGL *backend_singleton = NULL;
|
||||||
|
|
||||||
@ -744,9 +743,6 @@ clutter_backend_egl_create_stage (ClutterBackend *backend,
|
|||||||
ClutterStageWindow *stage;
|
ClutterStageWindow *stage;
|
||||||
ClutterStageX11 *stage_x11;
|
ClutterStageX11 *stage_x11;
|
||||||
|
|
||||||
CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'",
|
|
||||||
g_type_name (CLUTTER_STAGE_TYPE));
|
|
||||||
|
|
||||||
stage = g_object_new (CLUTTER_TYPE_STAGE_EGL, NULL);
|
stage = g_object_new (CLUTTER_TYPE_STAGE_EGL, NULL);
|
||||||
|
|
||||||
/* copy backend data into the stage */
|
/* copy backend data into the stage */
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
#include "clutter-main.h"
|
#include "clutter-main.h"
|
||||||
#include "clutter-private.h"
|
#include "clutter-private.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
#include "clutter-version.h"
|
|
||||||
|
|
||||||
#include "cogl/cogl.h"
|
#include "cogl/cogl.h"
|
||||||
|
|
||||||
@ -788,9 +787,6 @@ clutter_backend_glx_create_stage (ClutterBackend *backend,
|
|||||||
ClutterStageWindow *stage_window;
|
ClutterStageWindow *stage_window;
|
||||||
ClutterStageX11 *stage_x11;
|
ClutterStageX11 *stage_x11;
|
||||||
|
|
||||||
CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'",
|
|
||||||
g_type_name (CLUTTER_STAGE_TYPE));
|
|
||||||
|
|
||||||
stage_window = g_object_new (CLUTTER_TYPE_STAGE_GLX, NULL);
|
stage_window = g_object_new (CLUTTER_TYPE_STAGE_GLX, NULL);
|
||||||
|
|
||||||
/* copy backend data into the stage */
|
/* copy backend data into the stage */
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
#include "clutter-main.h"
|
#include "clutter-main.h"
|
||||||
#include "clutter-private.h"
|
#include "clutter-private.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
#include "clutter-version.h"
|
|
||||||
|
|
||||||
static ClutterBackendWayland *backend_singleton = NULL;
|
static ClutterBackendWayland *backend_singleton = NULL;
|
||||||
|
|
||||||
@ -622,9 +621,6 @@ clutter_backend_wayland_create_stage (ClutterBackend *backend,
|
|||||||
ClutterStageWindow *stage;
|
ClutterStageWindow *stage;
|
||||||
ClutterStageWayland *stage_wayland;
|
ClutterStageWayland *stage_wayland;
|
||||||
|
|
||||||
CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'",
|
|
||||||
g_type_name (CLUTTER_STAGE_TYPE));
|
|
||||||
|
|
||||||
stage = g_object_new (CLUTTER_TYPE_STAGE_WAYLAND, NULL);
|
stage = g_object_new (CLUTTER_TYPE_STAGE_WAYLAND, NULL);
|
||||||
|
|
||||||
stage_wayland = CLUTTER_STAGE_WAYLAND (stage);
|
stage_wayland = CLUTTER_STAGE_WAYLAND (stage);
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "clutter-debug.h"
|
#include "clutter-debug.h"
|
||||||
#include "clutter-private.h"
|
#include "clutter-private.h"
|
||||||
#include "clutter-stage-private.h"
|
#include "clutter-stage-private.h"
|
||||||
#include "clutter-version.h"
|
|
||||||
|
|
||||||
#include "cogl/cogl.h"
|
#include "cogl/cogl.h"
|
||||||
|
|
||||||
@ -487,9 +486,6 @@ clutter_backend_win32_create_stage (ClutterBackend *backend,
|
|||||||
ClutterStageWin32 *stage_win32;
|
ClutterStageWin32 *stage_win32;
|
||||||
ClutterStageWindow *stage;
|
ClutterStageWindow *stage;
|
||||||
|
|
||||||
CLUTTER_NOTE (BACKEND, "Creating stage of type '%s'",
|
|
||||||
g_type_name (CLUTTER_STAGE_TYPE));
|
|
||||||
|
|
||||||
stage = g_object_new (CLUTTER_TYPE_STAGE_WIN32, NULL);
|
stage = g_object_new (CLUTTER_TYPE_STAGE_WIN32, NULL);
|
||||||
|
|
||||||
/* copy backend data into the stage */
|
/* copy backend data into the stage */
|
||||||
|
Loading…
Reference in New Issue
Block a user