gl: Add #ifndef GST_REMOVE_DEPRECATED for existing deprecated API

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1764>
This commit is contained in:
Sebastian Dröge 2022-02-21 15:12:04 +02:00 committed by GStreamer Marge Bot
parent 5acb8ac559
commit bd867aea4f
2 changed files with 6 additions and 0 deletions

View file

@ -735,6 +735,7 @@ gst_gl_display_remove_window (GstGLDisplay * display, GstGLWindow * window)
return ret;
}
#ifndef GST_REMOVE_DEPRECATED
/**
* gst_gl_display_find_window:
* @display: a #GstGLDisplay
@ -763,6 +764,7 @@ gst_gl_display_find_window (GstGLDisplay * display, gpointer data,
return ret;
}
#endif
/**
* gst_gl_display_retrieve_window:

View file

@ -80,9 +80,11 @@ const gchar *gst_gl_shader_string_vertex_mat4_vertex_transform =
"{\n" \
" gl_FragColor = texture2D(tex, v_texcoord);\n" \
"}"
#ifndef GST_REMOVE_DEPRECATED
const gchar *gst_gl_shader_string_fragment_default =
MEDIUMP_PRECISION
DEFAULT_FRAGMENT_BODY;
#endif
#define EXTERNAL_FRAGMENT_HEADER \
"#extension GL_OES_EGL_image_external : require\n"
@ -94,10 +96,12 @@ const gchar *gst_gl_shader_string_fragment_default =
"{\n" \
" gl_FragColor = texture2D(tex, v_texcoord);\n" \
"}"
#ifndef GST_REMOVE_DEPRECATED
const gchar *gst_gl_shader_string_fragment_external_oes_default =
EXTERNAL_FRAGMENT_HEADER
MEDIUMP_PRECISION
EXTERNAL_FRAGMENT_BODY;
#endif
/* *INDENT-ON* */
/**