83702 Commits

Author SHA1 Message Date
auto-submit[bot]
c5ad234e11 Reverts "Copy gen_snapshots using python's shutil.copy, avoid links (#55830)" (flutter/engine#56034)
Reverts: flutter/engine#55830
Initiated by: chinmaygarde
Reason for reverting: Incremental builds are broken. https://github.com/flutter/flutter/issues/157367
Original PR Author: aam

Reviewed By: {mraleph, cbracken}

This change reverts the following previous change:
Default implementation of copy does it via hardlink, which seems to be causing issues with Gatekeeper on mac.

BUG=https://github.com/flutter/flutter/issues/154437
2024-10-22 19:45:47 +00:00
Jenn Magder
e38eb756bc Test alternate correct macOS framework xcprivacy manifest location (#157318)
Cherry-pick the beta branch test https://github.com/flutter/flutter/pull/157136 back to master  so this doesn't regress in the next beta.

This is the framework test for https://github.com/flutter/flutter/issues/157016 on master.  Engine fix can be merged once this merges.
2024-10-22 19:41:14 +00:00
skia-flutter-autoroll
759da79de8 Roll Skia from 3731c1f7cf29 to ad09ab099fe4 (2 revisions) (flutter/engine#56033)
https://skia.googlesource.com/skia.git/+log/3731c1f7cf29..ad09ab099fe4

2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from d8276cfd24b7 to 6834fd1efef0 (1 revision)
2024-10-22 lukasza@chromium.org [rust png] Initial `SkPngRustDecoderTest.cpp`.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,codefu@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 19:41:11 +00:00
João Victor Schramm
1d5087eb30 fix: CupertinoDatePicker.DateAndTime using showDayOfWeek (#155260)
As mentioned in the issue https://github.com/flutter/flutter/issues/153576, even if we declare the 'showDayOfWeek' value as false, when using the mode CupertinoDatePickerMode.dateAndTime, the days of week still shows in the screen.

This PR is about making an assert that prevent developers from using `DateTimePicker.DateAndTime` with `showDayOfWeek` as false (because it only works on date mode) as suggested by @Piinks.
2024-10-22 19:37:19 +00:00
yaakovschectman
32d9706cec Fix typo in testing script (flutter/engine#56029)
Just fix the spelling of `warning`.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-10-22 19:08:12 +00:00
romain.gyh
21814805c1 fix: Considers strokeAlign to compute border dimensions (#155495)
Fixes #155491 

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.

There are 3 golden tests that don't pass on my computer, but they were
already not passing before my changes.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md

---------

Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2024-10-22 12:02:02 -07:00
Bruno Leroux
260bee4d08 Fix MenuController.isOpen throws when unattached (#157331)
## Description

This PR change `MenuController.isOpen` to return false when the `MenuController` is not attached.
Previously `MenuController.isOpen` thrown an assert error when the menu controller was unattached.
With this PR, it is now possible to have some widgets outside the `MenuAnchor` body depending on the menu controller state.

## Related Issue

Fixes [Querying isOpen state for a menu controller that was never attached throws an assertion error](https://github.com/flutter/flutter/issues/157329).

## Tests

Adds 1 test.
2024-10-22 18:49:15 +00:00
Chinmay Garde
b121c24502 [Impeller] libImpeller: Document the entire API. (flutter/engine#56003)
I believe I got the entire API other than the enum values. Though most a straightforward, some could use some clarification.

The typography stuff should now be easier to use. The README describes the object model and reference counting conventions.
2024-10-22 18:43:23 +00:00
Jonah Williams
7da7f8b890 [Impeller] eagerly flip backdrop back to onscreen. (flutter/engine#55983)
Fixes https://github.com/flutter/flutter/issues/157112

We currently track the number of backdrop filters in a frame. When the end of the frame is reached, we do a blit from the offscreen texture to the onscreen texture. Howeever, this extra blit is unecessary once we know we've rendered the last backdrop - and we can instead start the last render pass with the onscreen. This cuts out a fairly expensive blit.

this can only be done on iOS physical devices, vulkan, and some GLES - as emulated blends also use the backdrop.

## Before

Shader time is lower but timeline claims about 2.8ms and about ~800ms of blit pass.

![image](https://github.com/user-attachments/assets/557d12ed-b169-4806-a2d1-88db9f24d8a1)

## After

Timeline is ~2.1 ms with no blit pass. Tracks with numbers above.

![image](https://github.com/user-attachments/assets/ad547131-af0a-4247-91a2-deeb3ffda8e9)
2024-10-22 17:54:38 +00:00
Mouad Debbar
e9fb545c05 [web] Allow control of hitTestBehavior of Platform Views (#157189)
Hit testing behavior is currently hardcoded to `opaque`  in `HtmlElementView` which causes the platform view to swallow pointer events when it's a descendant of a `GestureDetector` (see this [example](https://dartpad.dev/?id=5348fbf82be5eeb7d995f953437f0ce6)).

In order to fix this, we need to make `hitTestBehavior` configurable in `HtmlElementView`. This way users can decide to make their platform views `transparent` for hit testing purposes.

**_Note_**: this specific case isn't fixable by `PointerInterceptor` because the framework is already receiving the pointer events, so there's nothing that `PointerInterceptor` can do. This issue is all happening on the framework side since it treats the rectangle occupied by the platform view as an opaque rectangle for hit testing.

**_Workaround_**: in the meantime, users can work around this limitation by surrounding the `HtmlElementView` with an `IgnorePointer` widget.
2024-10-22 17:53:17 +00:00
engine-flutter-autoroll
42773df6b6 Roll Flutter Engine from 1df749a00e32 to 2410cdf12c8f (1 revision) (#157356)
1df749a00e...2410cdf12c

2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from b11804aaabbb to 3731c1f7cf29 (3 revisions) (flutter/engine#56027)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC codefu@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 17:42:09 +00:00
Jiten Patel
5fa5a64842 [#155269] Platform adaptive showAboutDialog and AboutDialog feature c… (#155377)
This PR introduces a new `showAdaptiveAboutDialog` function, ensuring that the About dialog matches the platform’s design (Material for Android, Fuchsia, Linux, Windows, and, Cupertino for iOS & macOS), providing a more consistent user experience across platforms.

Fixes #155269 

- [] I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
2024-10-22 17:32:05 +00:00
Bartek Pacia
eb5ef69d6b Use Gradle KTS in new Android app projects by default (2nd try) (#157195)
This PR resolves #151166

This PR relands #154061
2024-10-22 17:28:31 +00:00
Polina Cherkasova
9edd1ae008 Fix leaks in some image tests and explain hackyness of opted-out. (#154481) 2024-10-22 10:22:01 -07:00
Jiten Patel
3e9901dac9 Fix: showDatePicker should have a simple example in the docs (#156196)
This PR introduces a basic example of how to use the `showDatePicker` function. The purpose of this PR is to simplify the onboarding process for new Flutter developers by providing a straightforward demonstration of handling the asynchronous Future returned by the showDatePicker. This will help users unfamiliar with the intricacies of asynchronous operations in Flutter.

Fixes #156157
2024-10-22 17:04:23 +00:00
engine-flutter-autoroll
849ce1d888 Roll Flutter Engine from b3205a28d0fa to 1df749a00e32 (1 revision) (#157351)
b3205a28d0...1df749a00e

2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from c89324dd8f6e to b11804aaabbb (1 revision) (flutter/engine#56025)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC codefu@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 16:38:13 +00:00
John McDole
51d2f1623d Typo in engine_binary_hashing.md (flutter/engine#55866)
s/-R/-r
2024-10-22 09:25:20 -07:00
skia-flutter-autoroll
25af2569df Roll Skia from b11804aaabbb to 3731c1f7cf29 (3 revisions) (flutter/engine#56027)
https://skia.googlesource.com/skia.git/+log/b11804aaabbb..3731c1f7cf29

2024-10-22 egdaniel@google.com [Graphite] Make sure not to use Protected Vertex/Index buffers.
2024-10-22 pkasting@chromium.org Add begin()/end() to SkString.
2024-10-22 bungeman@google.com [pdf] Change structure identifiers to match specification

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,codefu@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 16:14:18 +00:00
engine-flutter-autoroll
9d27d52b5b Roll Packages from b6f7e47c7586 to 5e03bb1da411 (3 revisions) (#157349)
b6f7e47c75...5e03bb1da4

2024-10-21 43054281+camsim99@users.noreply.github.com [video_player_android] Correct rotation of videos recorded by the camera (flutter/packages#7846)
2024-10-21 gspencergoog@users.noreply.github.com Allow custom blocks to be something other than `Column` or `SizedBox` (flutter/packages#7859)
2024-10-21 49699333+dependabot[bot]@users.noreply.github.com [camera]: Bump androidx.annotation:annotation from 1.8.2 to 1.9.0 in /packages/camera/camera_android/android (flutter/packages#7905)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 15:47:24 +00:00
engine-flutter-autoroll
5fabd3d908 Roll Flutter Engine from e6856502b52b to b3205a28d0fa (3 revisions) (#157348)
e6856502b5...b3205a28d0

2024-10-22 bdero@google.com [Flutter GPU] Fix conditional when checking DeviceBuffer bounds. (flutter/engine#56017)
2024-10-22 skia-flutter-autoroll@skia.org Roll Dart SDK from 86ac62245577 to 8de85635d731 (3 revisions) (flutter/engine#56019)
2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from 64f4f1922946 to c89324dd8f6e (1 revision) (flutter/engine#56018)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC codefu@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 15:43:31 +00:00
skia-flutter-autoroll
647ead52e9 Roll Skia from c89324dd8f6e to b11804aaabbb (1 revision) (flutter/engine#56025)
https://skia.googlesource.com/skia.git/+log/c89324dd8f6e..b11804aaabbb

2024-10-22 kjlubick@google.com Revert "partition_alloc: Fix condition about sanitizers."

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,codefu@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 14:48:23 +00:00
Brandon DeRosier
3b568c8d68 [Flutter GPU] Fix conditional when checking DeviceBuffer bounds. (flutter/engine#56017)
Resolves https://github.com/flutter/flutter/issues/157324

Fix a silly off-by-one that I didn't catch because none of the tests are using `DeviceBuffer` directly. 🤦
2024-10-22 10:58:38 +00:00
skia-flutter-autoroll
94fac8afbe Roll Dart SDK from 86ac62245577 to 8de85635d731 (3 revisions) (flutter/engine#56019)
https://dart.googlesource.com/sdk.git/+log/86ac62245577..8de85635d731

2024-10-22 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.7.0-50.0.dev
2024-10-22 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.7.0-49.0.dev
2024-10-21 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.7.0-48.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC codefu@google.com,dart-vm-team@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter Engine: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 09:07:38 +00:00
engine-flutter-autoroll
71ddc6836a Roll Flutter Engine from 1596c6bd884f to e6856502b52b (1 revision) (#157333)
1596c6bd88...e6856502b5

2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from 9c6cc020751d to 64f4f1922946 (3 revisions) (flutter/engine#56016)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC codefu@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 09:01:25 +00:00
skia-flutter-autoroll
8f8170a5d3 Roll Skia from 64f4f1922946 to c89324dd8f6e (1 revision) (flutter/engine#56018)
https://skia.googlesource.com/skia.git/+log/64f4f1922946..c89324dd8f6e

2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 4aa12e9e17f5 to 4bdcdf0deef5 (9 revisions)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,codefu@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 08:30:19 +00:00
engine-flutter-autoroll
38e8d0b5de Roll Flutter Engine from 30bd6c9e8616 to 1596c6bd884f (1 revision) (#157326)
30bd6c9e86...1596c6bd88

2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from a71df7d9bc63 to 9c6cc020751d (1 revision) (flutter/engine#56013)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 07:25:27 +00:00
Valentin Vignal
a484aa260b Add test for selectable_region.0.dart (#157258)
Contributes to https://github.com/flutter/flutter/issues/130459

It adds a test for
- `examples/api/test/material/selectable_region/selectable_region.0_test.dart`
2024-10-22 07:25:25 +00:00
skia-flutter-autoroll
b1f0dcf32f Roll Skia from 9c6cc020751d to 64f4f1922946 (3 revisions) (flutter/engine#56016)
https://skia.googlesource.com/skia.git/+log/9c6cc020751d..64f4f1922946

2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from 6c65601e5d77 to fc1fbc4105b0 (5 revisions)
2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 0afe6a306dd2 to 145112eea713 (1 revision)
2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 6a645bf6ebd6 to 8e9623dbadf3 (19 revisions)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,jonahwilliams@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 07:11:20 +00:00
engine-flutter-autoroll
ba1017d81e Roll Flutter Engine from 88288446c395 to 30bd6c9e8616 (2 revisions) (#157323)
88288446c3...30bd6c9e86

2024-10-22 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from avSAUwQTf5xVGuZQU... to xPbin_33tT-_omeQT... (flutter/engine#56011)
2024-10-22 aam@google.com Copy gen_snapshots using python's shutil.copy, avoid links (flutter/engine#55830)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from avSAUwQTf5xV to xPbin_33tT-_

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 06:03:35 +00:00
skia-flutter-autoroll
e14b930196 Roll Skia from a71df7d9bc63 to 9c6cc020751d (1 revision) (flutter/engine#56013)
https://skia.googlesource.com/skia.git/+log/a71df7d9bc63..9c6cc020751d

2024-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 4220684adef5 to d8276cfd24b7 (6 revisions)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,jonahwilliams@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 05:53:23 +00:00
Bruno Leroux
383a221cf3 Fix TextField selects all content after the application is resumed (#156968)
## Description

This PR makes `EditableText` aware of the lifecycle 'resumed' state to let the current selection unchanged when the application is resumed (on web and desktop, 'resumed' means the Flutter app window regained focus).

Before this PR, on web and desktop, the whole content of a `TextField` was selected whenever a `TextField` gained focus. This is the correct behavior when tabbing between fields but it is not when a field regains focus after the application is resumed 

## Related Issue

Fixes to [When switching to another browser tab or window and then going back, all text on TextField is selected automatically](https://github.com/flutter/flutter/issues/156078).

## Tests

To be done
2024-10-22 04:41:31 +00:00
skia-flutter-autoroll
c17390e606 Roll Fuchsia Linux SDK from avSAUwQTf5xVGuZQU... to xPbin_33tT-_omeQT... (flutter/engine#56011)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-linux-sdk-flutter-engine
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 04:21:23 +00:00
Valentin Vignal
27f0c6a08e Add test for navigation_rail.extended_animation.0_test.dart (#157222)
Contributes to https://github.com/flutter/flutter/issues/130459

It adds a test for
- `examples/api/test/material/navigation_rail/navigation_rail.extended_animation.0_test.dart`
2024-10-22 03:55:21 +00:00
engine-flutter-autoroll
b2ca7ebb59 Roll Flutter Engine from b3e227b9a5d9 to 88288446c395 (2 revisions) (#157317)
b3e227b9a5...88288446c3

2024-10-22 bdero@google.com [Flutter GPU] Add missing MSAA stuff. (flutter/engine#55424)
2024-10-22 skia-flutter-autoroll@skia.org Roll Skia from 3a081993e2a7 to a71df7d9bc63 (24 revisions) (flutter/engine#56005)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 03:10:38 +00:00
Alexander Aprelev
63d8f5cb72 Copy gen_snapshots using python's shutil.copy, avoid links (flutter/engine#55830)
Default implementation of copy does it via hardlink, which seems to be
causing issues with Gatekeeper on mac.

BUG=https://github.com/flutter/flutter/issues/154437
2024-10-22 04:48:02 +03:00
engine-flutter-autoroll
07799f0343 Roll Flutter Engine from d302cc96e8b0 to b3e227b9a5d9 (3 revisions) (#157314)
d302cc96e8...b3e227b9a5

2024-10-22 devoncarew@google.com update the SoT location for package:http_parser (flutter/engine#55998)
2024-10-21 68449066+zijiehe-google-com@users.noreply.github.com Reland: [fuchsia] Remove pm use in build_fuchsia_artifacts (flutter/engine#55932)
2024-10-21 skia-flutter-autoroll@skia.org Roll Dart SDK from 10387c3fc6d4 to 86ac62245577 (1 revision) (flutter/engine#55995)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 01:47:26 +00:00
Brandon DeRosier
493177b5ed [Flutter GPU] Add missing MSAA stuff. (flutter/engine#55424)
Resolves https://github.com/flutter/flutter/issues/144264.
2024-10-22 01:16:25 +00:00
skia-flutter-autoroll
5a1b014639 Roll Skia from 3a081993e2a7 to a71df7d9bc63 (24 revisions) (flutter/engine#56005)
https://skia.googlesource.com/skia.git/+log/3a081993e2a7..a71df7d9bc63

2024-10-21 arthursonzogni@chromium.org partition_alloc: Fix condition about sanitizers.
2024-10-21 robertphillips@google.com [graphite] Address Native-Vulkan Precompilation thread races
2024-10-21 robertphillips@google.com [graphite] Add test for precompilation thread safety
2024-10-21 double1kai@gmail.com fix some bugs in type conversion on Loongarch
2024-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 1ea770ceed23 to 4220684adef5 (1 revision)
2024-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 4b1e58d94333 to 4aa12e9e17f5 (6 revisions)
2024-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from e81b15c8854a to 6c65601e5d77 (2 revisions)
2024-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 7e8a128852ff to 6a645bf6ebd6 (12 revisions)
2024-10-19 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 7acb8149138a to 1ea770ceed23 (9 revisions)
2024-10-19 lukasza@chromium.org [rust png] Enable and fix integer conversion warnings.
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from b48b5be748a7 to 7acb8149138a (7 revisions)
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 2f644ed8a84e to 4b1e58d94333 (7 revisions)
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 06128ba913e9 to b48b5be748a7 (2 revisions)
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 4c14e8e4f022 to 7e8a128852ff (17 revisions)
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from 70e3e4feed08 to e81b15c8854a (1 revision)
2024-10-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 74b783dffb9b to 0afe6a306dd2 (1 revision)
2024-10-17 vigneshv@google.com crabbyavif: Add support for cropping
2024-10-17 michaelludwig@google.com [graphite] ShaderInfo::toSkSL() release asserts
2024-10-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from bd3c30184daf to 06128ba913e9 (2 revisions)
2024-10-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 0dbe85f31776 to 2f644ed8a84e (15 revisions)
2024-10-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from 78ae0bf49048 to 70e3e4feed08 (3 revisions)
2024-10-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 65fa98d50f6d to 4c14e8e4f022 (10 revisions)
2024-10-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from ad31dd1cb898 to bd3c30184daf (11 revisions)
2024-10-16 skia-autoroll@skia-public.iam.gserviceaccount.com Roll skottie-base from 6a07fae851d7 to a049ff55ff14

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com,jonahwilliams@google.com,nicolettep@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-22 00:28:20 +00:00
Devon Carew
fed015acfb update the SoT location for package:http_parser (flutter/engine#55998)
This PR updates the SoT location for `package:http_parser`; it's moved
from dart-lang/http_parser to dart-lang/http (in pkgs/http_parser).

Issues:
- https://github.com/dart-lang/sdk/issues/56591

*If you had to change anything in the [flutter/tests] repo, include a
link to the migration guide as per the [breaking change policy].*

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide] and the [C++,
Objective-C, Java style guides].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [ ] I added new tests to check the change I am making or feature I am
adding, or the PR is [test-exempt]. See [testing the engine] for
instructions on writing and running engine tests.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I signed the [CLA].
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
[test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[C++, Objective-C, Java style guides]:
https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
[testing the engine]:
https://github.com/flutter/flutter/wiki/Testing-the-engine
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
[Discord]: https://github.com/flutter/flutter/wiki/Chat
2024-10-21 17:17:10 -07:00
John McDole
c60e69040d Add dart command line tool for calculating engine hash (#157212)
Useful in tooling, releases, etc - where Dart is available

Example usages:

```bash
# Monorepo world
❯ dart ./dev/tools/bin/engine_hash.dart -s head
226e13826c7253c968d798666f323b1f207979f8

# Non-monorepo world
❯ dart ./dev/tools/bin/engine_hash.dart -s head
Error calculating engine hash: Not in a monorepo
```
2024-10-21 16:26:28 -07:00
engine-flutter-autoroll
53a97dd9d4 Roll Flutter Engine from 5eb21d2706c0 to d302cc96e8b0 (2 revisions) (#157302)
5eb21d2706...d302cc96e8

2024-10-21 yjbanov@google.com Revert "[web:a11y] make header a proper <header> (#55747)" (flutter/engine#55993)
2024-10-21 yjbanov@google.com [web] implement selectable semantics (flutter/engine#55970)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-21 23:04:36 +00:00
Jason Simmons
8b4d48715b Ensure that the build system checks for updates of locally built flutter_web_sdk artifacts (#156534)
The SourceVisitor uses the engineVersion parameter to determine whether it needs to check for changes to artifacts or if it can assume that artifacts are unmodified from a versioned build of the engine.  engineVersion is set based on whether the Artifacts instance sets the isLocalEngine property.

CachedLocalWebSdkArtifacts (instantiated when the --local-web-sdk flag is used) was only setting isLocalEngine if --local-engine was also used.  This caused the build system to ignore changes to the files in the locally built flutter_web_sdk when using --local-web-sdk alone.

This PR renames Artifacts.isLocalEngine to usesLocalArtifacts in order to clarify what it means.  It also changes CachedLocalWebSdkArtifacts to always enable usesLocalArtifacts.
2024-10-21 22:52:29 +00:00
Reid Baker
4e8060eff5 Match framework and engine android emulator versions (#157291)
Related to https://buganizer.corp.google.com/issues/371020223 

See https://github.com/flutter/engine/pull/55591 where I updated the engine android 35 emulator version.
2024-10-21 22:34:25 +00:00
Jonah Williams
5bcb3073f4 [devicelab] remove flaky designation from flutter_driver_android_test (#157300)
https://github.com/flutter/engine/pull/55944 should have fixed all flakes and rolled into framework.
2024-10-21 22:27:52 +00:00
zijiehe@
cd975cfa34 Reland: [fuchsia] Remove pm use in build_fuchsia_artifacts (flutter/engine#55932)
Redo: https://github.com/flutter/engine/pull/55832

See the diff of diffs,

```
diff <(curl -s '1cd59a0c06.diff') <(curl -s 'ccea3b80cc.diff')
```

Or

```
48c48
< index 5258466145387..83aebdaacd9b6 100755
---
> index 5258466145387..3f74d19640d0f 100755
141,142c141,142
< +  far_file = '%s_%s%s_runner-0.far' % (runner_type, mode, '_product' if product else '')
< +  CopyPath('%s/%s' % (source_root, far_file), '%s/%s' % (destination, far_file))
---
> +  far_file = '%s_%s%s_runner' % (runner_type, mode, '_product' if product else '')
> +  CopyPath('%s/%s-0.far' % (source_root, far_file), '%s/%s.far' % (destination, far_file))
```

This change restores the files' -0 suffix which was wrongly removed in the last iteration.

=== Description of the original change:

This change removes the in-house built pm-based build rules in favor of the high level fuchsia_component / fuchsia_package in the gn-sdk.

Also the use of pm in build_fuchsia_artifacts.py is removed as the placements of the binaries changed.
https://github.com/flutter/engine/pull/55445 was a previous attempt and it generates [a malformatted cipd](https://chrome-infra-packages.appspot.com/p/flutter/fuchsia/+/vU1Op26qgO5XYs9S8AqQMvBwgITD9hq3-2dIu2H5-iwC).

Bug: http://b/353729557, http://b/368608542

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-10-21 21:52:00 +00:00
Jason Simmons
bf6c990765 Revert "[devicelab] handle missed lifecycle messages. (#156596)" (#157293)
This reverts commit f1f83aa909.

With https://github.com/flutter/engine/pull/55933 this should not be needed.
2024-10-21 21:50:04 +00:00
skia-flutter-autoroll
910b7f6302 Roll Dart SDK from 10387c3fc6d4 to 86ac62245577 (1 revision) (flutter/engine#55995)
https://dart.googlesource.com/sdk.git/+log/10387c3fc6d4..86ac62245577

2024-10-21 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.7.0-47.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@google.com,jonahwilliams@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter Engine: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-21 21:48:06 +00:00
Polina Cherkasova
4b169a81ea Fix some leaky tests. (#157294) 2024-10-21 21:29:05 +00:00
engine-flutter-autoroll
a945427e95 Roll Flutter Engine from de569baa5703 to 5eb21d2706c0 (2 revisions) (#157295)
de569baa57...5eb21d2706

2024-10-21 jonahwilliams@google.com [Impeller] Reland: one descriptor pool per frame. (flutter/engine#55960)
2024-10-21 jmccandless@google.com Scribe (Android stylus handwriting text input) (flutter/engine#52943)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2024-10-21 21:17:23 +00:00
Yegor
1e4d3fae97 Revert "[web:a11y] make header a proper <header> (#55747)" (flutter/engine#55993)
This reverts commit e478ea9bad.

This broke a customer: https://github.com/flutter/engine/pull/55747#issuecomment-2426879072
2024-10-21 20:48:57 +00:00