mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
cogl: Remove unused texture_type argument from cogl_pipeline_set_layer_null_texture
https://gitlab.gnome.org/GNOME/mutter/merge_requests/546
This commit is contained in:
parent
862e56f01d
commit
1783ea5af1
@ -249,9 +249,7 @@ clutter_blur_effect_init (ClutterBlurEffect *self)
|
|||||||
cogl_pipeline_add_layer_snippet (klass->base_pipeline, 0, snippet);
|
cogl_pipeline_add_layer_snippet (klass->base_pipeline, 0, snippet);
|
||||||
cogl_object_unref (snippet);
|
cogl_object_unref (snippet);
|
||||||
|
|
||||||
cogl_pipeline_set_layer_null_texture (klass->base_pipeline,
|
cogl_pipeline_set_layer_null_texture (klass->base_pipeline, 0);
|
||||||
0, /* layer number */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
||||||
|
@ -438,9 +438,7 @@ clutter_brightness_contrast_effect_init (ClutterBrightnessContrastEffect *self)
|
|||||||
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
||||||
cogl_object_unref (snippet);
|
cogl_object_unref (snippet);
|
||||||
|
|
||||||
cogl_pipeline_set_layer_null_texture (klass->base_pipeline,
|
cogl_pipeline_set_layer_null_texture (klass->base_pipeline, 0);
|
||||||
0, /* layer number */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
||||||
|
@ -293,9 +293,7 @@ clutter_colorize_effect_init (ClutterColorizeEffect *self)
|
|||||||
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
||||||
cogl_object_unref (snippet);
|
cogl_object_unref (snippet);
|
||||||
|
|
||||||
cogl_pipeline_set_layer_null_texture (klass->base_pipeline,
|
cogl_pipeline_set_layer_null_texture (klass->base_pipeline, 0);
|
||||||
0, /* layer number */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
||||||
|
@ -297,9 +297,7 @@ clutter_desaturate_effect_init (ClutterDesaturateEffect *self)
|
|||||||
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
cogl_pipeline_add_snippet (klass->base_pipeline, snippet);
|
||||||
cogl_object_unref (snippet);
|
cogl_object_unref (snippet);
|
||||||
|
|
||||||
cogl_pipeline_set_layer_null_texture (klass->base_pipeline,
|
cogl_pipeline_set_layer_null_texture (klass->base_pipeline, 0);
|
||||||
0, /* layer number */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
self->pipeline = cogl_pipeline_copy (klass->base_pipeline);
|
||||||
|
@ -75,8 +75,7 @@ _clutter_paint_node_init_types (void)
|
|||||||
cogl_pipeline_set_color (default_color_pipeline, &cogl_color);
|
cogl_pipeline_set_color (default_color_pipeline, &cogl_color);
|
||||||
|
|
||||||
default_texture_pipeline = cogl_pipeline_new (ctx);
|
default_texture_pipeline = cogl_pipeline_new (ctx);
|
||||||
cogl_pipeline_set_layer_null_texture (default_texture_pipeline, 0,
|
cogl_pipeline_set_layer_null_texture (default_texture_pipeline, 0);
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
cogl_pipeline_set_color (default_texture_pipeline, &cogl_color);
|
cogl_pipeline_set_color (default_texture_pipeline, &cogl_color);
|
||||||
cogl_pipeline_set_layer_wrap_mode (default_texture_pipeline, 0,
|
cogl_pipeline_set_layer_wrap_mode (default_texture_pipeline, 0,
|
||||||
COGL_PIPELINE_WRAP_MODE_AUTOMATIC);
|
COGL_PIPELINE_WRAP_MODE_AUTOMATIC);
|
||||||
|
@ -1277,9 +1277,7 @@ clutter_texture_init (ClutterTexture *self)
|
|||||||
|
|
||||||
texture_template_pipeline = cogl_pipeline_new (ctx);
|
texture_template_pipeline = cogl_pipeline_new (ctx);
|
||||||
pipeline = COGL_PIPELINE (texture_template_pipeline);
|
pipeline = COGL_PIPELINE (texture_template_pipeline);
|
||||||
cogl_pipeline_set_layer_null_texture (pipeline,
|
cogl_pipeline_set_layer_null_texture (pipeline, 0);
|
||||||
0, /* layer_index */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_assert (texture_template_pipeline != NULL);
|
g_assert (texture_template_pipeline != NULL);
|
||||||
|
@ -225,8 +225,7 @@ cogl_pipeline_set_layer_texture (CoglPipeline *pipeline,
|
|||||||
|
|
||||||
void
|
void
|
||||||
cogl_pipeline_set_layer_null_texture (CoglPipeline *pipeline,
|
cogl_pipeline_set_layer_null_texture (CoglPipeline *pipeline,
|
||||||
int layer_index,
|
int layer_index)
|
||||||
CoglTextureType texture_type)
|
|
||||||
{
|
{
|
||||||
_cogl_pipeline_set_layer_texture_data (pipeline, layer_index, NULL);
|
_cogl_pipeline_set_layer_texture_data (pipeline, layer_index, NULL);
|
||||||
}
|
}
|
||||||
|
@ -162,10 +162,7 @@ cogl_pipeline_set_layer_texture (CoglPipeline *pipeline,
|
|||||||
* @texture_type: The type of the default texture to use
|
* @texture_type: The type of the default texture to use
|
||||||
*
|
*
|
||||||
* Sets the texture for this layer to be the default texture for the
|
* Sets the texture for this layer to be the default texture for the
|
||||||
* given type. This is equivalent to calling
|
* given type. The default texture is a 1x1 pixel white texture.
|
||||||
* cogl_pipeline_set_layer_texture() with %NULL for the texture
|
|
||||||
* argument except that you can also specify the type of default
|
|
||||||
* texture to use. The default texture is a 1x1 pixel white texture.
|
|
||||||
*
|
*
|
||||||
* This function is mostly useful if you want to create a base
|
* This function is mostly useful if you want to create a base
|
||||||
* pipeline that you want to create multiple copies from using
|
* pipeline that you want to create multiple copies from using
|
||||||
@ -178,8 +175,7 @@ cogl_pipeline_set_layer_texture (CoglPipeline *pipeline,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
cogl_pipeline_set_layer_null_texture (CoglPipeline *pipeline,
|
cogl_pipeline_set_layer_null_texture (CoglPipeline *pipeline,
|
||||||
int layer_index,
|
int layer_index);
|
||||||
CoglTextureType texture_type);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cogl_pipeline_get_layer_texture:
|
* cogl_pipeline_get_layer_texture:
|
||||||
|
@ -54,9 +54,7 @@ meta_create_texture_pipeline (CoglTexture *src_texture)
|
|||||||
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||||
|
|
||||||
texture_pipeline_template = cogl_pipeline_new (ctx);
|
texture_pipeline_template = cogl_pipeline_new (ctx);
|
||||||
cogl_pipeline_set_layer_null_texture (texture_pipeline_template,
|
cogl_pipeline_set_layer_null_texture (texture_pipeline_template, 0);
|
||||||
0, /* layer */
|
|
||||||
COGL_TEXTURE_TYPE_2D);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline = cogl_pipeline_copy (texture_pipeline_template);
|
pipeline = cogl_pipeline_copy (texture_pipeline_template);
|
||||||
|
Loading…
Reference in New Issue
Block a user