format
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -42,9 +42,7 @@ impeller_component("impellerc") {
|
||||
|
||||
sources = [ "impellerc_main.cc" ]
|
||||
|
||||
deps = [
|
||||
":compiler_lib",
|
||||
]
|
||||
deps = [ ":compiler_lib" ]
|
||||
}
|
||||
|
||||
group("compiler") {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user