mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
eglglessink: Log in the performance category if we map/copy EGLImages to normal memory
This commit is contained in:
parent
8835cb5814
commit
9e1faac4df
1 changed files with 6 additions and 0 deletions
|
@ -147,6 +147,8 @@
|
|||
GST_DEBUG_CATEGORY_STATIC (gst_eglglessink_debug);
|
||||
#define GST_CAT_DEFAULT gst_eglglessink_debug
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN(GST_CAT_PERFORMANCE);
|
||||
|
||||
/* GLESv2 GLSL Shaders
|
||||
*
|
||||
* OpenGL ES Standard does not mandate YUV support. This is
|
||||
|
@ -3483,6 +3485,8 @@ gst_egl_image_allocator_map (GstMemory * gmem, gsize maxsize, GstMapFlags flags)
|
|||
{
|
||||
GstMemory *parent;
|
||||
|
||||
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "Mapping EGLImage to normal memory");
|
||||
|
||||
if ((parent = gmem->parent) == NULL)
|
||||
parent = gmem;
|
||||
|
||||
|
@ -3508,6 +3512,8 @@ gst_egl_image_allocator_copy (GstMemory * mem, gssize offset, gssize size)
|
|||
GstMemory *ret;
|
||||
GstMapInfo mapi, mapo;
|
||||
|
||||
GST_CAT_DEBUG (GST_CAT_PERFORMANCE, "Copying EGLImage to normal memory");
|
||||
|
||||
if (size == -1)
|
||||
size = mem->size > offset ? mem->size - offset : 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue