This commit is contained in:
Dan Field
2022-04-26 12:44:38 -07:00
committed by Dan Field
parent 2c35e17316
commit d3d1343372
5 changed files with 8 additions and 7 deletions

View File

@@ -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();

View File

@@ -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));
}

View File

@@ -42,9 +42,7 @@ impeller_component("impellerc") {
sources = [ "impellerc_main.cc" ]
deps = [
":compiler_lib",
]
deps = [ ":compiler_lib" ]
}
group("compiler") {

View File

@@ -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"

View File

@@ -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;