Skip to content

Commit 94e8c9c

Browse files
committed
Merge remote-tracking branch 'origin/main' into rse-border
2 parents 31605a3 + 2615ab6 commit 94e8c9c

File tree

158 files changed

+1559
-1630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+1559
-1630
lines changed

DEPS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vars = {
1414
'flutter_git': 'https://flutter.googlesource.com',
1515
'skia_git': 'https://skia.googlesource.com',
1616
'llvm_git': 'https://llvm.googlesource.com',
17-
'skia_revision': '2be12bc2668b00bd09b9ce097c9d595ee82a7969',
17+
'skia_revision': 'af7ff0e98c4ec9b860442bfb8c61fc2bb386f695',
1818

1919
# WARNING: DO NOT EDIT canvaskit_cipd_instance MANUALLY
2020
# See `lib/web_ui/README.md` for how to roll CanvasKit to a new version.
@@ -56,12 +56,12 @@ vars = {
5656
# Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS
5757
# You can use //tools/dart/create_updated_flutter_deps.py to produce
5858
# updated revision list of existing dependencies.
59-
'dart_revision': '2a1a13cc3a9167da547869d6ec15f2fa16b1dde2',
59+
'dart_revision': '4293d50dd30d5469fac05af7470148977327bbe8',
6060

6161
# WARNING: DO NOT EDIT MANUALLY
6262
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
6363
'dart_binaryen_rev': 'b4bdcc33115b31758c56b83bb9de4642c411a042',
64-
'dart_boringssl_rev': 'c86127e656ae8b95622c79ba3d0fb35415502d53',
64+
'dart_boringssl_rev': 'e68438b863afaa3e81e1771b91819817780f3b60',
6565
'dart_core_rev': 'a6e81e0b74faf12ed4a938fa9a8ddba86b89b73d',
6666
'dart_devtools_rev': 'f10e8df8c517fb0412b9a66c626581867c9c267d',
6767
'dart_ecosystem_rev': '391a80ccb774cfebe4865bcd7e933d1ab016eea5',
@@ -215,7 +215,7 @@ vars = {
215215

216216
# The version / instance id of the cipd:chromium/fuchsia/gn-sdk which will be
217217
# used altogether with fuchsia-sdk to generate gn based build rules.
218-
'fuchsia_gn_sdk_version': 'K_1kHDN1WfObPYHyad1M8zegaI4awe8GiPhafqb99Y0C',
218+
'fuchsia_gn_sdk_version': 'jsZSHIOmQAs3URvWUa19VXM9ijCxdttNwanuXXmxltsC',
219219
}
220220

221221
gclient_gn_args_file = 'engine/src/flutter/third_party/dart/build/config/gclient_args.gni'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
125c117a432f2179b25c5dbfad4b0045918eb4cd
1+
4a36dc63f7197f5cf4f0d0b9b670492b8848c502

dev/bots/suite_runners/run_flutter_packages_tests.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Future<void> flutterPackagesRunner() async {
4949
// purposes of this test using old dependencies is fine. See
5050
// https://github.com/flutter/flutter/issues/129633
5151
'--downgrade',
52+
'--base-branch=$packagesCommit',
5253
'--custom-analysis=script/configs/custom_analysis.yaml',
5354
], workingDirectory: checkout.path);
5455
}

engine/src/flutter/ci/licenses_golden/licenses_dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 8c738e14fb5532aa243fb31208c7d984
1+
Signature: 7582ce3fcdf2e515db0132d7c32bf1b3
22

33
====================================================================================================
44
LIBRARY: dart
@@ -4862,7 +4862,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
48624862
This Source Code Form is "Incompatible With Secondary Licenses", as
48634863
defined by the Mozilla Public License, v. 2.0.
48644864

4865-
You may obtain a copy of this library's Source Code Form from: https://dart.googlesource.com/sdk/+/2a1a13cc3a9167da547869d6ec15f2fa16b1dde2
4865+
You may obtain a copy of this library's Source Code Form from: https://dart.googlesource.com/sdk/+/4293d50dd30d5469fac05af7470148977327bbe8
48664866
/third_party/fallback_root_certificates/
48674867

48684868
====================================================================================================

