From d3d134337274db83f57d460bf1a99074c6a2308d Mon Sep 17 00:00:00 2001 From: Dan Field Date: Tue, 26 Apr 2022 12:44:38 -0700 Subject: [PATCH] format --- engine/src/flutter/impeller/aiks/aiks_playground.h | 3 ++- engine/src/flutter/impeller/aiks/canvas.cc | 3 ++- engine/src/flutter/impeller/compiler/BUILD.gn | 4 +--- .../impeller/entity/contents/filters/filter_contents.cc | 2 +- engine/src/flutter/impeller/geometry/path.cc | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/engine/src/flutter/impeller/aiks/aiks_playground.h b/engine/src/flutter/impeller/aiks/aiks_playground.h index 4a7288fd18..4f6157de40 100644 --- a/engine/src/flutter/impeller/aiks/aiks_playground.h +++ b/engine/src/flutter/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/engine/src/flutter/impeller/aiks/canvas.cc b/engine/src/flutter/impeller/aiks/canvas.cc index 05bc7c06d0..a6f881553e 100644 --- a/engine/src/flutter/impeller/aiks/canvas.cc +++ b/engine/src/flutter/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/engine/src/flutter/impeller/compiler/BUILD.gn b/engine/src/flutter/impeller/compiler/BUILD.gn index 501a8bb5ef..1ef64be8f7 100644 --- a/engine/src/flutter/impeller/compiler/BUILD.gn +++ b/engine/src/flutter/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/engine/src/flutter/impeller/entity/contents/filters/filter_contents.cc b/engine/src/flutter/impeller/entity/contents/filters/filter_contents.cc index 3196c42678..1f50d5ae47 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/filter_contents.cc +++ b/engine/src/flutter/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/engine/src/flutter/impeller/geometry/path.cc b/engine/src/flutter/impeller/geometry/path.cc index 9e6c52e0ab..69b1cd46a4 100644 --- a/engine/src/flutter/impeller/geometry/path.cc +++ b/engine/src/flutter/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;