5#include "flutter/impeller/aiks/aiks_unittests.h"
7#include "flutter/display_list/dl_blend_mode.h"
8#include "flutter/display_list/dl_builder.h"
9#include "flutter/display_list/dl_color.h"
10#include "flutter/display_list/dl_paint.h"
11#include "flutter/display_list/effects/dl_color_filter.h"
12#include "flutter/testing/testing.h"
22 path.addCircle(
x,
y, radius);
33 builder.ClipPath(CreateCircle(200, 400, 300));
35 builder.ClipPath(CreateCircle(600, 400, 300));
36 builder.ClipPath(CreateCircle(400, 600, 300));
39 ASSERT_TRUE(OpenPlaygroundHere(
builder.Build()));
47 builder.ClipPath(CreateCircle(0, 0, 200));
51 builder.ClipPath(CreateCircle(-100, -50, 30), DlCanvas::ClipOp::kDifference);
52 builder.ClipPath(CreateCircle(100, -50, 30), DlCanvas::ClipOp::kDifference);
55 path.moveTo(-100, 50);
56 path.quadTo(0, 150, 100, 50);
57 builder.ClipPath(
path, DlCanvas::ClipOp::kDifference);
71 path_2.
cubicTo({0, -40}, {0, -80}, {200, -80});
75 ASSERT_TRUE(OpenPlaygroundHere(
builder.Build()));
99 ASSERT_TRUE(OpenPlaygroundHere(
builder.Build()));
110 for (
int i = 0;
i < 15;
i++) {
114 builder.ClipPath(CreateCircle(0, 0, 300));
117 ASSERT_TRUE(OpenPlaygroundHere(
builder.Build()));
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
PODArray< SkColor > colors
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
TEST_P(AiksTest, CanRenderAdvancedBlendColorFilterWithSaveLayer)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr DlColor kWhite()
static constexpr DlColor kBlack()
static constexpr DlColor kMaroon()
static constexpr DlColor kYellow()
static constexpr DlColor kFuchsia()
static constexpr DlColor kRed()
static constexpr DlColor kGreen()
static constexpr DlColor kSkyBlue()