mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
Remove unused _cogl_pipeline_has_fragment_snippets
Unused since 8f58ad02fb
("cogl: Remove fixed pipeline support").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178>
This commit is contained in:
parent
cfb3a20215
commit
600bcca747
@ -39,9 +39,6 @@ _cogl_pipeline_get_user_program (CoglPipeline *pipeline);
|
||||
gboolean
|
||||
_cogl_pipeline_has_vertex_snippets (CoglPipeline *pipeline);
|
||||
|
||||
gboolean
|
||||
_cogl_pipeline_has_fragment_snippets (CoglPipeline *pipeline);
|
||||
|
||||
gboolean
|
||||
_cogl_pipeline_has_non_layer_vertex_snippets (CoglPipeline *pipeline);
|
||||
|
||||
|
@ -1286,39 +1286,6 @@ _cogl_pipeline_has_non_layer_fragment_snippets (CoglPipeline *pipeline)
|
||||
return authority->big_state->fragment_snippets.entries != NULL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
check_layer_has_fragment_snippet (CoglPipelineLayer *layer,
|
||||
void *user_data)
|
||||
{
|
||||
unsigned long state = COGL_PIPELINE_LAYER_STATE_FRAGMENT_SNIPPETS;
|
||||
CoglPipelineLayer *authority =
|
||||
_cogl_pipeline_layer_get_authority (layer, state);
|
||||
gboolean *found_fragment_snippet = user_data;
|
||||
|
||||
if (authority->big_state->fragment_snippets.entries)
|
||||
{
|
||||
*found_fragment_snippet = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_cogl_pipeline_has_fragment_snippets (CoglPipeline *pipeline)
|
||||
{
|
||||
gboolean found_fragment_snippet = FALSE;
|
||||
|
||||
if (_cogl_pipeline_has_non_layer_fragment_snippets (pipeline))
|
||||
return TRUE;
|
||||
|
||||
_cogl_pipeline_foreach_layer_internal (pipeline,
|
||||
check_layer_has_fragment_snippet,
|
||||
&found_fragment_snippet);
|
||||
|
||||
return found_fragment_snippet;
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_pipeline_hash_color_state (CoglPipeline *authority,
|
||||
CoglPipelineHashState *state)
|
||||
|
Loading…
Reference in New Issue
Block a user