From d5f978195d74185d470d64037975d3208463d754 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Tue, 26 Apr 2022 12:44:38 -0700 Subject: [PATCH] format --- impeller/aiks/aiks_playground.h | 3 ++- impeller/aiks/canvas.cc | 3 ++- impeller/compiler/BUILD.gn | 4 +--- impeller/entity/contents/filters/filter_contents.cc | 2 +- impeller/geometry/path.cc | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/impeller/aiks/aiks_playground.h b/impeller/aiks/aiks_playground.h index 4a7288fd18471..4f6157de40f59 100644 --- a/impeller/aiks/aiks_playground.h +++ b/impeller/aiks/aiks_playground.h @@ -13,7 +13,8 @@ namespace impeller { class AiksPlayground : public Playground { public: - using AiksPlaygroundCallback = std::function; + using AiksPlaygroundCallback = + std::function; AiksPlayground(); diff --git a/impeller/aiks/canvas.cc b/impeller/aiks/canvas.cc index 05bc7c06d06f4..a6f881553ea40 100644 --- a/impeller/aiks/canvas.cc +++ b/impeller/aiks/canvas.cc @@ -112,7 +112,8 @@ void Canvas::DrawPath(Path path, Paint paint) { entity.SetTransformation(GetCurrentTransformation()); entity.SetStencilDepth(GetStencilDepth()); entity.SetBlendMode(paint.blend_mode); - entity.SetContents(paint.WithFilters(paint.CreateContentsForEntity(std::move(path)))); + entity.SetContents( + paint.WithFilters(paint.CreateContentsForEntity(std::move(path)))); GetCurrentPass().AddEntity(std::move(entity)); } diff --git a/impeller/compiler/BUILD.gn b/impeller/compiler/BUILD.gn index 501a8bb5efd27..1ef64be8f7735 100644 --- a/impeller/compiler/BUILD.gn +++ b/impeller/compiler/BUILD.gn @@ -42,9 +42,7 @@ impeller_component("impellerc") { sources = [ "impellerc_main.cc" ] - deps = [ - ":compiler_lib", - ] + deps = [ ":compiler_lib" ] } group("compiler") { diff --git a/impeller/entity/contents/filters/filter_contents.cc b/impeller/entity/contents/filters/filter_contents.cc index 3196c42678561..1f50d5ae47080 100644 --- a/impeller/entity/contents/filters/filter_contents.cc +++ b/impeller/entity/contents/filters/filter_contents.cc @@ -16,8 +16,8 @@ #include "impeller/entity/contents/content_context.h" #include "impeller/entity/contents/filters/blend_filter_contents.h" #include "impeller/entity/contents/filters/border_mask_blur_filter_contents.h" -#include "impeller/entity/contents/filters/inputs/filter_input.h" #include "impeller/entity/contents/filters/gaussian_blur_filter_contents.h" +#include "impeller/entity/contents/filters/inputs/filter_input.h" #include "impeller/entity/contents/texture_contents.h" #include "impeller/entity/entity.h" #include "impeller/geometry/path_builder.h" diff --git a/impeller/geometry/path.cc b/impeller/geometry/path.cc index 9e6c52e0ab7a8..69b1cd46a4927 100644 --- a/impeller/geometry/path.cc +++ b/impeller/geometry/path.cc @@ -286,7 +286,8 @@ std::optional Path::GetBoundingBox() const { return Rect{min.x, min.y, difference.x, difference.y}; } -std::optional Path::GetTransformedBoundingBox(const Matrix& transform) const { +std::optional Path::GetTransformedBoundingBox( + const Matrix& transform) const { auto bounds = GetBoundingBox(); if (!bounds.has_value()) { return std::nullopt;