Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 62c0023

Browse files
authored
Merge branch 'main' into deferred-platform-view-injection
2 parents 526e186 + e70d1ad commit 62c0023

File tree

174 files changed

+2024
-1287
lines changed

Some content is hidden

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

174 files changed

+2024
-1287
lines changed

.ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ targets:
323323

324324
- name: Linux mac_android_aot_engine
325325
recipe: engine_v2/engine_v2
326-
timeout: 120
326+
timeout: 240
327327
properties:
328328
add_recipes_cq: "true"
329329
release_build: "true"
@@ -353,7 +353,7 @@ targets:
353353

354354
- name: Mac mac_host_engine
355355
recipe: engine_v2/engine_v2
356-
timeout: 120
356+
timeout: 240
357357
properties:
358358
add_recipes_cq: "true"
359359
release_build: "true"
@@ -379,7 +379,7 @@ targets:
379379

380380
- name: Mac mac_ios_engine
381381
recipe: engine_v2/engine_v2
382-
timeout: 120
382+
timeout: 240
383383
properties:
384384
add_recipes_cq: "true"
385385
release_build: "true"

.github/workflows/scorecards-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
# Upload the results as artifacts (optional).
4343
- name: "Upload artifact"
44-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
44+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
4545
with:
4646
name: SARIF file
4747
path: results.sarif

.github/workflows/third_party_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: python ci/scan_flattened_deps.py
3939
# Upload the results as artifacts.
4040
- name: "Upload artifact"
41-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
41+
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
4242
with:
4343
name: SARIF file
4444
path: osvReport.sarif

