mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
clutter/main: Remove shader stack
It is private to Clutter, and also unused by Clutter. https://gitlab.gnome.org/GNOME/mutter/merge_requests/666
This commit is contained in:
parent
73f83f1ab6
commit
5bd85ef7e5
@ -3577,35 +3577,6 @@ _clutter_context_get_pick_mode (void)
|
|||||||
return context->pick_mode;
|
return context->pick_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
_clutter_context_push_shader_stack (ClutterActor *actor)
|
|
||||||
{
|
|
||||||
ClutterMainContext *context = _clutter_context_get_default ();
|
|
||||||
|
|
||||||
context->shaders = g_slist_prepend (context->shaders, actor);
|
|
||||||
}
|
|
||||||
|
|
||||||
ClutterActor *
|
|
||||||
_clutter_context_peek_shader_stack (void)
|
|
||||||
{
|
|
||||||
ClutterMainContext *context = _clutter_context_get_default ();
|
|
||||||
|
|
||||||
if (context->shaders != NULL)
|
|
||||||
return context->shaders->data;
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
ClutterActor *
|
|
||||||
_clutter_context_pop_shader_stack (ClutterActor *actor)
|
|
||||||
{
|
|
||||||
ClutterMainContext *context = _clutter_context_get_default ();
|
|
||||||
|
|
||||||
context->shaders = g_slist_remove (context->shaders, actor);
|
|
||||||
|
|
||||||
return _clutter_context_peek_shader_stack ();
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_clutter_context_get_motion_events_enabled (void)
|
_clutter_context_get_motion_events_enabled (void)
|
||||||
{
|
{
|
||||||
|
@ -146,9 +146,6 @@ struct _ClutterMainContext
|
|||||||
ClutterActor *pointer_grab_actor;
|
ClutterActor *pointer_grab_actor;
|
||||||
ClutterActor *keyboard_grab_actor;
|
ClutterActor *keyboard_grab_actor;
|
||||||
|
|
||||||
/* stack of actors with shaders during paint */
|
|
||||||
GSList *shaders;
|
|
||||||
|
|
||||||
/* fb bit masks for col<->id mapping in picking */
|
/* fb bit masks for col<->id mapping in picking */
|
||||||
gint fb_r_mask;
|
gint fb_r_mask;
|
||||||
gint fb_g_mask;
|
gint fb_g_mask;
|
||||||
@ -198,9 +195,6 @@ void _clutter_context_lock (void);
|
|||||||
void _clutter_context_unlock (void);
|
void _clutter_context_unlock (void);
|
||||||
gboolean _clutter_context_is_initialized (void);
|
gboolean _clutter_context_is_initialized (void);
|
||||||
ClutterPickMode _clutter_context_get_pick_mode (void);
|
ClutterPickMode _clutter_context_get_pick_mode (void);
|
||||||
void _clutter_context_push_shader_stack (ClutterActor *actor);
|
|
||||||
ClutterActor * _clutter_context_pop_shader_stack (ClutterActor *actor);
|
|
||||||
ClutterActor * _clutter_context_peek_shader_stack (void);
|
|
||||||
gboolean _clutter_context_get_motion_events_enabled (void);
|
gboolean _clutter_context_get_motion_events_enabled (void);
|
||||||
gboolean _clutter_context_get_show_fps (void);
|
gboolean _clutter_context_get_show_fps (void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user