• Frank Barchard's avatar
    clang-format for align_buffer_page_end and free_aligned_buffer_page_end · 3cf056f8
    Frank Barchard authored
    clang-format does nested indents for macros that dont end with ;
    example:
      align_buffer_page_end(dst_y_8, dst_y_plane_size)
          align_buffer_page_end(dst_u_8, dst_uv_plane_size)
              align_buffer_page_end(dst_v_8, dst_uv_plane_size)
                  align_buffer_page_end(dst_y_16, dst_y_plane_size * 2)
                      align_buffer_page_end(dst_u_16, dst_uv_plane_size * 2)
                          align_buffer_page_end(dst_v_16, dst_uv_plane_size * 2)
    
    use a similar allocator to the one used within libyuv in row.h which makes the caller add ;
      align_buffer_page_end(dst_y_8, dst_y_plane_size);
      align_buffer_page_end(dst_u_8, dst_uv_plane_size);
      align_buffer_page_end(dst_v_8, dst_uv_plane_size);
      align_buffer_page_end(dst_y_16, dst_y_plane_size * 2);
      align_buffer_page_end(dst_u_16, dst_uv_plane_size * 2);
      align_buffer_page_end(dst_v_16, dst_uv_plane_size * 2);
    
    Bug: libyuv:758
    Test: try bots
    Change-Id: I4a0770707e7053e094a37bbfc3c5884d5663d078
    Reviewed-on: https://chromium-review.googlesource.com/762757Reviewed-by: 's avatarPatrik Höglund <phoglund@chromium.org>
    Reviewed-by: 's avatarFrank Barchard <fbarchard@google.com>
    Commit-Queue: Frank Barchard <fbarchard@google.com>
    3cf056f8
Name
Last commit
Last update
build_overrides Loading commit data...
docs Loading commit data...
include Loading commit data...
infra/config Loading commit data...
source Loading commit data...
tools_libyuv Loading commit data...
unit_test Loading commit data...
util Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
AUTHORS Loading commit data...
Android.bp Loading commit data...
Android.mk Loading commit data...
BUILD.gn Loading commit data...
CM_linux_packages.cmake Loading commit data...
CMakeLists.txt Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE_THIRD_PARTY Loading commit data...
OWNERS Loading commit data...
PATENTS Loading commit data...
PRESUBMIT.py Loading commit data...
README.chromium Loading commit data...
README.md Loading commit data...
all.gyp Loading commit data...
cleanup_links.py Loading commit data...
codereview.settings Loading commit data...
download_vs_toolchain.py Loading commit data...
gyp_libyuv Loading commit data...
gyp_libyuv.py Loading commit data...
libyuv.gni Loading commit data...
libyuv.gyp Loading commit data...
libyuv.gypi Loading commit data...
libyuv_nacl.gyp Loading commit data...
libyuv_test.gyp Loading commit data...
linux.mk Loading commit data...
public.mk Loading commit data...
pylintrc Loading commit data...
winarm.mk Loading commit data...