Matan Lurey
e89480f02d
Move lint suppression from baseline.xml
to @SuppressLint
. ( flutter/engine#55447 )
...
I think you just had the lint identifier wrong?
Closes https://github.com/flutter/flutter/issues/155712 .
2024-09-25 22:41:11 +00:00
Jonah Williams
152dfb2fcf
[engine] set platform thread name to ui. ( flutter/engine#55362 )
...
When running with merged platform and ui threads, set the dart thread name of the main thread to io.futter.ui. Also change the thread mask settings to avoid creating an unused UI thread.
2024-09-25 22:06:37 +00:00
skia-flutter-autoroll
ca6c569006
Roll Dart SDK from c2728b947e46 to 016368ee313d (1 revision) ( flutter/engine#55444 )
...
https://dart.googlesource.com/sdk.git/+log/c2728b947e46..016368ee313d
2024-09-25 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-280.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 bdero@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-09-25 22:03:49 +00:00
Jonah Williams
5ad70b2bfc
[Impeller] actually fix external texture for GLES. ( flutter/engine#55414 )
...
Goldens are working! and incorrect! use the other texture contents to hopefully fix them. Ratther the the transform, we actually expect to use the src and dst rect to position/transform the texture. Tiled Texture contents does not support a src rect, so switch it to the regular texture contents.
2024-09-25 21:31:18 +00:00
skia-flutter-autoroll
77c9aa4e59
Roll Skia from e623a37de332 to 9f3b32b7b772 (2 revisions) ( flutter/engine#55443 )
...
https://skia.googlesource.com/skia.git/+log/e623a37de332..9f3b32b7b772
2024-09-25 bungeman@google.com Remove some debugf from SkFontMgr_AndroidNDK
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Manual roll Dawn from 876bb88cb063 to efd781b42ae5 (8 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 bdero@google.com ,brianosman@google.com,bungeman@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-09-25 21:22:34 +00:00
jesswrd
21ddf3e6e3
Remove usages of WindowManager's getDefaultDisplay ( flutter/engine#55002 )
...
Removed deprecated usages of WindowManager's `getDefaultDisplay()` and
replaced them with DisplayManager's `getDisplay()`.
Note: Decided to keep a usage of `getDefaultDisplay()`, which can be
found in FlutterView.java because it is expected to be deleted as a part
of V1 embedding removal. No changes were made to that file.
path to FlutterView.java:
shell/platform/android/io/flutter/embedding/android/FlutterView.java
Fixes [#99421 ](https://github.com/flutter/flutter/issues/99421 )
## 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.
- [x] 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-09-25 17:04:00 -04:00
gaaclarke
ad894bd2f0
Fixes blend + color filter ( flutter/engine#55411 )
...
fixes https://github.com/flutter/flutter/issues/155456
Thanks @jason-simmons for identifying the fix.
## 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.
- [x] 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-09-25 12:57:45 -07:00
Matan Lurey
f425edfbf7
Add a boolean that exposes rotation/crop metadata capability. ( flutter/engine#55434 )
...
Closes https://github.com/flutter/flutter/issues/144407 .
Closes https://github.com/flutter/flutter/issues/155633 .
2024-09-25 19:27:08 +00:00
skia-flutter-autoroll
5016ac77af
Roll Skia from 9af762100cf1 to e623a37de332 (1 revision) ( flutter/engine#55439 )
...
https://skia.googlesource.com/skia.git/+log/9af762100cf1..e623a37de332
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Manual roll vulkan-deps from 683d4c5faa30 to 13d1d0b93ffd (10 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 bdero@google.com ,brianosman@google.com,bungeman@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-09-25 19:17:56 +00:00
Jonah Williams
1878326071
[scenario_app] delete get bitmap activity. ( flutter/engine#55436 )
...
Since we can't see the screenshot we can't really evaluate if this is failing for good/bad reasons. This also uses
the whoe convertToImageREader / readback debugging API that I want to delete.
2024-09-25 19:14:29 +00:00
Brandon DeRosier
31ac0fc004
[Flutter GPU] Use vm.Vector4 for clear color instead of ui.Color. ( flutter/engine#55416 )
...
Resolves https://github.com/flutter/flutter/issues/155627 .
Allow setting the clear directly as floats without conversion work. vector_math already has convenient `Colors.[color]` factories and such. Also, `ui.Color` has a color space now, which does not apply here.
Adds a simple golden to verify that clear colors work:

2024-09-25 18:02:05 +00:00
skia-flutter-autoroll
5cb6d700bd
Roll Dart SDK from dd73afd20be5 to c2728b947e46 (1 revision) ( flutter/engine#55437 )
...
https://dart.googlesource.com/sdk.git/+log/dd73afd20be5..c2728b947e46
2024-09-25 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-279.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 bdero@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-09-25 17:34:17 +00:00
gaaclarke
1076f5fd42
adds more tasks to the engine workspace ( flutter/engine#55435 )
...
- host_debug_unopt_arm64
- android_debug_unopt_arm64
- ios_debug_unopt_arm64 (missed in previous change)
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-25 17:18:57 +00:00
skia-flutter-autoroll
b34d91bc2e
Roll Skia from 79e652aad7a9 to 9af762100cf1 (2 revisions) ( flutter/engine#55433 )
...
https://skia.googlesource.com/skia.git/+log/79e652aad7a9..9af762100cf1
2024-09-25 nicolettep@google.com [graphite] Modify key methods and comment docs to be able to accept a SamplerDesc container ptr
2024-09-25 fmalita@chromium.org [bazel] Use filegroup for common_flags_config
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 bdero@google.com ,brianosman@google.com,bungeman@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-09-25 16:33:49 +00:00
Matan Lurey
2291e92e59
Add SurfaceProducer#onSurfaceAvailable
, deprecate onSurfaceCreated
. ( flutter/engine#55418 )
...
Closes https://github.com/flutter/flutter/issues/155131 .
Not only did I rename the method, but I also changed the contract slightly - now `onSurfaceAvailable` is _only_ invoked _after_ `onSurfaceDestroyed` has been called. The cost is a single `boolean`, and it honestly makes the API make a lot more sense than someone having to track this themselves.
/cc @johnmccutchan (OOO), and @flutter/android-reviewers.
2024-09-25 16:24:06 +00:00
skia-flutter-autoroll
7a730682bd
Roll Skia from 788233232d6a to 79e652aad7a9 (1 revision) ( flutter/engine#55432 )
...
https://skia.googlesource.com/skia.git/+log/788233232d6a..79e652aad7a9
2024-09-25 nicolettep@google.com [graphite] Centralize SamplerDesc length variables used by Dawn, Vulkan
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 bdero@google.com ,brianosman@google.com,bungeman@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-09-25 15:05:11 +00:00
Camille Simon
9be07d79a8
Update setSystemChromeEnabledSystemUIMode
docs to note targeting Android 15+ change ( flutter/engine#54560 )
...
Updates `setSystemChromeEnabledSystemUIMode` documentation to reflect that edge-to-edge mode is used by default if the Flutter app targets Android 15.
Part of https://github.com/flutter/flutter/issues/150367 and engine counterpart to https://github.com/flutter/flutter/pull/153466 .
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-25 11:30:21 +00:00
skia-flutter-autoroll
061f79a89a
Roll Dart SDK from 006fdb58cba4 to dd73afd20be5 (1 revision) ( flutter/engine#55430 )
...
https://dart.googlesource.com/sdk.git/+log/006fdb58cba4..dd73afd20be5
2024-09-25 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-278.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 bdero@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-09-25 10:34:31 +00:00
skia-flutter-autoroll
2c607920b3
Roll Skia from 2c9708b68904 to 788233232d6a (1 revision) ( flutter/engine#55429 )
...
https://skia.googlesource.com/skia.git/+log/2c9708b68904..788233232d6a
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 3368b0fc9442 to 683d4c5faa30 (4 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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-25 09:54:18 +00:00
skia-flutter-autoroll
10df7dede4
Roll Skia from d00ad3e055f0 to 2c9708b68904 (1 revision) ( flutter/engine#55428 )
...
https://skia.googlesource.com/skia.git/+log/d00ad3e055f0..2c9708b68904
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from b563ede4e672 to eaffa034c7ff (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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-25 08:23:25 +00:00
skia-flutter-autoroll
148503fd75
Roll Fuchsia Linux SDK from -kKh_AYzPh_iEmTxK... to T0BbBnkQd0GfMnGQc... ( flutter/engine#55427 )
...
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 bdero@google.com ,rmistry@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-09-25 07:49:12 +00:00
skia-flutter-autoroll
55d1953a80
Roll Skia from 3541cdf2fae6 to d00ad3e055f0 (3 revisions) ( flutter/engine#55426 )
...
https://skia.googlesource.com/skia.git/+log/3541cdf2fae6..d00ad3e055f0
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from b6f29eefb704 to 67cb227058fa (5 revisions)
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 2afc8c97882a to 8580e3a98e50 (1 revision)
2024-09-25 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from 77184aa49df6 to 876bb88cb063 (13 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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-25 07:00:19 +00:00
skia-flutter-autoroll
60d77b8ce3
Roll Fuchsia GN SDK from em2Jr5ylJrKKI86rU... to tHRCseOuPnZ5H4a7k... ( flutter/engine#55425 )
...
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-gn-sdk-flutter-engine
Please CC bdero@google.com ,chrome-fuchsia-engprod@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-09-25 06:17:03 +00:00
skia-flutter-autoroll
7bcea5a2d6
Roll Dart SDK from eda9ae15367e to 006fdb58cba4 (1 revision) ( flutter/engine#55423 )
...
https://dart.googlesource.com/sdk.git/+log/eda9ae15367e..006fdb58cba4
2024-09-25 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-277.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 bdero@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-09-25 06:09:23 +00:00
skia-flutter-autoroll
d7bbc0f302
Roll Dart SDK from 7af8c4882e07 to eda9ae15367e (2 revisions) ( flutter/engine#55417 )
...
https://dart.googlesource.com/sdk.git/+log/7af8c4882e07..eda9ae15367e
2024-09-25 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-276.0.dev
2024-09-24 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-275.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 bdero@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-09-25 02:04:04 +00:00
Brandon DeRosier
e496b1ed26
[Flutter GPU] Add CullMode. ( flutter/engine#55409 )
...
Part of https://github.com/flutter/flutter/issues/155636 .
New golden `flutter_gpu_test_cull_mode` will draw a red triangle if the CullMode isn't working:

2024-09-25 00:52:11 +00:00
skia-flutter-autoroll
9f1cee211c
Roll Skia from 2e92f0b443f4 to 3541cdf2fae6 (1 revision) ( flutter/engine#55412 )
...
https://skia.googlesource.com/skia.git/+log/2e92f0b443f4..3541cdf2fae6
2024-09-24 bungeman@google.com [pdf] Give up on embedding CFF
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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-25 00:38:00 +00:00
Jonah Williams
79e371517d
[Impeller] fix Impeller on windows. ( flutter/engine#55323 )
...
Fixes https://github.com/flutter/flutter/issues/141482
Since the introduction of the flutter compositor, the windows embedder will create an offscreen framebuffer and then blit this to the onscreen framebuffer. Therefore, the onscreen framebuffer should not be constructed as a multisample framebuffer - and the EGL config can match skia.
Also cleans up selection of the impeller PixelFormat, which might not have matched the selected compositor format because it was hardcoded to RGBA_8888
2024-09-24 23:38:52 +00:00
Jonah Williams
dd7948b2fe
[Impeller] add basic culling checks during text frame dispatcher. ( flutter/engine#55168 )
...
Fixes https://github.com/flutter/flutter/issues/155133
Dl dispatching still relies on cull rects computed during that dispatch process. Make sure that the text frame dispatcher doesn't populate text frames that are way offscreen.
This culling is more conservative than the rendering dispatcher. We'd need to do some refactoring so the logic isn't repeated multiple times.
2024-09-24 23:37:06 +00:00
Matan Lurey
d68ee6e60e
Move each dart GN rule to a standalone file. ( flutter/engine#55404 )
...
We plan to add more rules in the near future, i.e. `dart_executable`, `dart_test`.
It would be nice to have a several thousand line scary file, and a few smaller, somewhat less scary, files.
_At a meta level, part of https://github.com/flutter/flutter/issues/147013._
2024-09-24 23:27:12 +00:00
skia-flutter-autoroll
3ead22b7fc
Roll Skia from 118914b760cb to 2e92f0b443f4 (1 revision) ( flutter/engine#55406 )
...
https://skia.googlesource.com/skia.git/+log/118914b760cb..2e92f0b443f4
2024-09-24 alecmouri@google.com Update BRD to support getAndroidGainmap
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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-24 23:12:22 +00:00
Jonah Williams
4d64108247
[Impeller] Pack impeller:Path into 2 vecs instead of 3. ( flutter/engine#55028 )
...
This better aligns impeller::Path with how Skia::Path works, and probably gives us a route to a faster Skia path to Impeller::Path conversion (since dart:ui Path will be a Skia path for a long time).
We used 3 vectors to separately store:
1. Path points
2. Path Verbs
3. Path contours (index lookups for contour starts).
This gave us almost O(1) access for path points based on the verb. However, we don't ever actually use the lookup except for in tests. In all real scenarios we iterate through all path verbs, which means this iterators can simply increment the offset into the path points array. Finally, we can store the contour information in the path points array as well by representing the bool is_closed with another Point value :) (for easier alignment).
2024-09-24 23:00:54 +00:00
John McDole
14caa2fe19
Disallow time traveling frame times ( flutter/engine#55310 )
...
Address bad developer experience in
https://github.com/flutter/flutter/issues/106277
Leave as an error log and hope for more repro reports
```mermaid
sequenceDiagram
Animator ->> Animator: AwaitVSync
Animator ->> VsyncWaiter: AsyncWaitForVsync(callback)
VsyncWaiter -> VsyncWaiterAndroid: AwaitVSync
note over VsyncWaiterAndroid: GetUITaskRunner
VsyncWaiterAndroid -> Choreographer: PostFrameCallback
Choreographer -> NDK: AChoreographer_postFrameCallback64
note over Choreographer,NDK: The time that the frame is being<br/>rendered as nanoseconds in the <br/>CLOCK_MONOTONIC time base
NDK --> Choreographer: callback(nanos)
Choreographer -> VsyncWaiterAndroid: callback
note over VsyncWaiterAndroid: // Rollback suspicion<br/>if (frame_time > now) frame_time = now;
VsyncWaiterAndroid -> VsyncWaiterAndroid: OnVsyncFromNDK(frame_nanos)
VsyncWaiterAndroid -> VsyncWaiter: FireCallback(\n frame_start_time,\n target_time)
VsyncWaiter -> Animator: callback(frame_timings_recorder)
Animator -> Animator: BeginFrame(frame_timings_recorder)
Animator -> Shell: OnAnimatorBeginFrame
Shell -> Engine: BeginFrame(frame_time, frame_number)
Engine -> RuntimeController: BeginFrame(frame_time, frame_number)
RuntimeController -> PlatformConfiguration: BeginFrame(frame_time, frame_number)
PlatformConfiguration -> hooks.dart: begin_frame_
```
2024-09-24 15:33:45 -07:00
Jason Simmons
d333cf4224
[Impeller] Delete command pools held by the CommandPoolRecyclerVK after decoding an image on the IO thread ( flutter/engine#55398 )
...
In the Vulkan backend, the CommandPoolRecyclerVK stores command pools that can be reused while rendering a frame. For each frame, SurfaceContextVK::AcquireNextSurface calls CommandPoolRecyclerVK::Dispose to clear the cached pools.
However, the CommandPoolRecyclerVK's cache of pools is placed in thread-local storage. So command pools used on the IO thread will not be cleaned up if frame rendering calls Dispose on the raster thread.
This PR adds a Context API that the IO thread can call after using a command pool in order to ensure that cached resources are disposed.
Fixes https://github.com/flutter/flutter/issues/155519
2024-09-24 22:16:37 +00:00
skia-flutter-autoroll
d8edec8449
Roll Skia from cf28f9dd411d to 118914b760cb (1 revision) ( flutter/engine#55405 )
...
https://skia.googlesource.com/skia.git/+log/cf28f9dd411d..118914b760cb
2024-09-24 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from ab526a2539cd to 3368b0fc9442 (3 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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-24 21:34:14 +00:00
Brandon DeRosier
c4514370d7
[Flutter GPU] Add pipeline stencil config. ( flutter/engine#55272 )
...
Also adds a golden that depends on https://github.com/flutter/engine/pull/55270 .
Resolves https://github.com/flutter/flutter/issues/142731 .
Allow setting the stencil compare function, pass/fail operations, and read/write masks.
Flutter GPU has light "shader object" style programs, so all of the stencil configuration state can be set on the `RenderPass` at any time.
New simple golden that exercises stencil ops:

2024-09-24 21:26:29 +00:00
skia-flutter-autoroll
2e633e3f30
Roll Skia from 6e5ff9253147 to cf28f9dd411d (1 revision) ( flutter/engine#55399 )
...
https://skia.googlesource.com/skia.git/+log/6e5ff9253147..cf28f9dd411d
2024-09-24 skia-autoroll@skia-public.iam.gserviceaccount.com Manual roll Dawn from 4f0cdf482175 to 77184aa49df6 (8 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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-24 20:14:52 +00:00
Jonah Williams
6cc61132fa
[Impeller] delete expensive trace event. ( flutter/engine#55400 )
...
The trace event in the blit pass is firing potentially hundreds of times per frame when we incremental update the glyph atlas. This takes significantly more time than the blit itself.
2024-09-24 20:10:56 +00:00
Harry Terkelsen
81f281b72d
Revert "[canvaskit] Further improve overlay optimization by splitting pictures" ( flutter/engine#55401 )
...
Reverts flutter/engine#54878
Crashes on real example app with many platform views
2024-09-24 13:06:08 -07:00
Harry Terkelsen
31cde4f8d3
[canvaskit] Further improve overlay optimization by splitting pictures ( flutter/engine#54878 )
...
This enhances the overlay optimization by delaying combining pictures to get tighter bounds for the pictures that make up the scene, enabling more sophisticated optimization since we can determine if they intersect with platform views on a per-picture basis.
Fixes https://github.com/flutter/flutter/issues/149863
On a Macbook in Chrome in an example app with an infinite scrolling grid of platform views, this brings the ratio of dropped frames from 93% to 55% (roughly 4 fps to 30 fps).
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-24 19:39:10 +00:00
Jonah Williams
a800331240
[Impeller] fix OES texture usage. ( flutter/engine#55331 )
...
Fixes https://github.com/flutter/flutter/issues/141636 by ensuring that oes textures create a tiled texture contents. This needs a real test though. probably an intergration test with camera.
2024-09-24 19:25:04 +00:00
skia-flutter-autoroll
2c82447739
Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) ( flutter/engine#55397 )
...
https://dart.googlesource.com/sdk.git/+log/24ed9af6a961..7af8c4882e07
2024-09-24 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com Version 3.6.0-274.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 bdero@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-09-24 18:53:16 +00:00
Mahmut Taşkıran
92cc1aac8a
Add a check for the surface if it is valid ( flutter/engine#55277 )
...
Fixes an issue where the Surface is not valid and the `draw` method is crashing.
https://github.com/flutter/flutter/issues/155018
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-24 18:43:06 +00:00
Brandon DeRosier
7242297f80
[Flutter GPU] Add setStencilReference to RenderPass. ( flutter/engine#55270 )
2024-09-24 11:27:25 -07:00
Jonah Williams
428565f27a
[Impeller] finish wiring up external textures for macOS embedder. ( flutter/engine#55347 )
...
Fixes https://github.com/flutter/flutter/issues/135898
Note that the macOS embedder is still using the apple texture cache object from the SkiaMetalContext. it can't initialize an equivalent ImpellerMetalContext without creating a second copy of the content context and all that jazz, so I'm leaving that as is for now.
2024-09-24 18:26:51 +00:00
gaaclarke
fe5be148d8
Added assert for host buffer allocation. ( flutter/engine#55395 )
...
fixes https://github.com/flutter/flutter/issues/155555
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-24 17:33:36 +00:00
skia-flutter-autoroll
d14216802d
Roll Skia from 3cdb1850e24c to 6e5ff9253147 (1 revision) ( flutter/engine#55394 )
...
https://skia.googlesource.com/skia.git/+log/3cdb1850e24c..6e5ff9253147
2024-09-24 jamesgk@google.com [graphite] Dynamically size buffer allocations
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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-24 16:24:23 +00:00
zijiehe@
cbaf3f8fbc
[Fuchsia] Remove deprecated and unnecessary parameters from fuchsia*archive ( flutter/engine#55324 )
...
This is a precondition to use more high-level templates in fuchsia-gn-sdk to replace build rules in flutter.
Meanwhile fuchsia-gn-sdk does not use pm anymore and this change is also helpful to get rid of the use of pm.
Briefly, it removes all cmx_file parameters and avoids specifying duplicated parameters (binary / target_name / default cml file).
Bug: http://b/353729557 , http://b/40935282
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2024-09-24 15:44:56 +00:00
Mouad Debbar
d99ff74d1a
[web] Fix keyboard not showing up when iOS input has decoration text ( flutter/engine#55152 )
...
In certain situations, semantics elements get assigned `pointer-events: none` when they aren't supposed to.
One such situation is when a text field has a [decoration error text](https://api.flutter.dev/flutter/material/InputDecoration/errorText.html ). The semantics node become a container, and we always set `pointer-events: none` on container nodes.
This PR introduces an `acceptsPointerEvents` getter on `SemanticRole` and `SemanticBehavior` to control when `pointer-events` should be `all` or `none`.
Fixes https://github.com/flutter/flutter/issues/141975
2024-09-24 15:03:00 +00:00
skia-flutter-autoroll
845eb2cf79
Roll Skia from cffb3d74282a to 3cdb1850e24c (1 revision) ( flutter/engine#55391 )
...
https://skia.googlesource.com/skia.git/+log/cffb3d74282a..3cdb1850e24c
2024-09-24 robertphillips@google.com Readd mipmap sharpening control to GrContextOptions
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 bdero@google.com ,brianosman@google.com,bungeman@google.com,rmistry@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-09-24 14:54:26 +00:00