Jason Simmons
4f384979af
Fix a Fuchsia formatter type mismatch flagged by the pending Clang roll ( flutter/engine#43651 )
2023-07-13 20:13:55 +00:00
Jim Graham
ce4c7d3ffd
move rtree and canvas_spy sources to Fuchsia sub-directory ( flutter/engine#43615 )
...
These sources have long been obsolete for most of the engine, except for the Fuchsia sources. They do not need to be built for any other platform so this PR moves them into a Fuchsia platform-specific build directory so that they are only present in the Fuchsia binaries.
2023-07-12 22:22:39 +00:00
Gwen Mittertreiner
91de8eabaa
[fuchsia][cml] Mark Tracing as Optional ( flutter/engine#43567 )
...
Tracing is an optional component that is only included in eng builds, so the usage should be marked optional.
Bug: fxbug.dev/112433
2023-07-11 20:24:06 +00:00
David Worsham
122b633929
[fuchsia] Remove FIDL dart references ( flutter/engine#43550 )
...
fidlgen_dart was still referenced in the build rules. It is being
removed from the fuchsia SDK, so remove it from the build rules here.
2023-07-12 02:48:12 +10:00
Tong Mu
489f9c3d01
Make updating window metrics multi-view ( flutter/engine#43366 )
...
This PR adds multi-view support to various methods that updates the window metrics by adding a `view_id` parameter.
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2023-07-08 05:54:16 +00:00
David Worsham
b400037017
[fuchsia] Fix tests; remove fuchsia dart SDK deps ( flutter/engine#43461 )
...
Dart is being removed from the Fuchsia SDK, so remove references to it
here.
Also remove references to workstation_eng and replace with terminal.
workstation_eng is no longer a thing.
2023-07-08 09:37:34 +10:00
Tamir Duberstein
e4d08d4e8c
Remove unused constants ( flutter/engine#43344 )
2023-06-29 21:42:05 +00:00
Emircan Uysaler
d69d614045
[fuchsia] Remove strict equality check for SkMatrix comparison for Fl… ( flutter/engine#43309 )
...
Flatland version of
010e710512
Bug: fxb/126648
2023-06-29 12:01:12 -04:00
Tamir Duberstein
da738cb44d
Avoid channel clone ( flutter/engine#43181 )
...
Use fdio_fd_transfer instead of fdio_fd_clone.
2023-06-26 12:04:46 -07:00
Tamir Duberstein
f7d1aada2e
Add tmp storage capability to flutter runner ( flutter/engine#43157 )
...
Missed in fd56ab9e4475893d94e3a45ea5d5b3374bd74447.
2023-06-23 16:33:42 -07:00
Tamir Duberstein
fd56ab9e44
Remove process-local tempfs ( flutter/engine#43056 )
...
This was incorrectly made read-only in 0984c52a8f ; instead of implementing it locally, ask the component manager for the directory.
2023-06-22 02:46:23 +00:00
Tamir Duberstein
75da76c7cd
Add missing includes ( flutter/engine#42812 )
...
See https://fxrev.dev/869997 .
2023-06-13 19:34:06 +00:00
Tamir Duberstein
0984c52a8f
Remove dependency on memfs ( flutter/engine#42773 )
...
See individual commits.
2023-06-12 17:14:35 +00:00
gaaclarke
2097506136
[Impeller] Makes validation layers flag work for android ( flutter/engine#42625 )
...
This builds and links in the validation layers for android. They then
can be turned on or off with a manifest field.
fixes https://github.com/flutter/flutter/issues/123788
depends on https://github.com/flutter/buildroot/pull/741
## 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.
- [ ] 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 Hixie said 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
[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
2023-06-09 10:22:21 -07:00
Brandon DeRosier
72a1fea6e2
[Impeller] Reland 2: Add Impeller Metal support in the embedder API ( #42411 ) ( flutter/engine#42597 )
...
This reverts commit
8d6f091751
+ fixes bugs.
Reworked the surface wrapping to use a valid descriptor when wrapping
the drawable.
2023-06-06 23:02:02 -07:00
Zachary Anderson
8d6f091751
Revert "[Impeller] Reland: Add Impeller Metal support in the embedder API ( #42411 )" ( flutter/engine#42593 )
...
Reverts flutter/engine#42545
Not sure if this is needed, but getting a revert started for the
regression noted here:
https://github.com/flutter/engine/pull/42545#issuecomment-1579034704 .
2023-06-06 10:57:57 -07:00
Brandon DeRosier
fba5e2b514
[Impeller] Reland: Add Impeller Metal support in the embedder API ( #42411 ) ( flutter/engine#42545 )
...
This reverts commit
45dd178414 .
Original PR: https://github.com/flutter/engine/pull/42411
Part of https://github.com/flutter/flutter/issues/112230 .
2023-06-05 14:51:43 -07:00
Brandon DeRosier
45dd178414
Revert "[Impeller] Add Impeller Metal support in the embedder API ( #42411 )" ( flutter/engine#42532 )
...
This reverts commit 666563a5544cf2a98a51c6b24e7bc03e265eedb0.
Expected to resolve https://github.com/flutter/flutter/issues/128145
2023-06-02 18:11:00 -07:00
Brandon DeRosier
666563a554
[Impeller] Add Impeller Metal support in the embedder API ( flutter/engine#42411 )
...
Part of https://github.com/flutter/flutter/issues/112230 .
Now seemed like the right time to sneak this in:
* We have large desktop refactors on the horizon (multi-window).
* We're starting to land optimizations that complicate the surface behavior such as wide gamut and dirty regions.
* We have plans to migrate the iOS embedder to use the embedder API (https://github.com/flutter/flutter/issues/112232 ).

2023-06-01 20:10:58 +00:00
Emircan Uysaler
d84c05920b
[fuchsia] Bind ChildViewWatcher on platform thread ( flutter/engine#42222 )
...
This CL posts ChildViewWatcher calls on platform thread.
Bug: fxb/125256
2023-05-23 10:00:27 +10:00
Kevin Lubick
7751d1c5eb
Move SkSurface::MakeNull to SkSurfaces::Null ( flutter/engine#42158 )
...
In https://skia-review.googlesource.com/c/skia/+/696537 (and earlier in
https://skia-review.googlesource.com/c/skia/+/687639 ), Skia moved all
SkSurface factories. This changes the last calls of the old static
methods to the methods in the `SkSurfaces` namespace
## 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].
- [ ] 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 Hixie said the PR is test-exempt. See [testing the engine]
for instructions on writing and running engine tests.
- [ ] 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
[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
2023-05-20 10:11:44 -04:00
Kevin Lubick
0946d27add
Migrate uses of SkSurface factories ( flutter/engine#41978 )
...
In http://review.skia.org/687639 , many SkSurface static methods were moved and one was deleted (SkSurface::MakeRasterN32Premul). (SkSurface::MakeNull was omitted accidentally and http://review.skia.org/696537glesource.com/c/skia/+/696537 has not rolled into Flutter yet)
This changes the calls in Flutter to match those moved functions. There should be no functional difference and everything was done pretty mechanically (e.g. find and replace)
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
2023-05-15 16:41:10 +00:00
Ian McKellar
4579687380
[fuchsia] Stop calling FIDL from Dart in Flutter integration tests ( flutter/engine#41669 )
...
As we move the Dart FIDL bindings we need to stop calling FIDL methods
from Dart in the Flutter repo. This only affects some integration tests.
This moves the FIDL calls into C++ and uses platform messages to make
the functionality available to the Dart tests.
2023-05-09 11:34:21 +10:00
drwez
de642efdac
[tests] Remove unused fuchsia.sys protocol reference ( flutter/engine#41826 )
...
Remove reference to unused fuchsia.sys.Environment protocol in test
Realm setup. Besides being unused,
the reference was not correctly matched by an #include, nor a GN build
dependency.
Bug: fxbug.dev/81285
2023-05-09 11:34:08 +10:00
Dan Field
ea5131772d
Add a Display API to dart:ui that reports the physical size, DPR, and refresh rate of the main display ( flutter/engine#41685 )
...
Fixes https://github.com/flutter/flutter/issues/123307 - for Android, iOS, and Web, for the main display only (https://github.com/flutter/flutter/issues/125938 tracks supporting multiple displays, https://github.com/flutter/flutter/issues/125939 for desktop).
Desktop will need to be implemented for this, but given priority for a couple of our customers targetting foldable devices on Android I'm inclined to get this in before desktop can be finished.
The main concern for this right now is that on some Android foldable devices, setting a preferred orientation will cause letterboxing and the `MediaQuery` will _never_ get the full screen size when unfolded. This causes apps to think the screen is smaller than it is, as they've mainly been using `MediaQueryData.size` to figure this out. Android's recommendation is to not set a preferred orientation, and if you must to use the new method introduced in `ViewUtil.java` to calculate the maximal window size.
2023-05-06 18:28:22 +00:00
Kevin Lubick
e05e7a8552
Migrate SkSurface::getBackend* methods to static functions ( flutter/engine#41693 )
...
In https://skia-review.googlesource.com/c/skia/+/687642 , Skia moved some
gpu-related methods on SkSurface to be static functions in a different
header. This updates those callsites in Flutter.
## 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].
- [ ] 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 Hixie said the PR is test-exempt. See [testing the engine]
for instructions on writing and running engine tests.
- [ ] 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
[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
2023-05-03 09:03:39 -07:00
Brandon DeRosier
b4271c24de
Add missing header guards ( flutter/engine#41322 )
...
These keep turning up, so I did a little bash-fu to find them all.
```bash
grep -lL "#pragma once" $(grep -lL "#ifndef .*_H_" $(find . | grep "\.h$")) | cut -c 3-
```
2023-04-19 21:20:21 +00:00
Caroline Liu
f415c255c7
[fuchsia] migrate touch-input integration tests to gfx scene manager test ui stack ( flutter/engine#41118 )
...
This change migrates `touch-input` integration tests from the
`gfx-root-presenter-test-ui-stack` UI test realm variant to run
parameterized tests of two types: `gfx-scene-manager-test-ui-stack` and
`flatland-scene-manager-test-ui-stack`. Both are exercised for the
generic tap test, and only GFX is exercised for embedded view cases.
This will enable fuchsia.git to remove the
`gfx-root-presenter-test-ui-stack` variant, which will no longer be
supported.
This change also:
- removes or updates all remaining references of root presenter, which
manifested in the form of inline code comments
- adds a TODO to update the child view app for the embedded touch input
test cases
Note that this change does _not_ modify the `embedder` integration
tests, which use a generic `test-ui-stack` variant as defined by the
fuchsia pkg url:
`fuchsia-pkg://fuchsia.com/test-ui-stack#meta/test-ui-stack.cm`. Since
the contents of this package is defined in fuchsia.git, the realm under
test can adapt to changes in fuchsia.git so long as they update the
test-ui-stack build target (which they do in https://fxrev.dev/831359 ,
the change that relies on the touch changes in this repo described
above.)
Fixes https://fxbug.dev/125304
## 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 Hixie said 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.
2023-04-18 10:57:58 -04:00
drwez
c7eddaf709
[fuchsia] Remove implementations & clients of deprecated CreateView ( flutter/engine#41154 )
...
Prepare Flutter's Fuchsia port for removal of the
fuchsia.ui.app.ViewProvider.CreateView() API.
The Flutter engine's implementation of the API, which has long been
deprecated, is removed.
Calls to the deprecated CreateView() in tests are replaced with
CreateViewWithViewRef().
Bug fxbug.dev/81285
2023-04-14 06:30:06 +10:00
Emircan Uysaler
f54713cc5e
[fuchsia] Reduce noise from child view disconnects ( flutter/engine#41132 )
...
This CL changes ERROR to WARNING for the logs when a child disconnects
and ChildViewWatcher is closed. This may happen due to other apps and
doesn't necessarily indicate a flutter error.
Bug:fxb/125256
2023-04-13 06:42:55 +10:00
Chris Yang
5da580cfb2
[embedder] embedder external view adopt DisplayListEmbedderViewSlice ( flutter/engine#40578 )
...
[embedder] embedder external view adopt DisplayListEmbedderViewSlice
2023-04-10 18:54:39 +00:00
Corey Tabaka
dac17395ad
[Fuchsia] Implement thread priorities. ( flutter/engine#40970 )
...
[Fuchsia] Implement thread priorities.
2023-04-07 19:25:20 +00:00
Emircan Uysaler
647ad5e49e
[fuchsia] Rename params and add comments to FlatlandConnection ( flutter/engine#40941 )
...
This CL renames params and adds comments to FlatlandConnection to
clarify behavior.
Bug: fxb/123838
2023-04-05 18:03:22 -04:00
Thomas Gales
7f5afc5533
[fuchsia] Feedback filing migration ( flutter/engine#40736 )
...
[fuchsia] Feedback filing migration
2023-03-30 20:09:50 +00:00
Filip Filmar
c68289bb76
Remove timezone from flutter ( flutter/engine#40588 )
...
Remove timezone from flutter
2023-03-27 17:08:05 +00:00
Alexander Aprelev
6a2019ca61
Roll dart to 01350005aab7a7bfe2dc98066cb7acc95a811f7a ( flutter/engine#40455 )
...
Roll dart to 01350005aab7a7bfe2dc98066cb7acc95a811f7a
2023-03-20 19:57:15 +00:00
Michael Goderbauer
9258a58a33
add final class modifiers to fix dart roll ( flutter/engine#40434 )
2023-03-20 10:10:55 -07:00
Michael Goderbauer
dcc4b1b535
Reland: Bump lower Dart SDK constraints to 3.0 ( flutter/engine#40318 )
...
* WIP
Bump to 3.0.0-0
* fix lints
* drop web_ui
* opt pointer_converter.dart out of dart 3
* Revert "drop web_ui"
This reverts commit b97a015d5cd0d7e0380a4231be4c31aad36671f1.
2023-03-16 08:07:39 -07:00
Zachary Anderson
32b3e66d7c
Revert "Bump lower Dart SDK constraints to 3.0 ( #40178 )" ( flutter/engine#40317 )
...
Revert "Bump lower Dart SDK constraints to 3.0"
2023-03-15 18:53:00 +00:00
Michael Goderbauer
828f3deb86
Bump lower Dart SDK constraints to 3.0 ( flutter/engine#40178 )
...
Bump lower Dart SDK constraints to 3.0
2023-03-15 17:57:04 +00:00
Adam Perry
e9942f8f52
Reland "[fuchsia] Remove component framework v1 support. ( #39732 )" ( flutter/engine#40198 )
...
Previously reverted in #40104 , this should now be safe to reland as
the last dependency has been deleted internally.
This reverts commit 9369c1ed1f33cfdad25ebe9cb809d6b5d6941159.
2023-03-09 15:05:45 -08:00
Adam Perry
9369c1ed1f
Revert "[fuchsia] Remove component framework v1 support. ( #39732 )" ( flutter/engine#40104 )
...
This reverts commit 181ee0e750727f4ef54e9b8421b264a333a0bdfc.
2023-03-07 10:53:16 -08:00
Adam Perry
181ee0e750
[fuchsia] Remove component framework v1 support. ( flutter/engine#39732 )
...
There are no longer any CMX-based components outside of prebuilts
which are run by existing flutter runner prebuilts.
2023-03-01 20:07:03 -08:00
Jaeheon Yi
203ba859ed
[fuchsia] Avoid log spam ( flutter/engine#39862 )
...
[fuchsia] Avoid log spam
2023-02-27 21:55:15 +00:00
Jim Graham
0fa8cbec8a
Create DlCanvas interface and implement with DisplayListBuilder and SkCanvasAdapter ( flutter/engine#39762 )
...
* Create DlCanvas interface and implement with DisplayListBuilder and SkCanvasAdapter
2023-02-23 22:09:35 -08:00
Rulong Chen(陈汝龙)
4fb5044193
Uses int64_t instead of int for the |view_id| parameter. ( flutter/engine#39618 )
2023-02-16 20:20:15 +00:00
Jason Simmons
5f09e0fdf0
Remove Libtxt and Minikin ( flutter/engine#39499 )
2023-02-13 17:16:04 +00:00
Amit Uttamchandani
091acd9397
Disable mouse-input-test ( flutter/engine#39492 )
...
See http://fxbug.dev/121501
Co-authored-by: Amit Uttamchandani <amituttam@google.com>
2023-02-08 11:31:31 -08:00
Miguel
786803bc70
[fuchsia] fdio_service_connect no longer provides rights which we need ( flutter/engine#39374 )
...
fdio_service_connect no longer provides rights. Since we need the READABLE right when opening the debug/ctrl/diagnostics directories, this change uses fdio_open_at.
This change also fixes the Clone to remove specific rights and instead use CLONE_SAME_RIGHTS.
Verified locally that we no longer get ACCESS_DENIED on the diagnostics directory when opening in component manager.
2023-02-03 17:03:36 -05:00
Brandon DeRosier
841758cc6c
Add SkSurface include to every file where it's used ( flutter/engine#39304 )
2023-02-01 00:50:58 +00:00