OSDN Git Service

minigbm: run clang-format
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 7 Jun 2018 00:15:31 +0000 (17:15 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 8 Jun 2018 06:33:11 +0000 (23:33 -0700)
It's good to do this now and again.

BUG=none
TEST=none

Change-Id: Ie96486b5d34c99a4b00cdfd8488a0468188d35bd
Reviewed-on: https://chromium-review.googlesource.com/1089492
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
cros_gralloc/cros_gralloc_driver.cc
helpers.c

index 31282bc..8096b7f 100644 (file)
@@ -106,8 +106,8 @@ int32_t cros_gralloc_driver::allocate(const struct cros_gralloc_buffer_descripto
         */
        if (resolved_format == DRM_FORMAT_NV12)
                use_flags |= BO_USE_LINEAR;
-       bo = drv_bo_create(drv_, descriptor->width, descriptor->height, resolved_format,
-                          use_flags);
+
+       bo = drv_bo_create(drv_, descriptor->width, descriptor->height, resolved_format, use_flags);
        if (!bo) {
                drv_log("Failed to create bo.\n");
                return -ENOMEM;
index eaaa937..4fabfa9 100644 (file)
--- a/helpers.c
+++ b/helpers.c
@@ -183,8 +183,7 @@ uint32_t drv_stride_from_format(uint32_t format, uint32_t width, size_t plane)
        const struct planar_layout *layout = layout_from_format(format);
        assert(plane < layout->num_planes);
 
-       uint32_t plane_width =
-               DIV_ROUND_UP(width, layout->horizontal_subsampling[plane]);
+       uint32_t plane_width = DIV_ROUND_UP(width, layout->horizontal_subsampling[plane]);
        uint32_t stride = plane_width * layout->bytes_per_pixel[plane];
 
        /*