[mutter] cogl: Drop cogl_texture_new_from_file
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: Drop cogl_texture_new_from_file
- Date: Wed, 1 Jun 2022 11:14:57 +0000 (UTC)
commit f927e692c79457070324d5a49d5dde1d43d1e0a3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Mar 31 12:34:01 2022 -0300
cogl: Drop cogl_texture_new_from_file
It is now unused.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2355>
cogl/cogl/deprecated/cogl-auto-texture.c | 26 --------------------------
cogl/cogl/deprecated/cogl-auto-texture.h | 30 ------------------------------
2 files changed, 56 deletions(-)
---
diff --git a/cogl/cogl/deprecated/cogl-auto-texture.c b/cogl/cogl/deprecated/cogl-auto-texture.c
index dd44db51fc..e57c704bb0 100644
--- a/cogl/cogl/deprecated/cogl-auto-texture.c
+++ b/cogl/cogl/deprecated/cogl-auto-texture.c
@@ -225,29 +225,3 @@ _cogl_texture_new_from_bitmap (CoglBitmap *bitmap,
return tex;
}
-CoglTexture *
-cogl_texture_new_from_file (const char *filename,
- CoglTextureFlags flags,
- CoglPixelFormat internal_format,
- GError **error)
-{
- CoglBitmap *bmp;
- CoglTexture *texture = NULL;
-
- _COGL_GET_CONTEXT (ctx, NULL);
-
- g_return_val_if_fail (error == NULL || *error == NULL, NULL);
-
- bmp = cogl_bitmap_new_from_file (filename, error);
- if (bmp == NULL)
- return NULL;
-
- texture = _cogl_texture_new_from_bitmap (bmp, flags,
- internal_format,
- TRUE, /* can convert in-place */
- error);
-
- cogl_object_unref (bmp);
-
- return texture;
-}
diff --git a/cogl/cogl/deprecated/cogl-auto-texture.h b/cogl/cogl/deprecated/cogl-auto-texture.h
index 8ea4ac5c4a..b498f14fca 100644
--- a/cogl/cogl/deprecated/cogl-auto-texture.h
+++ b/cogl/cogl/deprecated/cogl-auto-texture.h
@@ -35,36 +35,6 @@ G_BEGIN_DECLS
#include <cogl/cogl-texture.h>
-/**
- * cogl_texture_new_from_file:
- * @filename: the file to load
- * @flags: Optional flags for the texture, or %COGL_TEXTURE_NONE
- * @internal_format: the #CoglPixelFormat to use for the GPU storage of the
- * texture. If %COGL_PIXEL_FORMAT_ANY is given then a premultiplied
- * format similar to the format of the source data will be used. The
- * default blending equations of Cogl expect premultiplied color data;
- * the main use of passing a non-premultiplied format here is if you
- * have non-premultiplied source data and are going to adjust the blend
- * mode (see cogl_material_set_blend()) or use the data for something
- * other than straight blending.
- * @error: return location for a #GError or %NULL
- *
- * Creates a #CoglTexture from an image file.
- *
- * Return value: (transfer full): A newly created #CoglTexture or
- * %NULL on failure
- *
- * Since: 0.8
- * Deprecated: 1.18: Use specific constructors such as
- * cogl_texture_2d_new_from_file()
- */
-COGL_DEPRECATED_FOR (cogl_texture_2d_new_from_file__OR__cogl_texture_2d_sliced_new_from_file)
-COGL_EXPORT CoglTexture *
-cogl_texture_new_from_file (const char *filename,
- CoglTextureFlags flags,
- CoglPixelFormat internal_format,
- GError **error);
-
/**
* cogl_texture_new_from_data:
* @width: width of texture in pixels
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]