500 Commits

Author SHA1 Message Date
Kaushik Iska
dc905faa2d VSyncWaiter on Fuchsia will defer firing until frame start time (flutter/engine#29287)
* VSyncWaiter on Fuchsia will defer firing until frame start time

The common vsync waiter implementation expects this invariant to be
held.

* Add a test for vsync_waiter
2021-10-21 18:56:19 -04:00
Emircan Uysaler
0dac69cfbd [fuchsia] Keep track of all child transforms in FlatlandExternalViewEmbedder (flutter/engine#29184)
* [fuchsia] Keep track of all child transforms in FlatlandExternalViewEmbedder

(cherry picked from commit 0adc38c375cbc982c481771e76b0a464ce95ee79)

* [fuchsia] HandleRemoveview cleanup
2021-10-21 08:13:05 -07:00
Jaeheon Yi
44761762e3 [fuchsia] Implement fuchsia.ui.pointer.MouseSource (flutter/engine#29034)
fxbug.dev/64381
fxbug.dev/64377
2021-10-20 19:13:12 -07:00
Rich Kadel
b4e2f34518 Improving support for AOT builds of Fuchsia packages
The integration test works in debug/jit mode only, and building in
`profile` and `release` modes was not working, breaking some builders.

The workaround was to disable the test.

This PR will enable release/aot mode so it will build, and unblock both
the debug-mode version of the test (tested by CI) and release mode
builds of the repo.

Due to the request to unblock, this PR does not yet build packages in
`profile` mode that will run in Fuchsia, but it should at least build
without errors. Ongoing work is in progress to also support running in
release mode.
2021-10-19 17:06:29 -07:00
Alexander Biggs
f8d6431176 [fuchsia] Create CF v2 Flutter runner. (flutter/engine#29142) 2021-10-14 16:23:01 -07:00
freiling
dc6834552d [fuchsia][flatland] Correct present credit accounting in FlatlandConnection (flutter/engine#29057)
* [fuchsia][flatland] Test for present credit exhaustion

* [fuchsia][flatland] Correct management of present credits in FlatlandConnection
2021-10-12 13:54:39 -07:00
Alexander Biggs
3dc63f83c0 [fuchsia] Add Launcher & Resolver to Dart JIT CMX. (flutter/engine#29091) 2021-10-08 17:33:01 -07:00
Alexander Biggs
069625d26a [fuchsia] Rename, move some CF v1 runner code. (flutter/engine#29072)
Bug: fxb/50694
Tested: Ran Spinning Square with the JIT runner.

Some small non-destructive cleanups that should make the CF v2
Flutter runner easier to read in a follow-up PR. No logic is
changed, only naming and location.

Renames Application -> Component. This matches the filename and
Fuchsia's naming.
Moves FileInNamespaceBuffer and related utilities into a separate
file from component.cc. This will enable reusing these utilities
in the CF v2 FLutter runner. Also adds documentation for them.
Renames CreateWithContentsOfFile helper -> LoadFile since that's
what the FML_EVENT_TRACE calls it.
Removes undefined UnregisterApplication method. There are no
usages of this method in our codebase.
Move fields after methods to follow the C++ style guide.
2021-10-08 15:01:15 -04:00
Jaeheon Yi
eec35470ff fuchsia: fix build (flutter/engine#29035) 2021-10-05 17:47:02 -07:00
Alexander Biggs
46d879a563 [fuchsia] CML files for Flutter runner CF v2. (flutter/engine#28982)
Bug: 50694
2021-10-05 13:13:44 -04:00
freiling
6d0920a925 [fuchsia][flatland] Fix for AwaitVsync race (flutter/engine#28980)
* [fuchsia][flatland] regression test for AwaitVsync race problem

* [fuchsia][flatland] minimal fix for AwaitVsync race
2021-10-04 17:54:04 -07:00
Chase Latta
951c5f2e64 Pass argmuent list to dart_runner v2 main invocation. (flutter/engine#28998)
Tested by running integration tests in fuchsia.git.
2021-10-04 14:03:34 -07:00
Chase Latta
fb1d646e61 make dart_runner cmx files have valid json (flutter/engine#28997) 2021-10-04 13:28:01 -07:00
Chase Latta
afd577c733 [fuchsia] publish dart runner v2 protocol (flutter/engine#28993) 2021-10-04 13:18:03 -07:00
Emircan Uysaler
27ff3352fb fuchsia: Change flatland present's release fence logic (flutter/engine#28850)
* fuchsia: Change flatland present's release fence logic

(cherry picked from commit a9a370252276df6c379c25bc809467d64b11beac)
(cherry picked from commit 74c559d424d35e45e619a7da1d87e3d3dec57ec1)

* fuchsia: Use runner_services to connect to Flatland

(cherry picked from commit 685493e7f01aaf9cc03f6e8ca66946203b20f880)
2021-10-01 12:02:48 -07:00
David Worsham
bd89058626 fuchsia: Add FakeFlatland and tests (flutter/engine#28926) 2021-09-30 20:27:30 -07:00
Alexander Biggs
b173af45a6 [fuchsia] Pass WeakPtrs to GfxConnection FIDL fns. (flutter/engine#28951) 2021-09-30 18:28:01 -07:00
Rich Kadel
c2ad820db9 Migrated integration_flutter_test/embedder (scenic integration test) from fuchsia.git (flutter/engine#26880) 2021-09-30 17:10:02 -07:00
Alexander Biggs
dad7453c05 [fuchsia] Dart Runner for CF v2 components. (flutter/engine#28923)
Bug: fxb/79871

Implements the ComponentRunner protocol for the Dart runner, making the Dart runner compatible with CF v2.
2021-09-30 19:41:02 -04:00
Emircan Uysaler
7faf37c825 [fuchsia] Rename FuchsiaExternalViewEmbedder to GfxExternalViewEmbedder (flutter/engine#28820) 2021-09-29 11:55:45 -07:00
Jaeheon Yi
c60637ac3f [fuchsia] Flatland endpoints hookup (flutter/engine#28852)
This patch gives the view-specific protocol
endpoints to the Flatland instance.
2021-09-29 11:21:11 -07:00
David Worsham
5633de2702 fix test again 2021-09-28 12:48:12 -07:00
David Worsham
d5d15aba36 fix test 2021-09-28 12:48:12 -07:00
David Worsham
4114da27f4 fuchsia: Use runner services 2021-09-28 12:48:12 -07:00
Emircan Uysaler
ea8305d95f fuchsia: Add child views to flatland engine (flutter/engine#28811) 2021-09-27 12:13:01 -07:00
Jaeheon Yi
482c08216e fuchsia.ui.pointer.TouchSource implementation for fuchsia platform view (flutter/engine#28242) 2021-09-26 07:43:05 -07:00
Alexander Biggs
2e9689d1a3 [fuchsia] Remove unused deps on fidl optional.h. (flutter/engine#28863)
Removed in https://fuchsia-review.googlesource.com/c/fuchsia/+/585444
making our SDK roll fail in #28862.
2021-09-26 09:49:08 -04:00
Alexander Biggs
6dd9777440 [Fuchsia] Notify Shell when memory becomes low. (flutter/engine#28821) 2021-09-24 12:23:01 -07:00
Darren Chan
b82554ae4a Implement a default font manager for Fuchsia. (flutter/engine#28673)
This helps us get rid of our hacky font switch after engine initialization.

See https://fxbug.dev/76406 and https://github.com/flutter/flutter/issues/82202.
2021-09-21 12:33:37 -07:00
Alexander Biggs
7da9095bfb [fuchsia] Fix missing function in V2 dart runner. (flutter/engine#28734) 2021-09-20 18:21:22 -04:00
David Worsham
877ab26be3 fuchsia: Use buffer_collection_x extension (flutter/engine#28683) 2021-09-17 15:31:26 -07:00
David Worsham
6e7589fc42 fuchsia: Add FuchsiaExternalViewEmbedder tests (flutter/engine#28144) 2021-09-16 22:10:38 -07:00
Zachary Anderson
75c1fbccc7 Don't use Dart's application_snapshot() rule (flutter/engine#28361) 2021-09-16 13:37:01 -07:00
Alexander Biggs
66fe4ff7d1 [fuchsia] Create DartComponentController for CFv2. (flutter/engine#28613)
Bug: fxb/79871

The code is still using the CFv1 implementation, so this should not affect the existing behavior.

For this version of the PR, I forked the existing DartComponentController. There were a few reasons for this:

Reduces the chance of the change breaking existing tests during Fuchsia GI.
Makes the V2 version of the DartComponentController simpler to read.
Makes it easier to switch over to using the V2 version of the DartComponentController once the migration is ready to happen (less cleanup).
The rate of changes to the DartComponentController is slow so there shouldn't be much maintenance required for the fork.
Changes to the DartRunner itself will happen in a follow-up PR - this PR only verifies that the ComponentController builds.

Relands GN and C++ changes for #27226 after rollback in #28036.
2021-09-14 16:15:53 -07:00
Rich Kadel
dd51e241e5 Fix building Dart Fuchsia components and packages (flutter/engine#28413) 2021-09-09 14:47:02 -07:00
Alexander Biggs
ef0d8bf6fe [fuchsia] Add CML files for dart_runner on CFv2. (flutter/engine#28491)
Bug: 79871

Partial re-land of #27226 (which was reverted in #28036 due to a flaky test). Only adds in the CML files for a CFv2 dart_runner without the corresponding C++ and GN changes.
2021-09-08 11:55:03 -07:00
Tamir Duberstein
f84699a8b9 Remove fuchsia.net.NameLookup (flutter/engine#28403) 2021-09-03 16:21:02 -07:00
Zachary Anderson
86de3b6591 Revert "Display Features support (Foldable and Cutout) (#24756)" (flutter/engine#28447)
This reverts commit 53b9a690c5eb8410c561be43964f350f58347366.
2021-09-03 09:01:15 -07:00
Andrei Diaconu
53b9a690c5 Display Features support (Foldable and Cutout) (flutter/engine#24756)
* Add DisplayFeatures and DisplayCutout to viewport metrics

* WindowManager alpha03 and better documentation

* Fixed formatting

* Fixed failing tests

* Replaced API version code P with 28

* Unnecessary import

* Fixed display features parameters missing

* Documentation changes

* First paragraph is a sentence

* Update androidx window library to version 1.0.0-alpha05

* Improve documentation, remove deprecated display feature call

* Write tests and improve documentation

* Migrate to Window Manager alpha08

* Update androidx window to beta01

* Remove unused import

* Remove window_hook_integration_test.dart

* Fix tests

* Update android_embedding_dependencies version to include androidx.window

* Add androidx.window to test_runner build

* Add empty display features arrays to fuchsia platform view

* Fix tests using final class mocking

* Add missing license header

* Update licenses_golden
2021-09-03 04:02:17 -07:00
Naud Ghebre
310ae53dfb The result to CompleteEmpty() being called on the platform message (flutter/engine#28407)
response is being interpreted as `null` in dart. This results in a
MissingPluginException being thrown whenever `View.update` or
`View.dispose` is invoked.

This change returns null data in a dictionary to complete the response
in a way that is not interpreted as `null` in dart.
2021-09-02 18:54:46 -04:00
ColdPaleLight
4a74166097 Started providing the GPU sync switch to Rasterizer.DrawToSurface() (flutter/engine#28383)
Co-authored-by: Aaron Clarke <gaaclarke>
2021-09-01 11:37:22 -07:00
David Worsham
494a017b85 fuchsia: Fix renderer destructor (flutter/engine#28355) 2021-08-30 15:18:15 -07:00
David Worsham
341a0f2f24 fuchsia: Improve FakeSession & add tests (flutter/engine#28139) 2021-08-26 13:16:02 -07:00
Chris Bracken
8f87951759 Revert "Build dart:zircon and dart:zircon_ffi (#28071)" (flutter/engine#28313)
This reverts commit 1e9b7aed566105eec982ca0eb545139b218bc916.

Reverting in order to land revert of the gn script_executable from
python3 to vpython3, which is causing flakes on Windows.

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-26 11:21:49 -07:00
Chris Bracken
a858cceed8 Eliminate Android-specific Vulkan support (flutter/engine#28239)
This eliminates Vulkan support for Android. As of flutter/engine#27980
(684ad82) we are no longer running Android-Vulkan builds. This
eliminates the --enable-vulkan flag from tools/gn and any code that is
only reachable when that flag is enabled.

Note that after this patch, `shell_enable_vulkan` is always false,
however the //flutter/shell/gpu:gpu_surface_vulkan target and source
files remain since they are still used when `test_enable_vulkan` is
true, which is the case when `is_fuchsia` is true. Note that these files
are *not* built as part of a regular fuchsia build (see the
`shell_gpu_configuration` in //shell/platform/fuchsia/flutter/BUILD.gn),
but may be enabled once the Fuchsia embedder is migrated to the Embedder
API.

Also updates TODOs to dworsham, who is the committer who'll be
transitioning the Fuchsia embedder to the embedding API.
2021-08-23 13:59:43 -07:00
chunhtai
9761b7371a Issues/86577 reland (flutter/engine#28211) 2021-08-20 12:27:01 -07:00
Anthony
50adf078fd [Re-land] Add SPIR-V FragmentShader API to painting.dart (flutter/engine#28208)
[Re-land] Add SPIR-V FragmentShader API to painting.dart

- Add a SPIR-V FragmentShader interface in painting.dart
- Create end to end pixel tests for ops supported by the SPIR-V to SkSL transpiler
- The end to end tests also test the c++ fragment shader implementation

Co-authored-by: Christopher Crawford <chriscraws@gmail.com>
2021-08-20 11:24:14 -04:00
Zachary Anderson
c4fb8a6051 Revert "Adds semantics tooltip support (#27893)" (flutter/engine#28207)
This reverts commit 366e66802a35abf55bcb649b9bf58921b174b59a.
2021-08-19 14:40:34 -07:00
Zachary Anderson
e3f282c563 Revert "Add SPIR-V FragmentShader API to painting.dart (#26996)" (flutter/engine#28202)
This reverts commit 1b518619357cc1666a9fca183c9766d1ece16d0f.
2021-08-19 12:38:10 -07:00
chunhtai
366e66802a Adds semantics tooltip support (flutter/engine#27893) 2021-08-18 15:37:01 -07:00