Yegor
5d341acdc5
[web] implement selectable semantics ( flutter/engine#55970 )
...
Implement `SemanticsFlag.hasSelectedState` and `SemanticsFlag.isSelected` for web in terms of `aria-selected`.
Fixes https://github.com/flutter/flutter/issues/66673
2024-10-21 20:24:10 +00:00
Mohellebi abdessalem
fba8c5770f
fix Consider using 'named' to avoid unnecessary configuration inside flutter.groovy ( #157221 )
...
see #147122 for context
[gradle docs](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html ) for reference(scroll until [this)](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html#eager_apis_to_avoid )
also this the lint :

2024-10-21 19:56:18 +00:00
Parker Lougheed
2336329baf
Resolve pupup menu test TODO ( #157251 )
...
Flutter no longer supports versions of Dart that will output the non-reified version.
2024-10-21 19:52:30 +00:00
engine-flutter-autoroll
4d39760097
Roll Flutter Engine from 315540ec20c5 to de569baa5703 (1 revision) ( #157290 )
...
315540ec20...de569baa57
2024-10-21 devoncarew@google.com re-land "update the repo references for package:file (#55906 )" (flutter/engine#55935 )
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 19:43:33 +00:00
Jonah Williams
9a7492dc88
[Impeller] Reland: one descriptor pool per frame. ( flutter/engine#55960 )
...
reverted https://github.com/flutter/engine/pull/55939 due to postsubmit failures.
It turns out the lifecycle is not exactly the same as the command pool. Instead, use a thread id map on the context to keep the right thread running and simplify shutdown. Leaving CI yaml edit for now to prove it works :)
Fixes https://github.com/flutter/flutter/issues/157115
2024-10-21 19:33:20 +00:00
Parker Lougheed
1995a6cba1
Migrate away from deprecated whereNotNull ( #157250 )
2024-10-21 19:25:54 +00:00
Parker Lougheed
a0a82f2821
Fix a few typos in framework code and doc comments ( #157248 )
2024-10-21 19:25:52 +00:00
stuartmorgan
e0d6271911
Update ecosystem contribution docs ( #157288 )
...
Document the requirements for adding a new external, client-facing dependency in flutter/packages
2024-10-21 19:06:04 +00:00
Justin McCandless
cd1cd27685
Scribe (Android stylus handwriting text input) ( flutter/engine#52943 )
...
The engine API for Android's Scribe stylus handwriting input. Just bare bones handwriting itself, does not support special gestures, which will come in subsequent PR(s).
2024-10-21 11:55:02 -07:00
engine-flutter-autoroll
6cae408579
Roll Flutter Engine from 1a8ef6e24fc6 to 315540ec20c5 (1 revision) ( #157284 )
...
1a8ef6e24f...315540ec20
2024-10-21 zanderso@users.noreply.github.com Increase timeout for Linux mac_clangd (flutter/engine#55988 )
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 18:47:27 +00:00
Polina Cherkasova
6d3167e025
Dispose temporarily created CurvedAnimation [prod-leak-fix] ( #157233 )
2024-10-21 11:04:04 -07:00
Devon Carew
b21f22cc50
re-land "update the repo references for package:file ( #55906 )" ( flutter/engine#55935 )
...
This is a re-land of the reverted PR, flutter/engine#55916 (it depended
on a dart roll that was reverted, and has subsequently been re-landed).
From the original PR:
> The SoT repository for `package:file` has changed from
google/file.dart to dart-lang/tools; this PR updates the DEPS file and
the hard-coded paths in the two pubspec.yaml files (see
https://github.com/dart-lang/tools/issues/674 ).
2024-10-21 10:39:02 -07:00
engine-flutter-autoroll
effaeee603
Roll Flutter Engine from 68f922560038 to 1a8ef6e24fc6 (5 revisions) ( #157277 )
...
68f9225600...1a8ef6e24f
2024-10-21 jason-simmons@users.noreply.github.com Request another frame in ImageReaderSurfaceProducer.dequeueImage if more images are pending in the queue (flutter/engine#55944 )
2024-10-21 skia-flutter-autoroll@skia.org Roll Dart SDK from c8659684d34d to 10387c3fc6d4 (1 revision) (flutter/engine#55987 )
2024-10-21 mdebbar@google.com [web] Support woff2 fonts (flutter/engine#55908 )
2024-10-21 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from PWz1ufnYNOGpgw-qg... to avSAUwQTf5xVGuZQU... (flutter/engine#55985 )
2024-10-21 skia-flutter-autoroll@skia.org Manual roll Dart SDK from a51df90298ca to c8659684d34d (4 revisions) (flutter/engine#55984 )
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from PWz1ufnYNOGp to avSAUwQTf5xV
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 17:30:23 +00:00
Taha Tesser
2665a72559
Fix unattached MenuController throws assertion error when calling MenuController.close() ( #156588 )
...
Fixes [Closing a menu controller that was never attached throws an assertion error](https://github.com/flutter/flutter/issues/156572 )
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const MenuControllerPage(),
),
),
child: const Text('Press Me'),
),
),
);
}
}
class MenuControllerPage extends StatefulWidget {
const MenuControllerPage({super.key});
@override
State<MenuControllerPage> createState() => _MenuControllerPageState();
}
class _MenuControllerPageState extends State<MenuControllerPage> {
// This menu controller is intentionally left as not attached to a MenuAnchor.
final MenuController _menuController = MenuController();
@override
void dispose() {
// Close the menu when the page is popped.
_menuController.close();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton(
child: const Text('Go back'),
onPressed: () => Navigator.of(context).pop(),
),
),
);
}
}
```
</details>
2024-10-21 17:26:09 +00:00
Zachary Anderson
ec3cff72ab
Increase timeout for Linux mac_clangd ( flutter/engine#55988 )
...
This build does not come in under the default 30 minute timeout when the caches are cold and the bot_update steps take too long: https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20mac_clangd/2928/overview
2024-10-21 17:09:24 +00:00
engine-flutter-autoroll
d21bf7139a
Roll Packages from 2a1c477a788c to b6f7e47c7586 (5 revisions) ( #157271 )
...
2a1c477a78...b6f7e47c75
2024-10-21 49699333+dependabot[bot]@users.noreply.github.com [path_provider]: Bump androidx.annotation:annotation from 1.8.2 to 1.9.0 in /packages/path_provider/path_provider_android/android (flutter/packages#7895 )
2024-10-18 stuartmorgan@google.com [in_app_purchase] Update iOS Pigeon for non-nullable generics (flutter/packages#7820 )
2024-10-18 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Adds internal wrapper for Android native `Ad` (flutter/packages#7880 )
2024-10-18 stuartmorgan@google.com [video_player] Remove Android API 19 SSL handling (flutter/packages#7876 )
2024-10-18 109111084+yaakovschectman@users.noreply.github.com [google_maps_android_flutter] Convert `Config.sdk` to `minSdk` in Robolectric tests and lower to `LOLLIPOP` (flutter/packages#7805 )
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-21 17:02:59 +00:00
Hannes Hultergård
8621694fdf
Add callbacks for detecting tap up events to TapRegion ( #156110 )
...
Adds `onTapUpOutside` and `onTapUpInside` callbacks to `TapRegion`, and `onTapUpOutside` to `EditableText` text fields. This allows users to detect `PointerUpEvent`s, which in turn can be used to differentiate between a tap and pan / scroll gesture (for example by comparing the distance between the down and up events).
Fixes #140271 and potentially #138190
2024-10-21 16:59:16 +00:00
Loïc Sharma
4ff8c9507b
Polish the texture example ( #157176 )
...
Replaces `SizedBox`es with the new `spacing` parameter in `Column` and fixes some minor formatting issues.
This is a refactoring with no semantic changes. I will get a test exemption.
2024-10-21 16:54:04 +00:00
engine-flutter-autoroll
a4280f9396
Roll Flutter Engine from 53e187a1d4e4 to 68f922560038 (1 revision) ( #157246 )
...
53e187a1d4...68f9225600
2024-10-20 flar@google.com [Impeller] New impeller round rect class (flutter/engine#55946 )
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 16:31:36 +00:00
Gray Mackall
3baf9d4c60
Make android dependency version test suite run on changes to templates ( #157196 )
...
We have a group of tests that verifies that we can build a flutter app across the range of AGP, Kotlin, and Gradle versions we claim to support. They currently only run on postsubmit.
This pr aims to make them run in presubmit as well, but only when changes are made to the templates (not just android templates, see https://github.com/flutter/flutter/pull/157196#discussion_r1807055791 as to why).
2024-10-21 15:36:45 +00:00
Jackson Gardner
e19d352fc9
Add support for flutter build web --debug. ( #157186 )
...
There have been various requests for this for a while. See https://github.com/flutter/flutter/issues/96283 for an example. This has become more important with dart2wasm builds in the mix, as the profiling versions of the dart2wasm builds are a lot less debuggable than the debug versions. Most of this is already wired up so it just requires taking out a few explicit checks for it and making sure that we compile with the right optimization levels when compiling debug.
2024-10-21 15:35:11 +00:00
Jason Simmons
9872e0ee2f
Request another frame in ImageReaderSurfaceProducer.dequeueImage if more images are pending in the queue ( flutter/engine#55944 )
...
ImageReaderSurfaceProducer will request a frame when an image is enqueued. But there is no guarantee that each request will produce an additional frame.
Multiple requests happening within one vsync interval could be merged into one frame. If no other frame is scheduled, then some images will remain in the queue and the image shown on screen will not be the latest image.
With this change, ImageReaderSurfaceProducer will continue requesting frames after consuming an image if the queue is not empty.
Fixes https://github.com/flutter/flutter/issues/156903
Fixes https://github.com/flutter/flutter/issues/155787
2024-10-21 15:31:14 +00:00
Andrew Kolos
3512745071
make ChromiumDevice.stopApp a no-op if it has already been called ( #156778 )
...
(Hopefully) fixes https://github.com/flutter/flutter/issues/156700
To summarize that thread, there are a few ways to trigger cleanup logic
in `flutter run -d chrome`. For example, pressing `q` will close Chrome,
but Chrome closing triggers cleanup logic in the resident runner (which
includes trying to close Chrome, which is redundant).
A simple way to fix this is to not call `Chrome.close` in
`ChromiumDevice.stopApp` when we've already called it once. This
solution isn't ideal—consider a scenario where two calls to `stopApp`
are made concurrently. The second one would probably complete before the
browser is actually closed. However, I don't foresee anything ever
depending on `stopApp` finishing implying that the browser is closed.
I feel like there might be a yak to shave here (`ResidentWebRunner`
could keep track of its state and not initiate redundant cleanup
operations), but I am not sure its worth the continued effort.
<details>
<summary> Pre-launch checklist </summary>
- [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.
- [x] 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.
- [x] All existing and new tests are passing.
</details>
<!-- 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
2024-10-21 11:28:30 -04:00
Valentin Vignal
3405f11e5c
Add test for flexible_space_bar.0.dart ( #157107 )
...
Contributes to https://github.com/flutter/flutter/issues/130459
It adds a test for
- `examples/api/test/material/flexible_space_bar/flexible_space_bar.0_test.dart`
2024-10-21 15:17:14 +00:00
Gray Mackall
bcc3146185
Delete line referencing v1 string ( #157170 )
...
This property would previously have been used by
ad9e4fef45/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java (L59C31-L59C58)
but isn't used by the new `FlutterActivityAndFragmentDelegate`. It's also recommended to be removed by the original v1->v2 updating guide: https://github.com/flutter/flutter/blob/master/docs/platforms/android/Upgrading-pre-1.12-Android-projects.md
2024-10-21 14:20:22 +00:00
Gray Mackall
76ed5355a4
Delete unused string in gradle_errors.dart ( #157187 )
...
Follow up to https://github.com/flutter/flutter/pull/157132
I stopped using this string but didn't delete it.
2024-10-21 14:20:19 +00:00
skia-flutter-autoroll
d55edb4c9a
Roll Dart SDK from c8659684d34d to 10387c3fc6d4 (1 revision) ( flutter/engine#55987 )
...
https://dart.googlesource.com/sdk.git/+log/c8659684d34d..10387c3fc6d4
2024-10-21 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.7.0-46.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 14:06:28 +00:00
Mouad Debbar
2af8c83f84
[web] Support woff2 fonts ( flutter/engine#55908 )
...
- Enable support for WOFF2 fonts.
- Add Brotli depndency (increases CK size by ~53KB compressed, including the Brotli dictionary).
- Use split WOFF2 fonts for Emoji.
- Remove the `useColorEmoji` runtime config flag.
Partially based off of https://github.com/flutter/engine/pull/41282
Fixes https://github.com/flutter/flutter/issues/119536
Contributes to https://github.com/flutter/flutter/issues/153974 and opens the door for moving more fonts to WOFF2.
2024-10-21 13:38:22 +00:00
Ildeberto Vasconcelos
8aa25aeff2
Add Tests for bottom_app_bar api examples ( #156501 )
...
Contributes to https://github.com/flutter/flutter/issues/130459
It adds a test for
`examples/api/test/material/bottom_app_bar/bottom_app_bar.1_test.dart` and
`examples/api/test/material/bottom_app_bar/bottom_app_bar.2_test.dart`
This are tests of snippets used in [AutofillGroup class](https://api.flutter.dev/flutter/widgets/AutofillGroup-class.html )
2024-10-21 12:31:21 +00:00
skia-flutter-autoroll
49c05e315a
Roll Fuchsia Linux SDK from PWz1ufnYNOGpgw-qg... to avSAUwQTf5xVGuZQU... ( flutter/engine#55985 )
...
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-21 03:06:12 +00:00
skia-flutter-autoroll
518ec7b770
Manual roll Dart SDK from a51df90298ca to c8659684d34d (4 revisions) ( flutter/engine#55984 )
...
Manual roll requested by asiva@google.com
https://dart.googlesource.com/sdk.git/+log/a51df90298ca..c8659684d34d
2024-10-19 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.7.0-45.0.dev
2024-10-19 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.7.0-44.0.dev
2024-10-18 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.7.0-43.0.dev
2024-10-18 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.7.0-42.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
asiva@google.com ,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-20 19:43:14 -07:00
Jim Graham
6b912e50de
[Impeller] New impeller round rect class ( flutter/engine#55946 )
...
Impeller geometry class analogous to SkRRect - soon to be the standard round rectangle class throughout most of the engine that doesn't talk directly to Skia.
More unit tests are being written, but this PR will enable developers to look at the API of the new class and comment as well as test its effect on any goldens (there should be none).
2024-10-20 18:59:23 +00:00
engine-flutter-autoroll
47035a0102
Roll Flutter Engine from c763c9110988 to 53e187a1d4e4 (1 revision) ( #157237 )
...
c763c91109...53e187a1d4
2024-10-20 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from tNQZ8d5mRYpe3--lk... to PWz1ufnYNOGpgw-qg... (flutter/engine#55982 )
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from tNQZ8d5mRYpe to PWz1ufnYNOGp
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-20 09:27:31 +00:00
skia-flutter-autoroll
19144672ff
Roll Fuchsia Linux SDK from tNQZ8d5mRYpe3--lk... to PWz1ufnYNOGpgw-qg... ( flutter/engine#55982 )
...
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-20 01:53:33 +00:00
engine-flutter-autoroll
a775f8a0b8
Roll Flutter Engine from dd37446fbc55 to c763c9110988 (1 revision) ( #157229 )
...
dd37446fbc...c763c91109
2024-10-19 jonahwilliams@google.com [Impeller] batch submit vulkan command buffers on newer hardware. (flutter/engine#55956 )
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-19 17:47:24 +00:00
Jonah Williams
d56c8a7bb0
[Impeller] batch submit vulkan command buffers on newer hardware. ( flutter/engine#55956 )
...
Coming back to this from the previous attempt: https://github.com/flutter/engine/pull/50139
* Even if its slower sometimes, its also way faster on more complex scenes
* The adreno bugs seem limited to older devices.
Conservatively, only enable batching for Mali and newer Adreno
On non vulkan backend we immediately submit.
2024-10-19 15:53:38 +00:00
engine-flutter-autoroll
0500af2b5f
Roll Flutter Engine from 76d310e42c06 to dd37446fbc55 (17 revisions) ( #157215 )
...
76d310e42c...dd37446fbc
2024-10-19 robert.ancell@canonical.com Move keymap from
FlKeyboardViewDelegate to FlKeyboardManager (flutter/engine#55942 )
2024-10-19 jonahwilliams@google.com [UI] fix scene builder parameter
naming. (flutter/engine#55969 )
2024-10-19 chris@bracken.jp iOS: Improve thread safety of first frame
callback (flutter/engine#55966 )
2024-10-18 chris@bracken.jp iOS: Fix flaky tests (remove timeouts)
(flutter/engine#55961 )
2024-10-18 jonahwilliams@google.com [Impeller] allocate the impeller
onscreen texture from the render target cache. (flutter/engine#55943 )
2024-10-18 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from
9F_NaKPd2twhbPwP7... to tNQZ8d5mRYpe3--lk... (flutter/engine#55963 )
2024-10-18 30870216+gaaclarke@users.noreply.github.com Started filtering
out close line segments in rrect polylines. (flutter/engine#55929 )
2024-10-18 chinmaygarde@google.com [Impeller] libImpeller: Allow custom
font registrations. (flutter/engine#55934 )
2024-10-18 chris@bracken.jp Re-reland "iOS: Migrate FlutterEngine to
ARC" (flutter/engine#55962 )
2024-10-18 chinmaygarde@google.com [Impeller] libImpeller: Add a README.
(flutter/engine#55940 )
2024-10-18 chris@bracken.jp iOS: Eliminate needless profiler metrics
ivar (flutter/engine#55957 )
2024-10-18 98614782+auto-submit[bot]@users.noreply.github.com Reverts
"[Impeller] one descriptor pool per frame. (#55939 )"
(flutter/engine#55959 )
2024-10-18 chris@bracken.jp Revert "Reland "iOS: Migrate FlutterEngine
to ARC" (#55937 )" (flutter/engine#55954 )
2024-10-18 skia-flutter-autoroll@skia.org Roll Dart SDK from
993d3069f42e to a51df90298ca (7 revisions) (flutter/engine#55951 )
2024-10-18 jonahwilliams@google.com [engine] add back opt out for merged
threads. (flutter/engine#55952 )
2024-10-18 jonahwilliams@google.com [Impeller] one descriptor pool per
frame. (flutter/engine#55939 )
2024-10-18 jonahwilliams@google.com [Impeller] add mechanism for sharing
bdf inputs. (flutter/engine#55701 )
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from 9F_NaKPd2twh to tNQZ8d5mRYpe
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-18 21:26:31 -07:00
Robert Ancell
15129c0bbc
Move keymap from FlKeyboardViewDelegate to FlKeyboardManager ( flutter/engine#55942 )
...
Ideally the tests would mock gdk_keymap_lookup_key, but I wasn't able to get it working so I've added fl_keyboard_manager_set_lookup_key_handler for now.
2024-10-19 01:36:10 +00:00
Flutter GitHub Bot
384f0cc6d3
Marks Mac flavors_test_macos to be flaky ( #156944 )
...
<!-- meta-tags: To be used by the automation script only, DO NOT MODIFY.
{
"name": "Mac flavors_test_macos"
}
-->
Issue link: https://github.com/flutter/flutter/issues/156943
2024-10-19 01:28:15 +00:00
Jonah Williams
73ec326b80
[UI] fix scene builder parameter naming. ( flutter/engine#55969 )
...
This is reponsible for the bdf golden breaking shader mask.
2024-10-18 17:45:23 -07:00
Chris Bracken
ec22d90ba3
iOS: Improve thread safety of first frame callback ( flutter/engine#55966 )
...
Previously, we dispatched a task to a background thread to wait for the first frame to be ready. In the background task, we then throw a task on the main thread that invokes that user-provided callback to notify them that the first frame is ready.
During ARC migration, we ensured that self was strongly-captured in the task that runs on the main thread, in order to prevent the possibility that the last remaining reference to the FlutterEngine instance be the one on the background thread.
However, with the previous code, it's possible that the callback is dispatched to the main thread, executes, and completes before the block on the background thread finishes. In that case, the last remaining FlutterEngine reference may *still* be the one on the background thread.
In order to prevent this scenario, we use `dispatch_group_notify` to ensure that the tasks are executed sequentially, and that the callback task is not dispatched to the main thread until the background task has completed. Further, we capture FlutterEngine strongly in the second task to ensure that *it* is the last remaining task.
Why do we need to capture self strongly in the task fired to the main queue? Imagine the following:
* We queue up the first task on the background thread.
* We queue up the callback task on the main thread to be executed only after the background task completes.
* The task on the background thread starts running.
* That task captures weakSelf strongly and checks it -- it's not nil, yay.
* That task now makes the blocking first frame call. Time passes. While that time passes all other strong references to self go away. That second block only captured self weakly, so the background task now has the only remaining strong reference. Uh oh!
* We hit the end of the background task block and since we have the last remaining strong reference, we dealloc FlutterEngine... on the background thread.
* KABOOM.
No changes to tests since this is a fix to a race condition that doesn't affect app semantics, isn't testable as written, and adding shims to improve testability will likely make some already subtle/difficult-to-reason-about code even more complex and difficult to reason about.
Issue: https://github.com/flutter/flutter/issues/156177
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-10-19 00:07:15 +00:00
Chris Bracken
3031222ef2
iOS: Fix flaky tests (remove timeouts) ( flutter/engine#55961 )
...
When run repeatedly, some of the iOS unit tests can relatively easily
blow their test timeouts. Since we're testing behaviour and not
performance in these tests there's no need to enforce a particular
timeout.
The bots will fail if the tests timeout, regardless.
2024-10-18 16:22:11 -07:00
John McDole
4f8a6c30d2
Preland support for monorepo engine hashing ( #157138 )
...
Tested on Windows and Mac
Documentation on hashing here: https://github.com/flutter/engine/blob/main/docs/monorepo/engine_binary_hashing.md#recommended-formula-and-implementation
CAVEAT: This is testing git tracked changes from HEAD, which could be a branch with local modifications to the engine. To find the engine version for AB testing, you would need the hash from:
`git merge-base HEAD upstream/master`
The assumption is the hash calculation at that point is done by the Flutter CLI or Engine Tool.
2024-10-18 22:55:07 +00:00
Yegor
cd0aa2b537
all selectable widgets set the hasSelectedState flag ( #157191 )
...
Set the `hasSelectedState` flag in all selectable widgets. This happens automatically because only selectable widgets have `Semantics.selected` set to a non-null value. When the value is propagated to `SemanticsConfiguration.isSelected`, it sets both `hasSelectedState` to true and `isSelected` as appropriate.
More progress towards https://github.com/flutter/flutter/issues/66673
2024-10-18 22:37:51 +00:00
Jonah Williams
298fba8a45
[Impeller] allocate the impeller onscreen texture from the render target cache. ( flutter/engine#55943 )
...
Otherwise with backdrop filters we create and throw away a single fullscreen texture every frame. Very wasteful!
Does not impact iOS because it has the read from resolve option. Removed some unused parts of the inline_pass_context that were only used in the entity pass days.
2024-10-18 22:24:31 +00:00
skia-flutter-autoroll
74eadd80c5
Roll Fuchsia Linux SDK from 9F_NaKPd2twhbPwP7... to tNQZ8d5mRYpe3--lk... ( flutter/engine#55963 )
...
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-18 22:01:52 +00:00
gaaclarke
4ffade7c5b
Started filtering out close line segments in rrect polylines. ( flutter/engine#55929 )
...
fixes https://github.com/flutter/flutter/issues/156422
tests: AiksTest.GradientOvalStrokeMaskBlurSigmaZero
This filtering needs to happen somewheres. I opted for putting it inside of the AddLinearComponent instead of where it was affected me in the test: 45237cc63f/impeller/geometry/path_builder.cc (L180)
This seems preferable. A tiny line segment should never matter. The rub is that its only happening here. We might want to do this in other places as well. It's equally unimportant to have a tiny curve.
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-10-18 21:54:04 +00:00
Chinmay Garde
cf27a7a314
[Impeller] libImpeller: Allow custom font registrations. ( flutter/engine#55934 )
...
Fixes https://github.com/flutter/flutter/issues/156361
cc @lyceel. A bit of miscommunication on the priority of this one. I
thought the default font factories were sufficient for the next release.
But it turns out that was not true on the board which is a custom
platform.
In any case, this should unblock custom font registrations. See the
`CanCreateParagraphsWithCustomFont` case for an example. If you don't
provide the family name alias for the custom font, the name will be read
from the font data. This example uses the custom "WhatTheFlutter" custom
font family in "wtf.otf".
<img width="1136" alt="Screenshot 2024-10-17 at 1 26 36 PM"
src="https://github.com/user-attachments/assets/dbbef2fd-f854-4330-8c82-fc8378489769 ">
2024-10-18 14:46:58 -07:00
auto-submit[bot]
9a41f11610
Reverts "Use Gradle KTS in new Android app projects by default ( #154061 )" ( #157194 )
...
Reverts: flutter/flutter#154061
Initiated by: QuncCccccc
Reason for reverting: might be the reason that cause Framework tree to red
Original PR Author: bartekpacia
Reviewed By: {gmackall, reidbaker}
This change reverts the following previous change:
This PR resolves #151166
2024-10-18 21:14:46 +00:00
Chris Bracken
1839704803
Re-reland "iOS: Migrate FlutterEngine to ARC" ( flutter/engine#55962 )
...
This reverts commit 0a9ed47633 .
This relands commit 530a9f896c .
That commit was a reland of a2ac734e10 .
Migrates `FlutterEngine` from manual reference counting to ARC. Migrates properties from `retain` to strong and `assign` to `weak` (where referencing an Obj-C object).
This has the following change from the previous patch:
* startProfiler was updated to eliminate the self-capture in https://github.com/flutter/engine/pull/55957 which prevents the possibility of dealloc on the profiling thread.
No semantic changes, therefore no changes to tests.
Issue: https://github.com/flutter/flutter/issues/137801
Issue: https://github.com/flutter/flutter/issues/156177
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-10-18 21:10:22 +00:00