From: Cedric BAIL Date: Mon, 5 Jun 2017 19:01:59 +0000 (-0700) Subject: evas: use switch case statement fallthrough to handle colorspace logic reuse. X-Git-Tag: upstream/1.20.0~766 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=447a9056d052826a2f7a204075fa3244c2f91b63;p=platform%2Fupstream%2Fefl.git evas: use switch case statement fallthrough to handle colorspace logic reuse. --- diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c index 43866c1..cee394e 100644 --- a/src/modules/evas/engines/gl_generic/evas_engine.c +++ b/src/modules/evas/engines/gl_generic/evas_engine.c @@ -2915,9 +2915,11 @@ eng_image_data_slice_add(void *engine, void *image, { case EFL_GFX_COLORSPACE_ARGB8888: bpp = 4; + EINA_FALLTHROUGH; // falltrhough is intended case EFL_GFX_COLORSPACE_AGRY88: if (!bpp) bpp = 2; + EINA_FALLTHROUGH; // falltrhough is intended case EFL_GFX_COLORSPACE_GRY8: if (!bpp) bpp = 1; @@ -2946,6 +2948,7 @@ eng_image_data_slice_add(void *engine, void *image, break; case EFL_GFX_COLORSPACE_YCBCR422P601_PL: + EINA_FALLTHROUGH; case EFL_GFX_COLORSPACE_YCBCR422P709_PL: /* YCbCr 4:2:2 Planar: Y rows, then the Cb, then Cr rows. */ cs_data = im->cs.data;