aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-03 12:59:07 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-05 10:00:44 -0400
commit027d974004739e900e1728e749f3a111a9c234a6 (patch)
tree9adbed674f806526a9f250614e148d99a2e714b2 /src/lib/ecore_drm
parentecore-evas-drm: Update ecore_evas_drm for recent evas gl_drm changes (diff)
downloadefl-027d974004739e900e1728e749f3a111a9c234a6.tar.gz
ecore-drm: Remove erroneous error messages from EINA_SAFETY checks
Summary: As the gl_drm engine code will almost always pass NULL rectangles, remove the EINA_SAFETY checks so that logs don't fill with meaningles error messages. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_fb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c
index 18ba8ad5d3..69c6107617 100644
--- a/src/lib/ecore_drm/ecore_drm_fb.c
+++ b/src/lib/ecore_drm/ecore_drm_fb.c
@@ -141,8 +141,8 @@ EAPI void
ecore_drm_fb_dirty(Ecore_Drm_Fb *fb, Eina_Rectangle *rects, unsigned int count)
{
EINA_SAFETY_ON_NULL_RETURN(fb);
- EINA_SAFETY_ON_NULL_RETURN(rects);
- EINA_SAFETY_ON_TRUE_RETURN(!count);
+
+ if ((!rects) || (!count)) return;
#ifdef DRM_MODE_FEATURE_DIRTYFB
drmModeClip *clip;
@@ -238,8 +238,6 @@ ecore_drm_fb_send(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb, Ecore_Drm_Pageflip_Cb
EINA_LIST_FOREACH(dev->outputs, l, output)
if (output->enabled) cb->count++;
- /* cb->count = eina_list_count(dev->outputs); */
-
EINA_LIST_FOREACH(dev->outputs, l, output)
{
if ((!output->enabled) || (!output->current_mode)) continue;