Get rid of ClutterStageEglNative

The functionality from ClutterStageEglNative (one function returning
TRUE) was moved to MetaStageWindowNative.

https://bugzilla.gnome.org/show_bug.cgi?id=768976
This commit is contained in:
Jonas Ådahl
2016-05-20 16:43:26 +08:00
parent c3d2352a9e
commit 14dbdfe483
9 changed files with 27 additions and 137 deletions

View File

@@ -28,11 +28,21 @@
struct _MetaStageNative
{
ClutterStageEglNative parent;
ClutterStageCogl parent;
};
G_DEFINE_TYPE (MetaStageNative, meta_stage_native,
CLUTTER_TYPE_STAGE_EGL_NATIVE)
static void
clutter_stage_window_iface_init (ClutterStageWindowIface *iface);
G_DEFINE_TYPE_WITH_CODE (MetaStageNative, meta_stage_native,
CLUTTER_TYPE_STAGE_COGL,
G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW,
clutter_stage_window_iface_init))
static gboolean
meta_stage_native_can_clip_redraws (ClutterStageWindow *stage_window)
{
return TRUE;
}
static void
meta_stage_native_init (MetaStageNative *stage_native)
@@ -43,3 +53,9 @@ static void
meta_stage_native_class_init (MetaStageNativeClass *klass)
{
}
static void
clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
{
iface->can_clip_redraws = meta_stage_native_can_clip_redraws;
}

View File

@@ -29,6 +29,6 @@
#define META_TYPE_STAGE_NATIVE (meta_stage_native_get_type ())
G_DECLARE_FINAL_TYPE (MetaStageNative, meta_stage_native,
META, STAGE_NATIVE, ClutterStageEglNative)
META, STAGE_NATIVE, ClutterStageCogl)
#endif /* META_STAGE_NATIVE_H */