egl: simplify _eglDebugReport* API
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 7 Sep 2017 16:03:50 +0000 (17:03 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 18:07:16 +0000 (19:07 +0100)
commitb94344f1c70484d4ee59bb8765021a81fd54b366
tree816cdafb874c1c9eafcc30f2dae86fbaa61bf54a
parent5af26734793c76a2faab96c5c2c1dc6517ce6cab
egl: simplify _eglDebugReport* API

Instead of having three, almost identical but not quite,
_eglDebugReport* functions, simply fold them into one.

While doing so drop the unnecessary arguments 'command' and
'objectLabel'. Former is identical to funcName, while the latter is
already stored (yet unused) in _EGLThreadInfo::CurrentObjectLabel.

Cc: Kyle Brenneman <kbrenneman@nvidia.com>
Cc: Adam Jackson <ajax@redhat.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (IRC)
src/egl/main/eglapi.c
src/egl/main/eglcurrent.c
src/egl/main/eglcurrent.h