Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Apr 27, 2022
1 parent dd4d705 commit d5f9781
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion impeller/aiks/aiks_playground.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ namespace impeller {

class AiksPlayground : public Playground {
public:
using AiksPlaygroundCallback = std::function<bool(AiksContext& renderer, RenderPass& pass)>;
using AiksPlaygroundCallback =
std::function<bool(AiksContext& renderer, RenderPass& pass)>;

AiksPlayground();

Expand Down
3 changes: 2 additions & 1 deletion impeller/aiks/canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
4 changes: 1 addition & 3 deletions impeller/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ impeller_component("impellerc") {

sources = [ "impellerc_main.cc" ]

deps = [
":compiler_lib",
]
deps = [ ":compiler_lib" ]
}

group("compiler") {
Expand Down
2 changes: 1 addition & 1 deletion impeller/entity/contents/filters/filter_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion impeller/geometry/path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ std::optional<Rect> Path::GetBoundingBox() const {
return Rect{min.x, min.y, difference.x, difference.y};
}

std::optional<Rect> Path::GetTransformedBoundingBox(const Matrix& transform) const {
std::optional<Rect> Path::GetTransformedBoundingBox(
const Matrix& transform) const {
auto bounds = GetBoundingBox();
if (!bounds.has_value()) {
return std::nullopt;
Expand Down

0 comments on commit d5f9781

Please sign in to comment.