engine/src/flutter/ci/licenses_golden/licenses_flutter

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52934,6 +52934,9 @@ ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterPla
5293452934
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterPlatformViewControllerTest.mm + ../../../flutter/LICENSE
5293552935
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.h + ../../../flutter/LICENSE
5293652936
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.mm + ../../../flutter/LICENSE
52937+
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizer.h + ../../../flutter/LICENSE
52938+
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizer.mm + ../../../flutter/LICENSE
52939+
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizerTest.mm + ../../../flutter/LICENSE
5293752940
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurface.h + ../../../flutter/LICENSE
5293852941
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurface.mm + ../../../flutter/LICENSE
5293952942
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurfaceManager.h + ../../../flutter/LICENSE
@@ -52947,9 +52950,6 @@ ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTex
5294752950
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputSemanticsObjectTest.mm + ../../../flutter/LICENSE
5294852951
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextureRegistrar.h + ../../../flutter/LICENSE
5294952952
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextureRegistrar.mm + ../../../flutter/LICENSE
52950-
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.h + ../../../flutter/LICENSE
52951-
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.mm + ../../../flutter/LICENSE
52952-
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizerTest.mm + ../../../flutter/LICENSE
5295352953
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTimeConverter.h + ../../../flutter/LICENSE
5295452954
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTimeConverter.mm + ../../../flutter/LICENSE
5295552955
ORIGIN: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterUmbrellaImportTests.m + ../../../flutter/LICENSE
@@ -55943,6 +55943,11 @@ FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterPlatf
5594355943
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterPlatformViewControllerTest.mm
5594455944
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.h
5594555945
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRenderer.mm
55946+
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizer.h
55947+
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizer.mm
55948+
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterResizeSynchronizerTest.mm
55949+
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRunLoop.h
55950+
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterRunLoop.mm
5594655951
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurface.h
5594755952
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurface.mm
5594855953
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterSurfaceManager.h
@@ -55956,9 +55961,6 @@ FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextI
5595655961
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputSemanticsObjectTest.mm
5595755962
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextureRegistrar.h
5595855963
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTextureRegistrar.mm
55959-
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.h
55960-
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizer.mm
55961-
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterThreadSynchronizerTest.mm
5596255964
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTimeConverter.h
5596355965
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterTimeConverter.mm
5596455966
FILE: ../../../flutter/shell/platform/darwin/macos/framework/Source/FlutterUmbrellaImportTests.m

engine/src/flutter/ci/licenses_golden/licenses_skia

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 6bb5dbbd5cf1cadc2963ad5ab0a69474
1+
Signature: a44d036769f3e004c5d8a2752f7f633a
22

33
====================================================================================================
44
LIBRARY: etc1
@@ -400,6 +400,7 @@ FILE: ../../../flutter/third_party/skia/modules/pathkit/perf/pathops.bench.js
400400
FILE: ../../../flutter/third_party/skia/modules/pathkit/perf/perfReporter.js
401401
FILE: ../../../flutter/third_party/skia/modules/skparagraph/test.html
402402
FILE: ../../../flutter/third_party/skia/package-lock.json
403+
FILE: ../../../flutter/third_party/skia/relnotes/recorder-ordering-override.md
403404
FILE: ../../../flutter/third_party/skia/src/gpu/gpu_workaround_list.txt
404405
FILE: ../../../flutter/third_party/skia/src/ports/fontations/Cargo.toml
405406
FILE: ../../../flutter/third_party/skia/src/sksl/generated/sksl_compute.minified.sksl

engine/src/flutter/display_list/geometry/dl_path.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#include "flutter/display_list/geometry/dl_path.h"
66

77
#include "flutter/display_list/geometry/dl_geometry_types.h"
8+
#include "flutter/impeller/geometry/path.h"
89
#include "flutter/impeller/geometry/path_builder.h"
9-
#include "impeller/geometry/path.h"
1010