DEPS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ vars = {
1818
'llvm_git': 'https://llvm.googlesource.com',
1919
# OCMock is for testing only so there is no google clone
2020
'ocmock_git': 'https://github.com/erikdoe/ocmock.git',
21-
'skia_revision': '79f23e8d8b5d3c602bc2a1081ddb39d3f8085c9e',
21+
'skia_revision': '0d39fb28b32ddcd8894ee8f3565153d9b09266c0',
2222

2323
# WARNING: DO NOT EDIT canvaskit_cipd_instance MANUALLY
2424
# See `lib/web_ui/README.md` for how to roll CanvasKit to a new version.
@@ -66,7 +66,7 @@ vars = {
6666
# Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS
6767
# You can use //tools/dart/create_updated_flutter_deps.py to produce
6868
# updated revision list of existing dependencies.
69-
'dart_revision': 'f1e37ed8917e2d4b1c825745d558d435c44780bb',
69+
'dart_revision': 'b21443096387b281a14e947b300df3e9f91054f2',
7070

7171
# WARNING: DO NOT EDIT MANUALLY
7272
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -272,7 +272,7 @@ deps = {
272272
'src': 'https://github.com/flutter/buildroot.git' + '@' + '0141e94b34cbd3db77f28796587334857fa985da',
273273

274274
'src/flutter/third_party/rapidjson':
275-
Var('fuchsia_git') + '/third_party/rapidjson' + '@' + 'ef3564c5c8824989393b87df25355baf35ff544b',
275+
Var('flutter_git') + '/third_party/rapidjson' + '@' + 'ef3564c5c8824989393b87df25355baf35ff544b',
276276

277277
'src/third_party/harfbuzz':
278278
Var('flutter_git') + '/third_party/harfbuzz' + '@' + 'b61761f36e93c3f1e36c9bed0755acfa7f4e3d4f',
@@ -284,7 +284,7 @@ deps = {
284284
Var('llvm_git') + '/llvm-project/libcxxabi' + '@' + '2ce528fb5e0f92e57c97ec3ff53b75359d33af12',
285285

286286
'src/flutter/third_party/glfw':
287-
Var('fuchsia_git') + '/third_party/glfw' + '@' + 'dd8a678a66f1967372e5a5e3deac41ebf65ee127',
287+
Var('flutter_git') + '/third_party/glfw' + '@' + 'dd8a678a66f1967372e5a5e3deac41ebf65ee127',
288288

289289
'src/flutter/third_party/shaderc':
290290
Var('chromium_git') + '/external/github.com/google/shaderc' + '@' + '37e25539ce199ecaf19fb7f7d27818716d36686d',
@@ -633,7 +633,7 @@ deps = {
633633
Var('ocmock_git') + '@' + Var('ocmock_rev'),
634634

635635
'src/flutter/third_party/libjpeg-turbo/src':
636-
Var('fuchsia_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f',
636+
Var('flutter_git') + '/third_party/libjpeg-turbo' + '@' + '0fb821f3b2e570b2783a94ccd9a2fb1f4916ae9f',
637637

638638
'src/third_party/libpng':
639639
Var('flutter_git') + '/third_party/libpng' + '@' + '9187b6e12756317f6d44fc669ac11dfc262bd192',
@@ -657,10 +657,10 @@ deps = {
657657
Var('flutter_git') + '/third_party/sqlite' + '@' + '0f61bd2023ba94423b4e4c8cfb1a23de1fe6a21c',
658658

659659
'src/flutter/third_party/pyyaml':
660-
Var('fuchsia_git') + '/third_party/pyyaml.git' + '@' + '25e97546488eee166b1abb229a27856cecd8b7ac',
660+
Var('flutter_git') + '/third_party/pyyaml.git' + '@' + '25e97546488eee166b1abb229a27856cecd8b7ac',
661661

662662
'src/flutter/third_party/swiftshader':
663-
Var('swiftshader_git') + '/SwiftShader.git' + '@' + '5b6f768198ce6a6485da31e1be06b5a17a2bf0a0',
663+
Var('swiftshader_git') + '/SwiftShader.git' + '@' + '2fa7e9b99ae4e70ea5ae2cc9c8d3afb43391384f',
664664

665665
'src/third_party/angle':
666666
Var('chromium_git') + '/angle/angle.git' + '@' + '6a09e41ce6ea8c93524faae1a925eb01562f53b1',
@@ -705,7 +705,7 @@ deps = {
705705
'src/flutter/third_party/tinygltf':
706706
Var('flutter_git') + '/third_party/tinygltf.git' + '@' + '9bb5806df4055ac973b970ba5b3e27ce27d98148',
707707

708-
'src/third_party/json':
708+
'src/flutter/third_party/json':
709709
Var('flutter_git') + '/third_party/json.git' + '@' + '17d9eacd248f58b73f4d1be518ef649fe2295642',
710710

711711
'src/flutter/third_party/stb':

build/secondary/third_party/json/BUILD.gn renamed to build/secondary/flutter/third_party/json/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44

5-
source_root = "//third_party/json"
5+
source_root = "//flutter/third_party/json"
66

77
config("json_public_config") {
88
include_dirs = [ "$source_root/include" ]

build/secondary/flutter/third_party/tinygltf/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ source_set("tinygltf") {
2020
"//flutter/build/secondary/flutter/third_party/tinygltf/tinygltf_stub.cc",
2121
]
2222

23-
deps = [ "//third_party/json" ]
23+
deps = [ "//flutter/third_party/json" ]
2424
}

build/secondary/third_party/inja/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ source_set("inja") {
3939
"$source_root/include/inja/utils.hpp",
4040
]
4141

42-
public_deps = [ "//third_party/json" ]
42+
public_deps = [ "//flutter/third_party/json" ]
4343
}

build/secondary/third_party/libcxx/config/__config_site

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#ifndef _LIBCPP_CONFIG_SITE
22
#define _LIBCPP_CONFIG_SITE
33

4-
/* #undef _LIBCPP_ABI_VERSION */
5-
/* #undef _LIBCPP_ABI_UNSTABLE */
4+
#define _LIBCPP_ABI_VERSION 1
5+
#define _LIBCPP_ABI_NAMESPACE _fl
6+
67
/* #undef _LIBCPP_ABI_FORCE_ITANIUM */
78
/* #undef _LIBCPP_ABI_FORCE_MICROSOFT */
89
/* #undef _LIBCPP_HIDE_FROM_ABI_PER_TU_BY_DEFAULT */

ci/licenses.sh

Lines changed: 67 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ unset CDPATH
2121
function follow_links() (
2222
cd -P "$(dirname -- "$1")"
2323
file="$PWD/$(basename -- "$1")"
24-
while [[ -h "$file" ]]; do
24+
while [[ -L "$file" ]]; do
2525
cd -P "$(dirname -- "$file")"
2626
file="$(readlink -- "$file")"
2727
cd -P "$(dirname -- "$file")"
@@ -31,7 +31,10 @@ function follow_links() (
3131
)
3232

3333
SCRIPT_DIR=$(follow_links "$(dirname -- "${BASH_SOURCE[0]}")")
34-
SRC_DIR="$(cd "$SCRIPT_DIR/../.."; pwd -P)"
34+
SRC_DIR="$(
35+
cd "$SCRIPT_DIR/../.."
36+
pwd -P
37+
)"
3538
DART_BIN="$SRC_DIR/third_party/dart/tools/sdks/dart-sdk/bin"
3639
PATH="$DART_BIN:$PATH"
3740

@@ -50,7 +53,10 @@ fi
5053
echo "Verifying license script is still happy..."
5154
echo "Using dart from: $(command -v dart)"
5255

53-
untracked_files="$(cd "$SRC_DIR/flutter"; git status --ignored --short | grep -E "^!" | awk "{print\$2}")"
56+
untracked_files="$(
57+
cd "$SRC_DIR/flutter"
58+
git status --ignored --short | grep -E "^!" | awk "{print\$2}"
59+
)"
5460
untracked_count="$(echo "$untracked_files" | wc -l)"
5561
if [[ $untracked_count -gt 0 ]]; then
5662
echo ""
@@ -80,9 +86,9 @@ function collect_licenses() (
8086
# interpreter is faster than using unoptimized machine code, which has
8187
# no chance of being optimized(due to its size).
8288
dart --enable-asserts --interpret_irregexp lib/main.dart \
83-
--src ../../.. \
84-
--out ../../../out/license_script_output \
85-
--golden ../../ci/licenses_golden \
89+
--src ../../.. \
90+
--out ../../../out/license_script_output \
91+
--golden ../../ci/licenses_golden \
8692
"${QUIET}"
8793
)
8894

@@ -98,80 +104,80 @@ function verify_licenses() (
98104
collect_licenses
99105

100106
for f in out/license_script_output/licenses_*; do
101-
if ! cmp -s "flutter/ci/licenses_golden/$(basename "$f")" "$f"; then
102-
echo "============================= ERROR ============================="
103-
echo "License script got different results than expected for $f."
104-
echo "Please rerun the licenses script locally to verify that it is"
105-
echo "correctly catching any new licenses for anything you may have"
106-
echo "changed, and then update this file:"
107-
echo " flutter/sky/packages/sky_engine/LICENSE"
108-
echo "For more information, see the script in:"
109-
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
110-
echo ""
111-
diff -U 6 "flutter/ci/licenses_golden/$(basename "$f")" "$f"
112-
echo "================================================================="
113-
echo ""
114-
exitStatus=1
115-
fi
116-
done
117-
118-
echo "Verifying license tool signature..."
119-
if ! cmp -s "flutter/ci/licenses_golden/tool_signature" "out/license_script_output/tool_signature"; then
107+
if ! cmp -s "flutter/ci/licenses_golden/$(basename "$f")" "$f"; then
120108
echo "============================= ERROR ============================="
121-
echo "The license tool signature has changed. This is expected when"
122-
echo "there have been changes to the license tool itself. Licenses have"
123-
echo "been re-computed for all components. If only the license script has"
124-
echo "changed, no diffs are typically expected in the output of the"
125-
echo "script. Verify the output, and if it looks correct, update the"
126-
echo "license tool signature golden file:"
127-
echo " ci/licenses_golden/tool_signature"
109+
echo "License script got different results than expected for $f."
110+
echo "Please rerun the licenses script locally to verify that it is"
111+
echo "correctly catching any new licenses for anything you may have"
112+
echo "changed, and then update this file:"
113+
echo " flutter/sky/packages/sky_engine/LICENSE"
128114
echo "For more information, see the script in:"
129115
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
130116
echo ""
131-
diff -U 6 "flutter/ci/licenses_golden/tool_signature" "out/license_script_output/tool_signature"
117+
diff -U 6 "flutter/ci/licenses_golden/$(basename "$f")" "$f"
132118
echo "================================================================="
133119
echo ""
134120
exitStatus=1
121+
fi
122+
done
123+
124+
echo "Verifying license tool signature..."
125+
if ! cmp -s "flutter/ci/licenses_golden/tool_signature" "out/license_script_output/tool_signature"; then
126+
echo "============================= ERROR ============================="
127+
echo "The license tool signature has changed. This is expected when"
128+
echo "there have been changes to the license tool itself. Licenses have"
129+
echo "been re-computed for all components. If only the license script has"
130+
echo "changed, no diffs are typically expected in the output of the"
131+
echo "script. Verify the output, and if it looks correct, update the"
132+
echo "license tool signature golden file:"
133+
echo " ci/licenses_golden/tool_signature"
134+
echo "For more information, see the script in:"
135+
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
136+
echo ""
137+
diff -U 6 "flutter/ci/licenses_golden/tool_signature" "out/license_script_output/tool_signature"
138+
echo "================================================================="
139+
echo ""
140+
exitStatus=1
135141
fi
136142

137143
echo "Verifying excluded files list..."
138144
if ! cmp -s "flutter/ci/licenses_golden/excluded_files" "out/license_script_output/excluded_files"; then
139-
echo "============================= ERROR ============================="
140-
echo "The license is excluding a different number of files than previously."
141-
echo "This is only expected when new non-source files have been introduced."
142-
echo "Verify that all the newly ignored files are definitely not shipped with"
143-
echo "any binaries that we compile (including impellerc and Wasm)."
144-
echo "If the changes look correct, update this file:"
145-
echo " ci/licenses_golden/excluded_files"
146-
echo "For more information, see the script in:"
147-
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
148-
echo ""
149-
diff -U 6 "flutter/ci/licenses_golden/excluded_files" "out/license_script_output/excluded_files"
150-
echo "================================================================="
151-
echo ""
152-
exitStatus=1
145+
echo "============================= ERROR ============================="
146+
echo "The license is excluding a different number of files than previously."
147+
echo "This is only expected when new non-source files have been introduced."
148+
echo "Verify that all the newly ignored files are definitely not shipped with"
149+
echo "any binaries that we compile (including impellerc and Wasm)."
150+
echo "If the changes look correct, update this file:"
151+
echo " ci/licenses_golden/excluded_files"
152+
echo "For more information, see the script in:"
153+
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
154+
echo ""
155+
diff -U 6 "flutter/ci/licenses_golden/excluded_files" "out/license_script_output/excluded_files"
156+
echo "================================================================="
157+
echo ""
158+
exitStatus=1
153159
fi
154160

155161
echo "Checking license count in licenses_flutter..."
156162

157163
local actualLicenseCount
158164
actualLicenseCount="$(tail -n 1 flutter/ci/licenses_golden/licenses_flutter | tr -dc '0-9')"
159-
local expectedLicenseCount=112 # When changing this number: Update the error message below as well describing the newly expected license types.
165+
local expectedLicenseCount=113 # When changing this number: Update the error message below as well describing the newly expected license types.
160166

161167
if [[ $actualLicenseCount -ne $expectedLicenseCount ]]; then
162-
echo "=============================== ERROR ==============================="
163-
echo "The total license count in flutter/ci/licenses_golden/licenses_flutter"
164-
echo "changed from $expectedLicenseCount to $actualLicenseCount."
165-
echo "It's very likely that this is an unintentional change. Please"
166-
echo "double-check that all newly added files have a BSD-style license"
167-
echo "header with the following copyright:"
168-
echo " Copyright 2013 The Flutter Authors. All rights reserved."
169-
echo "Files in 'third_party/txt' may have an Apache license header instead."
170-
echo "If you're absolutely sure that the change in license count is"
171-
echo "intentional, update 'flutter/ci/licenses.sh' with the new count."
172-
echo "================================================================="
173-
echo ""
174-
exitStatus=1
168+
echo "=============================== ERROR ==============================="
169+
echo "The total license count in flutter/ci/licenses_golden/licenses_flutter"
170+
echo "changed from $expectedLicenseCount to $actualLicenseCount."
171+
echo "It's very likely that this is an unintentional change. Please"
172+
echo "double-check that all newly added files have a BSD-style license"
173+
echo "header with the following copyright:"
174+
echo " Copyright 2013 The Flutter Authors. All rights reserved."
175+
echo "Files in 'third_party/txt' may have an Apache license header instead."
176+
echo "If you're absolutely sure that the change in license count is"
177+
echo "intentional, update 'flutter/ci/licenses.sh' with the new count."
178+
echo "================================================================="
179+
echo ""
180+
exitStatus=1
175181
fi
176182

177183
if [[ $exitStatus -eq 0 ]]; then

ci/licenses_golden/excluded_files

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,34 @@
601601
../../../flutter/third_party/inja/test
602602
../../../flutter/third_party/inja/third_party/amalgamate
603603
../../../flutter/third_party/inja/third_party/include/doctest
604+
../../../flutter/third_party/json/.clang-format
605+
../../../flutter/third_party/json/.clang-tidy
606+
../../../flutter/third_party/json/.git
607+
../../../flutter/third_party/json/.github
608+
../../../flutter/third_party/json/.gitignore
609+
../../../flutter/third_party/json/.lgtm.yml
610+
../../../flutter/third_party/json/.reuse
611+
../../../flutter/third_party/json/BUILD.bazel
612+
../../../flutter/third_party/json/CITATION.cff
613+
../../../flutter/third_party/json/CMakeLists.txt
614+
../../../flutter/third_party/json/ChangeLog.md
615+
../../../flutter/third_party/json/Makefile
616+
../../../flutter/third_party/json/README.md
617+
../../../flutter/third_party/json/WORKSPACE.bazel
618+
../../../flutter/third_party/json/cmake
619+
../../../flutter/third_party/json/docs
620+
../../../flutter/third_party/json/meson.build
621+
../../../flutter/third_party/json/tests
622+
../../../flutter/third_party/json/tools/amalgamate/CHANGES.md
623+
../../../flutter/third_party/json/tools/amalgamate/README.md
624+
../../../flutter/third_party/json/tools/amalgamate/amalgamate.py
625+
../../../flutter/third_party/json/tools/gdb_pretty_printer/README.md
626+
../../../flutter/third_party/json/tools/gdb_pretty_printer/nlohmann-json.py
627+
../../../flutter/third_party/json/tools/generate_natvis/README.md
628+
../../../flutter/third_party/json/tools/generate_natvis/generate_natvis.py
629+
../../../flutter/third_party/json/tools/serve_header/README.md
630+
../../../flutter/third_party/json/tools/serve_header/requirements.txt
631+
../../../flutter/third_party/json/tools/serve_header/serve_header.py
604632
../../../flutter/third_party/libjpeg-turbo/src/.git
605633
../../../flutter/third_party/libjpeg-turbo/src/.gitignore
606634
../../../flutter/third_party/libjpeg-turbo/src/BUILDING.md
@@ -2792,34 +2820,6 @@
27922820
../../../third_party/icu/source/tools/tzcode/Makefile.in
27932821
../../../third_party/icu/source/tools/tzcode/readme.txt
27942822
../../../third_party/java
2795-
../../../third_party/json/.clang-format
2796-
../../../third_party/json/.clang-tidy
2797-
../../../third_party/json/.git
2798-
../../../third_party/json/.github
2799-
../../../third_party/json/.gitignore
2800-
../../../third_party/json/.lgtm.yml
2801-
../../../third_party/json/.reuse
2802-
../../../third_party/json/BUILD.bazel
2803-
../../../third_party/json/CITATION.cff
2804-
../../../third_party/json/CMakeLists.txt
2805-
../../../third_party/json/ChangeLog.md
2806-
../../../third_party/json/Makefile
2807-
../../../third_party/json/README.md
2808-
../../../third_party/json/WORKSPACE.bazel
2809-
../../../third_party/json/cmake
2810-
../../../third_party/json/docs
2811-
../../../third_party/json/meson.build
2812-
../../../third_party/json/tests
2813-
../../../third_party/json/tools/amalgamate/CHANGES.md
2814-
../../../third_party/json/tools/amalgamate/README.md
2815-
../../../third_party/json/tools/amalgamate/amalgamate.py
2816-
../../../third_party/json/tools/gdb_pretty_printer/README.md
2817-
../../../third_party/json/tools/gdb_pretty_printer/nlohmann-json.py
2818-
../../../third_party/json/tools/generate_natvis/README.md
2819-
../../../third_party/json/tools/generate_natvis/generate_natvis.py
2820-
../../../third_party/json/tools/serve_header/README.md
2821-
../../../third_party/json/tools/serve_header/requirements.txt
2822-
../../../third_party/json/tools/serve_header/serve_header.py
28232823
../../../third_party/libcxx/.clang-format
28242824
../../../third_party/libcxx/.clang-tidy
28252825
../../../third_party/libcxx/.git

0 commit comments

Comments
 (0)