From: Rebecca Schultz Zavin Date: Tue, 28 Aug 2012 04:31:22 +0000 (-0700) Subject: Fix whitespace in gralloc.cpp and mapper.cpp X-Git-Tag: cm-10.1-M1~225 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcf29611227fe5d7d34061b2b8a05f59ead56ac7;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git Fix whitespace in gralloc.cpp and mapper.cpp Change-Id: Ia710e1f6aada45644f4b062cca1288b306f4c06c Signed-off-by: Rebecca Schultz Zavin --- diff --git a/gralloc/gralloc.cpp b/gralloc/gralloc.cpp index ec35c11..25fd3d6 100644 --- a/gralloc/gralloc.cpp +++ b/gralloc/gralloc.cpp @@ -166,8 +166,8 @@ static int gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, *stride = w; break; default: - ALOGE("invalid yuv format %d\n", format); - return -EINVAL; + ALOGE("invalid yuv format %d\n", format); + return -EINVAL; } size = *stride * h * 3 / 2; @@ -191,31 +191,31 @@ static int gralloc_alloc_yuv(int ionfd, int w, int h, int format, switch (format) { case HAL_PIXEL_FORMAT_EXYNOS_YV12: - { - luma_vstride = ALIGN(h, 16); - luma_size = luma_vstride * *stride; - chroma_size = (luma_vstride / 2) * ALIGN(*stride / 2, 16); - planes = 3; - break; - } + { + luma_vstride = ALIGN(h, 16); + luma_size = luma_vstride * *stride; + chroma_size = (luma_vstride / 2) * ALIGN(*stride / 2, 16); + planes = 3; + break; + } case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP: case HAL_PIXEL_FORMAT_YCbCr_420_SP: case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED: - { - size_t chroma_vstride = ALIGN(h / 2, 32); - luma_vstride = ALIGN(h, 32); - luma_size = luma_vstride * *stride; - chroma_size = chroma_vstride * *stride; - planes = 2; - break; - } + { + size_t chroma_vstride = ALIGN(h / 2, 32); + luma_vstride = ALIGN(h, 32); + luma_size = luma_vstride * *stride; + chroma_size = chroma_vstride * *stride; + planes = 2; + break; + } case HAL_PIXEL_FORMAT_YV12: case HAL_PIXEL_FORMAT_YCrCb_420_SP: return gralloc_alloc_framework_yuv(ionfd, w, h, format, usage, ion_flags, hnd, stride); default: - ALOGE("invalid yuv format %d\n", format); - return -EINVAL; + ALOGE("invalid yuv format %d\n", format); + return -EINVAL; } err = ion_alloc_fd(ionfd, luma_size, 0, 1 << ION_HEAP_TYPE_SYSTEM,