3060 Commits

Author SHA1 Message Date
Dan Field
c39eb51448 Fix android zip bundles (flutter/engine#27604) 2021-07-21 12:56:02 -07:00
George Wright
95afd688f9 Add a unit test for FlutterFrameBufferProvider (flutter/engine#27591) 2021-07-21 12:47:07 -07:00
Siva
3635ddb39f Comment out terminate unit test until fix lands in Dart. (flutter/engine#27625)
* Comment out terminate unit test until fix lands in Dart.

* Address review comments.
2021-07-21 12:24:16 -07:00
Tong Mu
1a71c70587 Update key mapping to the latest logical key values (flutter/engine#25883)
This PR updates the key mapping tables of every platform according to the change to keycode_gen.
2021-07-21 01:58:09 -07:00
Tamir Duberstein
1481993626 Add fuchsia.net.name.Lookup (flutter/engine#27595)
fuchsia.net.NameLookup is transitioning to fuchsia.net.name.Lookup.
2021-07-20 22:57:07 -07:00
Dan Field
7866392474 Revert "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (flutter/engine#27607)
This reverts commit 9520cdc6c45bc45f8e944618a0ff641fd5f5429a.
2021-07-20 16:40:55 -07:00
Tamir Duberstein
8739c597bf Reformat manifests (flutter/engine#27603)
cmx: $FUCHSIA_DIR/scripts/style/json-fmt.py
cml: $FUCHSIA_DIR/out/default/host-tools/formatjson5 --replace
2021-07-20 16:19:36 -07:00
Dan Field
9520cdc6c4 Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (flutter/engine#27141) 2021-07-20 16:05:54 -07:00
David Worsham
934eced2e4 fuchsia: Add hermetic SessionConnection tests; rename (flutter/engine#27327) 2021-07-20 13:52:09 -07:00
Alexander Brusher
014a087925 Accounts for inverse pixel ratio transform in screen rects. (flutter/engine#27427) 2021-07-20 13:09:42 -07:00
Hunter Freyer
0e844e9ff4 Replace array<fml::Thread, 3> with ThreadHost. (flutter/engine#27455)
This is follow-up clean-up for #26193

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-20 12:46:10 -07:00
Siva
002299df34 Add embedder unit test that reproduces https://github.com/dart-lang/sdk/issues/46275 (flutter/engine#27392)
* Add embedder unit test that reproduces the problem described in
https://github.com/dart-lang/sdk/issues/46275

* Address code review comments.
2021-07-20 11:14:54 -07:00
Matej Knopp
b651e140ae MacOS: Release backbuffer surface when idle (flutter/engine#27189) 2021-07-20 07:11:02 -07:00
George Wright
8a12a40f1c Add unit tests for Dart entrypoint arguments on Windows (flutter/engine#27497) 2021-07-19 12:55:27 -07:00
Matej Knopp
becc215ba8 Do not resolve external textures unless there is new frame available (flutter/engine#27508) 2021-07-19 12:51:02 -07:00
Matej Knopp
ffa8f3ad2e MacOS: Fix external texture not working in OpenGL mode (flutter/engine#27506) 2021-07-19 12:46:02 -07:00
Darren Chan
cbcbbf7102 Migrate non-scenic-based fuchsia tests to cfv2. (flutter/engine#27241)
This PR also wraps up the soft transition for #27417.

Because some unit tests depend on the real Scenic which isn't hermetic, `flutter_runner_tests` and `flutter_runner_scenic_tests` aren't currently compatible with cfv2.
This will change once a FakeScenic is created (https://fxbug.dev/79873).

See https://fxbug.dev/79691.
2021-07-16 23:41:41 -04:00
chunhtai
da36fcdab6 Fixes scrollable behavior in voiceover (flutter/engine#27461)
* Fixes scrollable behavior in voiceover

* fix crash
2021-07-16 12:53:42 -07:00
George Wright
9f8c03501e Add a unit test for dart entrypoint args on macOS (flutter/engine#27465) 2021-07-16 10:04:07 -07:00
kartik garasia
e71aa68555 JavaDoc error fix (flutter/engine#27080)
Javadoc error Local engine build fails while building android targets
Related to issue #85346
2021-07-15 14:24:52 -07:00
ColdPaleLight
20bf73d974 Fixes some bugs when multiple Flutter VC shared one engine (flutter/engine#27320) 2021-07-15 13:31:01 -07:00
Matej Knopp
3c4ae00555 Fix duplicated keys with CONTROL key toggled (flutter/engine#27301) 2021-07-15 13:26:02 -07:00
Darren Chan
fe39238f25 Delete legacy focus platform message request handlers. (flutter/engine#27057)
Delete the following platform message request handlers:
 - `HostView.getCurrentFocusState`
 - `HostView.getNextFocusState`
 - `View.requestFocus`

See https://fxbug.dev/79740.
2021-07-15 16:24:36 -04:00
Nils Strelow
da681c31c6 Deeplink URI fragment on Android and iOS (flutter/engine#26185) 2021-07-15 10:51:02 -07:00
David Worsham
d707f91336 fuchsia: Log vsync stats in inspect (flutter/engine#27433) 2021-07-15 10:44:18 -07:00
Jason Simmons
219e22b0e2 Update the Fuchsia runner to use fpromise instead of fit::promise (flutter/engine#27416) 2021-07-14 19:31:06 -07:00
Felipe Archondo
573fe3dd0b [fuchsia] fix race in DefaultSessionConnection (flutter/engine#27377)
DefaultSessionConnection can run on two threads - the UI and raster
threads. This change ensures that all variables they both touch is
guarded by the mutex.

Fixes: fxbug.dev/80625
2021-07-14 22:10:15 -04:00
Kaushik Iska
45cf4e9ab1 [fuchsia] Use FFI to get System clockMonotonic (flutter/engine#27353) 2021-07-14 11:01:58 -07:00
Ajmal Kunnummal
a1fe1c8ca5 Make FlutterFragment usable without requiring it to be attached to an Android Activity. (Attempt 2) (flutter/engine#27397) 2021-07-14 10:51:02 -07:00
Zachary Anderson
0bf2a8c460 Revert "Make FlutterFragment usable without requiring it to be attached to an Android Activity. (#27332)" (flutter/engine#27382)
This reverts commit ba49de983781dd2267d50780b696e981f74fd84d.
2021-07-13 20:35:14 -07:00
Ajmal Kunnummal
ba49de9837 Make FlutterFragment usable without requiring it to be attached to an Android Activity. (flutter/engine#27332) 2021-07-13 17:11:02 -07:00
Chinmay Garde
dbc0d4d4b1 Ensure gclient sync is successful on an M1 Mac host. (flutter/engine#27354) 2021-07-13 15:26:02 -07:00
Dan Field
1872500bb0 Build the robolectric tests by default for debug armv7 (flutter/engine#27345) 2021-07-13 08:45:22 -07:00
Jason Simmons
6d0433831e Do not use the centralized graphics context options for Fuchsia Vulkan contexts (flutter/engine#27347) 2021-07-13 07:41:02 -07:00
Martin Kustermann
91ff075a74 Make dart wrappable classes use only one native field (flutter/engine#27350)
* Make dart wrappable classes use only one native field

It appears like the second native field is never really used for
anything: It is set, cleared and verified it was cleared, but that is
it.

=> The only native field that is necessary is the `this` pointer of the
   equivalent C++ object.
=> The [DartWrapperInfo] object which was stored as second native field
   is always accessible via the virtual `GetDartWrapperInfo()` method on
   `this`.
2021-07-13 16:39:22 +02:00
Dan Field
bf96d4bbc8 Fix the firebase scenario app run and assert that it does good things (flutter/engine#27295) 2021-07-12 16:56:02 -07:00
Chinmay Garde
170ad0fe1a Don't specify the secondary build tree when importing glfw. (flutter/engine#27344)
This lookup is implicit in GN. Explicitly specifying the glfw in
//build/secondary makes GN think multiple sources generate the same
intermediate object file.

This used to work because no other target also includes glfw. But I
am changing that in an upcoming test harness.
2021-07-12 16:53:05 -07:00
Emmanuel Garcia
4fbe0a6e47 Set Flutter View ID to the view ID instead of of the splash screen (flutter/engine#27262) 2021-07-12 16:41:02 -07:00
Kaushik Iska
12750e2e95 [fuchsia] Cleanup unused method in dart:zircon handle (flutter/engine#27330) 2021-07-12 11:40:42 -07:00
Tong Mu
1bdcf5501f Windows: Fix AltGr key causing CtrlLeft to hang (flutter/engine#27266)
Fixes an issue where pressing AltGr key (on supporting layouts such as Spanish) on Windows causes CtrlLeft to hang pressed for both Flutter and Windows.

Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
2021-07-11 21:38:22 -07:00
Chase Latta
d7a4148d62 [fuchsia] make dart_runner work with cfv2 (flutter/engine#27226)
Adds support for running the dart runner as a CFv2 component.
The runner has been refactored to launch in both a v1 environemnt
as well as a v2 environment.
2021-07-08 15:19:21 -07:00
Wyte Krongapiradee
1997318121 Avoid unintended clipboard access (flutter/engine#27215) 2021-07-08 12:56:02 -07:00
Greg Spencer
185d8601c5 Hardware Keyboard: iOS (flutter/engine#25961)
Implement new keyboard event system for iOS.
2021-07-07 16:52:04 -07:00
Matej Knopp
3502f849a5 Remove unnecessary variable assignment (flutter/engine#27227) 2021-07-08 01:31:51 +02:00
chunhtai
65f82199cb Hides the scroll bar from UIScrollView (flutter/engine#27214)
* Hides the scroll bar from UIScrollView

* fix test
2021-07-07 11:59:41 -07:00
Maurice Parrish
36d3a6c062 Create flag to enable/disable FlutterView render surface conversion (flutter/engine#27038) 2021-07-07 11:01:02 -07:00
Matej Knopp
b3fb01c80b MacOS (metal): Block raster thread instead of platform thread. (flutter/engine#27191) 2021-07-07 08:56:02 -07:00
Matej Knopp
a0cd9e9785 Do not expect WM_CHAR if control or windows key is pressed (flutter/engine#27064) 2021-07-07 08:46:02 -07:00
David Worsham
32cded5dcd fuchsia: Handle clips on platform views (flutter/engine#27149) 2021-07-06 13:00:05 -07:00
Hunter Freyer
34b8a2b930 Replace flutter_runner::Thread with fml::Thread (flutter/engine#26783)
* Move task_observers.{cc,h} into fml.

This is a preparatory CL. The next CL will cause task_observers.h to
be included from both shell/platform/fuchsia _and_
fml/platform/fuchsia. I imagine it might be gauche for a single file
to be used from both those directories, but it seems way worse for fml
to depend on shell, rather than the other way around.

* Replace flutter_runner::Thread with fml::Thread.

This CL makes the treading logic in Fuchsia's flutter_runner more
consistent with fml expectations, but it still has quirks. Notably:

- Not all async work get posted to a fml::TaskRunner. Some work done
  by Fuchsia libraries gets posted directly to
  async_get_default_dispatcher(). This work doesn't trigger the
  fml::MessageLoop's task observers. As a result, we continue to have
  Fuchsia-specific task observers which fire for all async work,
  regardless of which way it was posted.

- There's awkwardness when trying to run Fuchsia code on a specific
  fml::TaskRunner if that fuchsia code accepts an
  async_dispatcher_t. Since you can no longer get an
  async_dispatcher_t for a given thread, you instead must post a
  closure to the fml::TaskRunner that calls
  async_get_default_dispatcher(), and then calls the fuchsia library
  with the default dispatcher.

- Some tests still use task_runner_adapter.h because async::Loop
  offers more control in unit tests than fml::MessageLoop does.

- If this successfully lands, there will be some cosmetic follow-up
  changes to make, like using ThreadHost instead of an array of
  fml::Threads.

* Increase stack size in flutter runner.

The previous change removes our custom 1MiB limit on the stack of
newly created threads, so these threads revert to the Fuchsia
default. google-internal tests were failing (without any particular
error in the logs) after this change, so here we just set the default
stack size to 1MiB.

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-06 10:04:08 -07:00