1111
namespace {
1212
inline constexpr flutter::DlPathFillType ToDlFillType(SkPathFillType sk_type) {
@@ -452,9 +452,10 @@ class ImpellerPathReceiver final : public DlPathReceiver {
452452
void QuadTo(const DlPoint& cp, const DlPoint& p2) override {
453453
builder_.QuadraticCurveTo(cp, p2);
454454
}
455-
// For legacy compatibility we do not override ConicTo to let the dispatcher
456-
// convert conics to quads until we update Impeller for full support of
457-
// rational quadratics
455+
bool ConicTo(const DlPoint& cp, const DlPoint& p2, DlScalar weight) override {
456+
builder_.ConicCurveTo(cp, p2, weight);
457+
return true;
458+
}
458459
void CubicTo(const DlPoint& cp1,
459460
const DlPoint& cp2,
460461
const DlPoint& p2) override {

engine/src/flutter/display_list/geometry/dl_path_unittests.cc

Lines changed: 99 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
#include "flutter/display_list/geometry/dl_path.h"
66

7-
#include "gmock/gmock.h"
87
#include "gtest/gtest.h"
98

9+
#include "flutter/display_list/testing/dl_test_mock_path_receiver.h"
1010
#include "flutter/third_party/skia/include/core/SkRRect.h"
1111

1212
namespace flutter {
@@ -595,31 +595,6 @@ TEST(DisplayListPath, IsLineFromImpellerPath) {
595595
}
596596

597597
namespace {
598-
class DlPathReceiverMock : public DlPathReceiver {
599-
public:
600-
MOCK_METHOD(void,
601-
RecommendSizes,
602-
(size_t verb_count, size_t point_count),
603-
(override));
604-
MOCK_METHOD(void, RecommendBounds, (const DlRect& bounds), (override));
605-
MOCK_METHOD(void,
606-
SetPathInfo,
607-
(DlPathFillType fill_type, bool is_convex),
608-
(override));
609-
MOCK_METHOD(void, MoveTo, (const DlPoint& p2), (override));
610-
MOCK_METHOD(void, LineTo, (const DlPoint& p2), (override));
611-
MOCK_METHOD(void, QuadTo, (const DlPoint& cp, const DlPoint& p2), (override));
612-
MOCK_METHOD(bool,
613-
ConicTo,
614-
(const DlPoint& cp, const DlPoint& p2, DlScalar weight),
615-
(override));
616-
MOCK_METHOD(void,
617-
CubicTo,
618-
(const DlPoint& cp1, const DlPoint& cp2, const DlPoint& p2),
619-
(override));
620-
MOCK_METHOD(void, Close, (), (override));
621-
};
622-
623598
using ::testing::AtMost;
624599
using ::testing::Return;
625600
} // namespace
@@ -925,6 +900,104 @@ TEST(DisplayListPath, DispatchImpellerPathConvexSpecified) {
925900
path.Dispatch(mock_receiver);
926901
}
927902

903+
TEST(DisplayListPath, DispatchSkiaPathConicToQuads) {
904+
// If we execute conicTo with a weight of exactly 1.0, SkPath will turn
905+
// it into a quadTo, so we avoid that by using 0.999
906+
SkScalar weights[4] = {
907+
0.02f,
908+
0.5f,
909+
SK_ScalarSqrt2 * 0.5f,
910+
1.0f - kEhCloseEnough,
911+
};
912+
913+
for (SkScalar weight : weights) {
914+
SkPath sk_path;
915+
sk_path.moveTo(10, 10);
916+
sk_path.conicTo(20, 10, 20, 20, weight);
917+
918+
std::array<DlPoint, 5> i_points;
919+
impeller::ConicPathComponent i_conic(DlPoint(10, 10), DlPoint(20, 10),
920+
DlPoint(20, 20), weight);
921+
i_conic.SubdivideToQuadraticPoints(i_points);
922+
923+
::testing::StrictMock<DlPathReceiverMock> mock_receiver;
924+
925+
// Recommendations must happen before any of the path segments is dispatched
926+
::testing::ExpectationSet all_recommendations;
927+
all_recommendations += //
928+
EXPECT_CALL(mock_receiver, RecommendSizes(2u, 3u)) //
929+
.Times(AtMost(1));
930+
all_recommendations +=
931+
EXPECT_CALL(mock_receiver,
932+
RecommendBounds(DlRect::MakeLTRB(10, 10, 20, 20)))
933+
.Times(AtMost(1));
934+
EXPECT_CALL(mock_receiver, SetPathInfo(DlPathFillType::kNonZero, true));
935+
936+
{
937+
::testing::InSequence sequence;
938+
939+
EXPECT_CALL(mock_receiver, MoveTo(DlPoint(10, 10)))
940+
.After(all_recommendations);
941+
EXPECT_CALL(mock_receiver,
942+
ConicTo(DlPoint(20, 10), DlPoint(20, 20), weight))
943+
.WillOnce(Return(false));
944+
EXPECT_CALL(mock_receiver, QuadTo(i_points[1], i_points[2]));
945+
EXPECT_CALL(mock_receiver, QuadTo(i_points[3], i_points[4]));
946+
}
947+
948+
DlPath(sk_path).Dispatch(mock_receiver);
949+
}
950+
}
951+
952+
TEST(DisplayListPath, DispatchImpellerPathConicToQuads) {
953+
// If we execute conicTo with a weight of exactly 1.0, SkPath will turn
954+
// it into a quadTo, so we avoid that by using 0.999
955+
DlScalar weights[4] = {
956+
0.02f,
957+
0.5f,
958+
SK_ScalarSqrt2 * 0.5f,
959+
1.0f - kEhCloseEnough,
960+
};
961+
962+
for (DlScalar weight : weights) {
963+
DlPathBuilder path_builder;
964+
path_builder.MoveTo(DlPoint(10, 10));
965+
path_builder.ConicCurveTo(DlPoint(20, 10), DlPoint(20, 20), weight);
966+
967+
std::array<DlPoint, 5> i_points;
968+
impeller::ConicPathComponent i_conic(DlPoint(10, 10), DlPoint(20, 10),
969+
DlPoint(20, 20), weight);
970+
i_conic.SubdivideToQuadraticPoints(i_points);
971+
972+
::testing::StrictMock<DlPathReceiverMock> mock_receiver;
973+
974+
// Recommendations must happen before any of the path segments is dispatched
975+
::testing::ExpectationSet all_recommendations;
976+
all_recommendations += //
977+
EXPECT_CALL(mock_receiver, RecommendSizes(2u, 6u)) //
978+
.Times(AtMost(1));
979+
all_recommendations +=
980+
EXPECT_CALL(mock_receiver,
981+
RecommendBounds(DlRect::MakeLTRB(10, 10, 20, 20)))
982+
.Times(AtMost(1));
983+
EXPECT_CALL(mock_receiver, SetPathInfo(DlPathFillType::kNonZero, false));
984+
985+
{
986+
::testing::InSequence sequence;
987+
988+
EXPECT_CALL(mock_receiver, MoveTo(DlPoint(10, 10)))
989+
.After(all_recommendations);
990+
EXPECT_CALL(mock_receiver,
991+
ConicTo(DlPoint(20, 10), DlPoint(20, 20), weight))
992+
.WillOnce(Return(false));
993+
EXPECT_CALL(mock_receiver, QuadTo(i_points[1], i_points[2]));
994+
EXPECT_CALL(mock_receiver, QuadTo(i_points[3], i_points[4]));
995+
}
996+
997+
DlPath(path_builder).Dispatch(mock_receiver);
998+
}
999+
}
1000+
9281001
#ifndef NDEBUG
9291002
// Tests that verify we don't try to use inverse path modes as they aren't
9301003
// supported by either Flutter public APIs or Impeller

engine/src/flutter/display_list/skia/dl_sk_conversions_unittests.cc

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
#include "flutter/display_list/effects/dl_image_filters.h"
1313
#include "flutter/display_list/skia/dl_sk_conversions.h"
1414
#include "flutter/impeller/geometry/path_component.h"
15+
#include "flutter/third_party/skia/include/core/SkColorSpace.h"
16+
#include "flutter/third_party/skia/include/core/SkSamplingOptions.h"
17+
#include "flutter/third_party/skia/include/core/SkTileMode.h"
18+
1519
#include "gtest/gtest.h"
16-
#include "third_party/skia/include/core/SkColorSpace.h"
17-
#include "third_party/skia/include/core/SkSamplingOptions.h"
18-
#include "third_party/skia/include/core/SkTileMode.h"
1920

2021
namespace flutter {
2122
namespace testing {
@@ -402,9 +403,7 @@ TEST(DisplayListSkConversions, ConicToQuads) {
402403
}
403404
}
404405

405-
// This tests the new conic subdivision code in the Impeller conic path
406-
// component object vs the code we used to rely on inside Skia
407-
TEST(DisplayListSkConversions, ConicPathToQuads) {
406+
TEST(DisplayListSkConversions, ConicPathToImpeller) {
408407
// If we execute conicTo with a weight of exactly 1.0, SkPath will turn
409408
// it into a quadTo, so we avoid that by using 0.999
410409
SkScalar weights[4] = {
@@ -426,35 +425,16 @@ TEST(DisplayListSkConversions, ConicPathToQuads) {
426425
ASSERT_EQ(it.type(), impeller::Path::ComponentType::kContour);
427426
++it;
428427

429-
ASSERT_EQ(it.type(), impeller::Path::ComponentType::kQuadratic);
430-
auto quad1 = it.quadratic();
431-
ASSERT_NE(quad1, nullptr);
432-
++it;
433-
434-
ASSERT_EQ(it.type(), impeller::Path::ComponentType::kQuadratic);
435-
auto quad2 = it.quadratic();
436-
ASSERT_NE(quad2, nullptr);
428+
ASSERT_EQ(it.type(), impeller::Path::ComponentType::kConic);
429+
auto conic = it.conic();
430+
ASSERT_NE(conic, nullptr);
437431
++it;
438432

439-
SkPoint sk_points[5];
440-
int ncurves = SkPath::ConvertConicToQuads(
441-
SkPoint::Make(10, 10), SkPoint::Make(20, 10), SkPoint::Make(20, 20),
442-
weight, sk_points, 1);
443-
ASSERT_EQ(ncurves, 2);
444-
445-
EXPECT_FLOAT_EQ(sk_points[0].fX, quad1->p1.x) << "weight: " << weight;
446-
EXPECT_FLOAT_EQ(sk_points[0].fY, quad1->p1.y) << "weight: " << weight;
447-
EXPECT_FLOAT_EQ(sk_points[1].fX, quad1->cp.x) << "weight: " << weight;
448-
EXPECT_FLOAT_EQ(sk_points[1].fY, quad1->cp.y) << "weight: " << weight;
449-
EXPECT_FLOAT_EQ(sk_points[2].fX, quad1->p2.x) << "weight: " << weight;
450-
EXPECT_FLOAT_EQ(sk_points[2].fY, quad1->p2.y) << "weight: " << weight;
451-
452-
EXPECT_FLOAT_EQ(sk_points[2].fX, quad2->p1.x) << "weight: " << weight;
453-
EXPECT_FLOAT_EQ(sk_points[2].fY, quad2->p1.y) << "weight: " << weight;
454-
EXPECT_FLOAT_EQ(sk_points[3].fX, quad2->cp.x) << "weight: " << weight;
455-
EXPECT_FLOAT_EQ(sk_points[3].fY, quad2->cp.y) << "weight: " << weight;
456-
EXPECT_FLOAT_EQ(sk_points[4].fX, quad2->p2.x) << "weight: " << weight;
457-
EXPECT_FLOAT_EQ(sk_points[4].fY, quad2->p2.y) << "weight: " << weight;
433+
EXPECT_EQ(conic->p1, DlPoint(10, 10)) << "weight: " << weight;
434+
EXPECT_EQ(conic->cp, DlPoint(20, 10)) << "weight: " << weight;
435+
EXPECT_EQ(conic->p2, DlPoint(20, 20)) << "weight: " << weight;
436+
EXPECT_EQ(conic->weight.x, weight) << "weight: " << weight;
437+
EXPECT_EQ(conic->weight.y, weight) << "weight: " << weight;
458438
}
459439
}
460440

engine/src/flutter/display_list/testing/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ source_set("display_list_testing") {
1010

1111
sources = [
1212
"dl_test_equality.h",
13+
"dl_test_mock_path_receiver.h",
1314
"dl_test_snippets.cc",
1415
"dl_test_snippets.h",
1516
]

0 commit comments

Comments
 (0)