Set names of various Cogl pipelines
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3433>
This commit is contained in:

committed by
Sebastian Wick

parent
6cd28a84ac
commit
aaba08e5aa
@ -171,6 +171,8 @@ clutter_blur_effect_init (ClutterBlurEffect *self)
|
||||
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||
|
||||
klass->base_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (klass->base_pipeline,
|
||||
"ClutterBlurEffect (base pipeline)");
|
||||
|
||||
snippet = cogl_snippet_new (COGL_SNIPPET_HOOK_TEXTURE_LOOKUP,
|
||||
box_blur_glsl_declarations,
|
||||
|
@ -150,6 +150,7 @@ create_blur_pipeline (void)
|
||||
CoglSnippet *snippet;
|
||||
|
||||
blur_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (blur_pipeline, "ClutterBlur");
|
||||
cogl_pipeline_set_layer_null_texture (blur_pipeline, 0);
|
||||
cogl_pipeline_set_layer_filters (blur_pipeline,
|
||||
0,
|
||||
|
@ -374,6 +374,8 @@ clutter_brightness_contrast_effect_init (ClutterBrightnessContrastEffect *self)
|
||||
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||
|
||||
klass->base_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (klass->base_pipeline,
|
||||
"ClutterBrightnessContrast");
|
||||
|
||||
snippet = cogl_snippet_new (COGL_SNIPPET_HOOK_FRAGMENT,
|
||||
brightness_contrast_decls,
|
||||
|
@ -214,6 +214,7 @@ clutter_colorize_effect_init (ClutterColorizeEffect *self)
|
||||
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||
|
||||
klass->base_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (klass->base_pipeline, "ClutterColorize");
|
||||
|
||||
snippet = cogl_snippet_new (COGL_SNIPPET_HOOK_FRAGMENT,
|
||||
colorize_glsl_declarations,
|
||||
|
@ -218,6 +218,7 @@ clutter_desaturate_effect_init (ClutterDesaturateEffect *self)
|
||||
CoglSnippet *snippet;
|
||||
|
||||
klass->base_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (klass->base_pipeline, "ClutterDesaturate");
|
||||
|
||||
snippet = cogl_snippet_new (COGL_SNIPPET_HOOK_FRAGMENT,
|
||||
desaturate_glsl_declarations,
|
||||
|
@ -398,6 +398,9 @@ clutter_pipeline_node_draw (ClutterPaintNode *node,
|
||||
if (node->operations == NULL)
|
||||
return;
|
||||
|
||||
if (!cogl_pipeline_get_name (pnode->pipeline))
|
||||
cogl_pipeline_set_static_name (pnode->pipeline, node->name);
|
||||
|
||||
fb = clutter_paint_context_get_framebuffer (paint_context);
|
||||
|
||||
for (i = 0; i < node->operations->len; i++)
|
||||
|
@ -170,6 +170,7 @@ clutter_stage_view_create_offscreen_pipeline (CoglOffscreen *offscreen)
|
||||
CoglPipeline *pipeline;
|
||||
|
||||
pipeline = cogl_pipeline_new (cogl_framebuffer_get_context (framebuffer));
|
||||
cogl_pipeline_set_static_name (pipeline, "ClutterStageView (offscreen)");
|
||||
|
||||
cogl_pipeline_set_layer_filters (pipeline, 0,
|
||||
COGL_PIPELINE_FILTER_NEAREST,
|
||||
|
@ -1886,6 +1886,7 @@ create_color_pipeline (void)
|
||||
if (G_UNLIKELY (color_pipeline == NULL))
|
||||
{
|
||||
color_pipeline = cogl_pipeline_new (ctx);
|
||||
cogl_pipeline_set_static_name (color_pipeline, "ClutterText (color)");
|
||||
cogl_context_set_named_pipeline (ctx,
|
||||
&color_pipeline_key,
|
||||
color_pipeline);
|
||||
|
Reference in New Issue
Block a user