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

Commit 61519b5

Browse files
authored
Merge branch 'main' into bdero/reland-embedder-macos-desktop
2 parents 7e3398d + 7f12e34 commit 61519b5

File tree

24 files changed

+71
-113
lines changed

24 files changed

+71
-113
lines changed

.github/workflows/scorecards-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ jobs:
4949

5050
# Upload the results to GitHub's code scanning dashboard.
5151
- name: "Upload to code-scanning"
52-
uses: github/codeql-action/upload-sarif@0225834cc549ee0ca93cb085b92954821a145866
52+
uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4
5353
with:
5454
sarif_file: results.sarif

.github/workflows/third_party_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ jobs:
4545
retention-days: 5
4646
# Upload the results to GitHub's code scanning dashboard.
4747
- name: "Upload to security tab"
48-
uses: github/codeql-action/upload-sarif@0225834cc549ee0ca93cb085b92954821a145866
48+
uses: github/codeql-action/upload-sarif@83f0fe6c4988d98a455712a27f0255212bba9bd4
4949
with:
5050
sarif_file: osvReport.sarif

DEPS

Lines changed: 18 additions & 18 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': '611132d6ab8c0f19f2ddff7870917b9009c4698b',
21+
'skia_revision': 'a226cfbd6cc7179e9ed165125d6861b99550a001',
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.
@@ -53,7 +53,7 @@ vars = {
5353
# Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS
5454
# You can use //tools/dart/create_updated_flutter_deps.py to produce
5555
# updated revision list of existing dependencies.
56-
'dart_revision': 'd00a370c1fd3ecac9c7bbb6c1dd13325cfa2b805',
56+
'dart_revision': '3d4d29d8f16b7d81c03b701f29039fb216d15a56',
5757

5858
# WARNING: DO NOT EDIT MANUALLY
5959
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -67,11 +67,11 @@ vars = {
6767
'dart_libprotobuf_rev': '24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb',
6868
'dart_perfetto_rev': 'b8da07095979310818f0efde2ef3c69ea70d62c5',
6969
'dart_protobuf_gn_rev': 'ca669f79945418f6229e4fef89b666b2a88cbb10',
70-
'dart_protobuf_rev': 'da6953c65a93f02908f79d7d8402af843a60dcff',
70+
'dart_protobuf_rev': '346a72dd04602f004a5b2c06ee4196b6112492b7',
7171
'dart_pub_rev': '078c7fea0be2656debc675646806da14fa94f853',
7272
'dart_root_certificates_rev': '692f6d6488af68e0121317a9c2c9eb393eb0ee50',
7373
'dart_watcher_rev': '3f17faa2d09dca3e23bc07a01f2045ec0cd2837d',
74-
'dart_webdev_rev': 'f565d7f1f8ac6e38613beb3be3b370d3dae23d4b',
74+
'dart_webdev_rev': 'd442fa89bfe8a81ec0679f2d927765e182f7baf9',
7575
'dart_webkit_inspection_protocol_rev': '39a3c297ff573635e7936b015ce4f3466e4739d6',
7676
'dart_yaml_edit_rev': '87dcf31fcaada207ae7c3527f9885982534badce',
7777
'dart_zlib_rev': '14dd4c4455602c9b71a1a89b5cafd1f4030d2e3f',
@@ -334,13 +334,13 @@ deps = {
334334
{'packages': [{'version': 'git_revision:0c0c65dbaf53f8c508bfd6acbeb7f1986c1ca1f8', 'package': 'dart/third_party/flutter/devtools'}], 'dep_type': 'cipd'},
335335

336336
'src/third_party/dart/third_party/pkg/args':
337-
Var('dart_git') + '/args.git@a9543c021f9409832b1668f9256f247585362389',
337+
Var('dart_git') + '/args.git@f0f6cd22d29f15f86b3d2caab053bae029d30c9a',
338338

339339
'src/third_party/dart/third_party/pkg/async':
340340
Var('dart_git') + '/async.git@96c29d0af81436443a3a24683915d39202172cde',
341341

342342
'src/third_party/dart/third_party/pkg/bazel_worker':
343-
Var('dart_git') + '/bazel_worker.git@c14a2687728081adc14c12fa50165e785326275c',
343+
Var('dart_git') + '/bazel_worker.git@d9b389f30848253d3310f931a9b8d39ca07102b1',
344344

345345
'src/third_party/dart/third_party/pkg/boolean_selector':
346346
Var('dart_git') + '/boolean_selector.git@3a1c982002f580b835b4380f44d9f8e5bc37fc4f',
@@ -370,7 +370,7 @@ deps = {
370370
Var('dart_git') + '/dart_style.git@2956b1a705953f880a5dae9d3a0969df0fc45e99',
371371

372372
'src/third_party/dart/third_party/pkg/dartdoc':
373-
Var('dart_git') + '/dartdoc.git@39fe1a8acdfa01d3671223dbbb4e98d360bd1083',
373+
Var('dart_git') + '/dartdoc.git@950898f5ffea617bc572687c15cf51b2d6f05dad',
374374

375375
'src/third_party/dart/third_party/pkg/ffi':
376376
Var('dart_git') + '/ffi.git@7f4acbd7532d94a793452030ff96bfef8cd96b68',
@@ -388,7 +388,7 @@ deps = {
388388
Var('dart_git') + '/html.git@92eacabadf40aa24c8f4289682ef2822c5d7e414',
389389

390390
'src/third_party/dart/third_party/pkg/http':
391-
Var('dart_git') + '/http.git@8834aecd973446263a23e1d2ea17932721c87281',
391+
Var('dart_git') + '/http.git@18a43a2b3cc1af2f1e3a90aa848b7645bc400e0f',
392392

393393
'src/third_party/dart/third_party/pkg/http_multi_server':
394394
Var('dart_git') + '/http_multi_server.git@a209cd59d99b52ff08b32ba37bdc9fc1a79bc9f2',
@@ -403,7 +403,7 @@ deps = {
403403
Var('dart_git') + '/json_rpc_2.git@73467f3651669af4870260fea4e99d7ba6ccb7ec',
404404

405405
'src/third_party/dart/third_party/pkg/leak_tracker':
406-
Var('dart_git') + '/leak_tracker.git@cbbdecae245c954686f871f04353f66b703c3332',
406+
Var('dart_git') + '/leak_tracker.git@7f2cab3e0ce296f29ce0e45c5967707b95268eef',
407407

408408
'src/third_party/dart/third_party/pkg/linter':
409409
Var('dart_git') + '/linter.git@27b46ce246204a2c0170a4bd5b23b94095e89a22',
@@ -421,10 +421,10 @@ deps = {
421421
Var('dart_git') + '/mime.git@24448401f621b9e154d165c900a3c8decd8a23f4',
422422

423423
'src/third_party/dart/third_party/pkg/mockito':
424-
Var('dart_git') + '/mockito.git@924f65cfe3510384fb780c5bd082c49cdb9dd6f2',
424+
Var('dart_git') + '/mockito.git@40fe2ca00a10ae0fb73efb848920383be996d753',
425425

426426
'src/third_party/dart/third_party/pkg/native':
427-
Var('dart_git') + '/native.git@c851e69448594b1942e62e0d9f92e47d99575b99',
427+
Var('dart_git') + '/native.git@76bc55e6c978d1793471ccfd7b0c883b3ba01dca',
428428

429429
'src/third_party/dart/third_party/pkg/package_config':
430430
Var('dart_git') + '/package_config.git@203de2022af26b3ab2bcec18cc49614d9e502897',
@@ -442,10 +442,10 @@ deps = {
442442
Var('dart_git') + '/pub.git' + '@' + Var('dart_pub_rev'),
443443

444444
'src/third_party/dart/third_party/pkg/pub_semver':
445-
Var('dart_git') + '/pub_semver.git@3930557ee0b20ef528713952c318139409edadb4',
445+
Var('dart_git') + '/pub_semver.git@c03435229a57d7b158df9feafdb5a2ccaef28d39',
446446

447447
'src/third_party/dart/third_party/pkg/shelf':
448-
Var('dart_git') + '/shelf.git@ce379aa3c22024edb2df3657fd564f1f463406e6',
448+
Var('dart_git') + '/shelf.git@a404b6a3f3a3bde1a5f62b051b8852652ed677da',
449449

450450
'src/third_party/dart/third_party/pkg/source_map_stack_trace':
451451
Var('dart_git') + '/source_map_stack_trace.git@b83af01938225c1706bbc6c1f86bd4a394f91380',
@@ -460,7 +460,7 @@ deps = {
460460
Var('dart_git') + '/sse.git@bfcbcd7a7320c74dfee154152419381c508a1fad',
461461

462462
'src/third_party/dart/third_party/pkg/stack_trace':
463-
Var('dart_git') + '/stack_trace.git@8b2046ecac56f5bb9196033ed187da0cf73eac67',
463+
Var('dart_git') + '/stack_trace.git@86f7e30912d3cac447a751dc0bf2bafd473492dd',
464464

465465
'src/third_party/dart/third_party/pkg/stream_channel':
466466
Var('dart_git') + '/stream_channel.git@b1d3384638064a4f25beacef3be770e2c4534408',
@@ -478,7 +478,7 @@ deps = {
478478
Var('dart_git') + '/test_reflective_loader.git@40d61b16647cd61b02d806fea46362ef07e7c502',
479479

480480
'src/third_party/dart/third_party/pkg/tools':
481-
Var('dart_git') + '/tools.git@389925fcfe79edd682e7547ce6f8d05bd0d786a8',
481+
Var('dart_git') + '/tools.git@d723a55062959713f715ca3f10190a72c79634ef',
482482

483483
'src/third_party/dart/third_party/pkg/typed_data':
484484
Var('dart_git') + '/typed_data.git@693f48e3d1d528f6f26d7069a2ad29b460650455',
@@ -505,7 +505,7 @@ deps = {
505505
Var('dart_git') + '/yaml_edit.git' + '@' + Var('dart_yaml_edit_rev'),
506506

507507
'src/third_party/dart/tools/sdks/dart-sdk':
508-
{'packages': [{'version': 'version:3.1.0-155.0.dev', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
508+
{'packages': [{'version': 'git_revision:7a6514d1377175decd3a886fe4190fbbebddac3a', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
509509

510510
# WARNING: end of dart dependencies list that is cleaned up automatically - see create_updated_flutter_deps.py.
511511

@@ -888,7 +888,7 @@ deps = {
888888
'packages': [
889889
{
890890
'package': 'fuchsia/sdk/core/mac-amd64',
891-
'version': '5pFMQIRHNENhekRDO9H5EkK516sUM6RY8ja7gO29DuMC'
891+
'version': 'fgfgAhpxFpse7Xi4ixmOI64x9KaHc0MVl77Ezx_5KMQC'
892892
}
893893
],
894894
'condition': 'host_os == "mac" and not download_fuchsia_sdk',
@@ -898,7 +898,7 @@ deps = {
898898
'packages': [
899899
{
900900
'package': 'fuchsia/sdk/core/linux-amd64',
901-
'version': 'Bb9z8SjSCzRN6SVeejkHk4KqDV8PspbyLyfB_cuQ8ZsC'
901+
'version': 'vAwdggqMrL1yoH_ZneUmvbWLwC--mU9X4Uk4lddoxm0C'
902902
}
903903
],
904904
'condition': 'host_os == "linux" and not download_fuchsia_sdk',

ci/licenses_golden/licenses_fuchsia

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: 9ca584455f0be9be21dfffa2a02c8961
1+
Signature: 15a39ae639a64a262966273c993019f8
22

33
====================================================================================================
44
LIBRARY: fuchsia_sdk

ci/licenses_golden/licenses_skia

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Signature: bf160be6f34b72380eb33c98f782b3ca
1+
Signature: 3b36fd88c606e949dd1b43a46b81debe
22

33
====================================================================================================
44
LIBRARY: etc1

ci/licenses_golden/licenses_third_party

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Signature: 36d908473ff84048e26233ee191464ca
1+
Signature: fb9c41989bbf2d81046c5b4fbdb807ed
2+
23

34
====================================================================================================
45
LIBRARY: angle

flow/layers/layer_raster_cache_item.cc

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#include "flutter/flow/raster_cache_item.h"
88
#include "flutter/flow/raster_cache_util.h"
99

10-
// TODO(zanderso): https://github.com/flutter/flutter/issues/127701
11-
// NOLINTBEGIN(bugprone-unchecked-optional-access)
12-
1310
namespace flutter {
1411

1512
LayerRasterCacheItem::LayerRasterCacheItem(Layer* layer,
@@ -143,7 +140,8 @@ static const auto* flow_type = "RasterCacheFlow::Layer";
143140

144141
bool LayerRasterCacheItem::TryToPrepareRasterCache(const PaintContext& context,
145142
bool parent_cached) const {
146-
if (!context.raster_cache || parent_cached) {
143+
auto maybe_id = GetId();
144+
if (!maybe_id.has_value() || !context.raster_cache || parent_cached) {
147145
return false;
148146
}
149147
if (cache_state_ != kNone) {
@@ -157,8 +155,9 @@ bool LayerRasterCacheItem::TryToPrepareRasterCache(const PaintContext& context,
157155
.flow_type = flow_type,
158156
// clang-format on
159157
};
158+
auto id = maybe_id.value();
160159
return context.raster_cache->UpdateCacheEntry(
161-
GetId().value(), r_context,
160+
id, r_context,
162161
[ctx = context, cache_state = cache_state_,
163162
layer = layer_](DlCanvas* canvas) {
164163
Rasterize(cache_state, layer, ctx, canvas);
@@ -176,7 +175,7 @@ bool LayerRasterCacheItem::Draw(const PaintContext& context,
176175
bool LayerRasterCacheItem::Draw(const PaintContext& context,
177176
DlCanvas* canvas,
178177
const DlPaint* paint) const {
179-
if (!context.raster_cache || !canvas) {
178+
if (!layer_children_id_.has_value() || !context.raster_cache || !canvas) {
180179
return false;
181180
}
182181
switch (cache_state_) {
@@ -193,5 +192,3 @@ bool LayerRasterCacheItem::Draw(const PaintContext& context,
193192
}
194193

195194
} // namespace flutter
196-
197-
// NOLINTEND(bugprone-unchecked-optional-access)

impeller/display_list/skia_conversions.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
#include "impeller/display_list/skia_conversions.h"
66

7-
// TODO(zanderso): https://github.com/flutter/flutter/issues/127701
8-
// NOLINTBEGIN(bugprone-unchecked-optional-access)
9-
107
namespace impeller {
118
namespace skia_conversions {
129

@@ -24,7 +21,7 @@ std::optional<Rect> ToRect(const SkRect* rect) {
2421
std::vector<Rect> ToRects(const SkRect tex[], int count) {
2522
auto result = std::vector<Rect>();
2623
for (int i = 0; i < count; i++) {
27-
result.push_back(ToRect(&tex[i]).value());
24+
result.push_back(ToRect(tex[i]));
2825
}
2926
return result;
3027
}
@@ -180,5 +177,3 @@ std::optional<impeller::PixelFormat> ToPixelFormat(SkColorType type) {
180177

181178
} // namespace skia_conversions
182179
} // namespace impeller
183-
184-
// NOLINTEND(bugprone-unchecked-optional-access)

impeller/entity/contents/content_context.cc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#include "impeller/renderer/render_target.h"
1717
#include "impeller/tessellator/tessellator.h"
1818

19-
// TODO(zanderso): https://github.com/flutter/flutter/issues/127701
20-
// NOLINTBEGIN(bugprone-unchecked-optional-access)
21-
2219
namespace impeller {
2320

2421
void ContentContextOptions::ApplyToPipelineDescriptor(
@@ -33,13 +30,7 @@ void ContentContextOptions::ApplyToPipelineDescriptor(
3330
desc.SetSampleCount(sample_count);
3431

3532
ColorAttachmentDescriptor color0 = *desc.GetColorAttachmentDescriptor(0u);
36-
if (!color_attachment_pixel_format.has_value()) {
37-
VALIDATION_LOG << "Color attachment pixel format must be set.";
38-
color0.format = PixelFormat::kB8G8R8A8UNormInt;
39-
} else {
40-
color0.format = *color_attachment_pixel_format;
41-
}
42-
color0.format = *color_attachment_pixel_format;
33+
color0.format = color_attachment_pixel_format.value_or(PixelFormat::kUnknown);
4334
color0.alpha_blend_op = BlendOperation::kAdd;
4435
color0.color_blend_op = BlendOperation::kAdd;
4536

@@ -137,9 +128,9 @@ void ContentContextOptions::ApplyToPipelineDescriptor(
137128
desc.ClearStencilAttachments();
138129
}
139130

140-
if (desc.GetFrontStencilAttachmentDescriptor().has_value()) {
141-
StencilAttachmentDescriptor stencil =
142-
desc.GetFrontStencilAttachmentDescriptor().value();
131+
auto maybe_stencil = desc.GetFrontStencilAttachmentDescriptor();
132+
if (maybe_stencil.has_value()) {
133+
StencilAttachmentDescriptor stencil = maybe_stencil.value();
143134
stencil.stencil_compare = stencil_compare;
144135
stencil.depth_stencil_pass = stencil_operation;
145136
desc.SetStencilAttachmentDescriptors(stencil);
@@ -312,9 +303,9 @@ ContentContext::ContentContext(std::shared_ptr<Context> context)
312303
context_->GetPipelineLibrary()->GetPipeline(uv_pipeline_desc).Get();
313304
}
314305

315-
if (solid_fill_pipelines_[{}]->GetDescriptor().has_value()) {
316-
auto clip_pipeline_descriptor =
317-
solid_fill_pipelines_[{}]->GetDescriptor().value();
306+
auto maybe_pipeline_desc = solid_fill_pipelines_[{}]->GetDescriptor();
307+
if (maybe_pipeline_desc.has_value()) {
308+
auto clip_pipeline_descriptor = maybe_pipeline_desc.value();
318309
clip_pipeline_descriptor.SetLabel("Clip Pipeline");
319310
// Disable write to all color attachments.
320311
auto color_attachments =
@@ -412,5 +403,3 @@ void ContentContext::SetWireframe(bool wireframe) {
412403
}
413404

414405
} // namespace impeller
415-
416-
// NOLINTEND(bugprone-unchecked-optional-access)

impeller/entity/contents/filters/filter_contents.cc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#include "impeller/renderer/command_buffer.h"
2929
#include "impeller/renderer/render_pass.h"
3030

31-
// TODO(zanderso): https://github.com/flutter/flutter/issues/127701
32-
// NOLINTBEGIN(bugprone-unchecked-optional-access)
33-
3431
namespace impeller {
3532

3633
std::shared_ptr<FilterContents> FilterContents::MakeDirectionalGaussianBlur(
@@ -180,8 +177,9 @@ bool FilterContents::Render(const ContentContext& renderer,
180177
std::optional<Rect> FilterContents::GetLocalCoverage(
181178
const Entity& local_entity) const {
182179
auto coverage = GetFilterCoverage(inputs_, local_entity, effect_transform_);
183-
if (GetCoverageHint().has_value() && coverage.has_value()) {
184-
coverage = coverage->Intersection(*GetCoverageHint());
180+
auto coverage_hint = GetCoverageHint();
181+
if (coverage_hint.has_value() && coverage.has_value()) {
182+
coverage = coverage->Intersection(coverage_hint.value());
185183
}
186184

187185
return coverage;
@@ -272,5 +270,3 @@ Matrix FilterContents::GetTransform(const Matrix& parent_transform) const {
272270
}
273271

274272
} // namespace impeller
275-
276-
// NOLINTEND(bugprone-unchecked-optional-access)

0 commit comments

Comments
 (0)