2793 Commits

Author SHA1 Message Date
Jonah Williams
e37debbf9b Allow hot reload without syncing all asset files to devFS (flutter/engine#21436)
Always add the asset resolver from the configuration settings directory when restarting or recreating the asset manager
2020-10-02 14:09:07 -07:00
Justin McCandless
477e836af4 iOS Text Editing Infinite Loop (flutter/engine#20160)
Fixes an infinite loop by eliminating an unnecessary engine/framework message.
2020-10-02 13:51:50 -07:00
Jason Simmons
7987032038 Workaround for an Android emulator EGL bug that can cause inaccurate GL version strings (flutter/engine#21258) 2020-10-02 12:17:02 -07:00
Jason Simmons
b1839003b3 Extract the WindowInsetsAnimation.Callback subclass into a separate class that will be lazily loaded (flutter/engine#21548)
WindowInsetsAnimation.Callback was introduced in API level 30.  This
PR moves the text input plugin's WindowInsetsAnimation.Callback subclass
into a class that will only be loaded if the embedding has checked for a
sufficient API level.

See https://github.com/flutter/flutter/issues/66908
2020-10-02 11:23:42 -07:00
David Worsham
71497dd042 embedder: Exclude GL code (flutter/engine#21544) 2020-10-01 12:20:10 -07:00
Yilong Li
cfc4883c7b fuchsia: Remove display device availability check from Flutter. (flutter/engine#21495)
When Flutter engine connects to Scenic, Scenic has already
checked the display and graphics device availability before
Scenic starts; so it is guaranteed that display devices are
available and surface is valid when it is created.

Thus this change removes the device watching details from
flutter surface on Fuchsia so that it doesn't need to do
duplicated checks and hides the device-specific details.
2020-10-01 10:08:25 -07:00
stuartmorgan
b493fa3af3 Add missing returns in system channels handlers (flutter/engine#21523)
The Windows and GLFW embeddings both had cases of missing returns after
calling `Error` on a method channel result object, leading to incorrect
double-calls on the result if the error paths were ever hit.
2020-09-30 14:34:50 -07:00
Ren You
f2669455f3 Revert "Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21163)" (flutter/engine#21513)
This reverts commit afeb9b27f0191997cc45682ab756c0be4d3e155c.
2020-09-30 09:34:05 -07:00
Felipe Archondo
af1ab991d5 [fuchsia] fix typo (flutter/engine#21488) 2020-09-29 15:48:52 -05:00
Greg Spencer
afeb9b27f0 Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (flutter/engine#21163)
This switches from using dispatchKeyEvent to using dispatchKeyEventPreIme so that keys can be intercepted before they reach the IME and be handled by the framework.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends the to Flutter before sending them to the IME (which it now only does if they are not handled by the framework).

This fixes the problem where pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent.
2020-09-29 12:46:29 -07:00
lucasradaelli
ea1173225e [fuchsia][a11y] Don't populate hidden state. (flutter/engine#21484) 2020-09-29 10:07:01 -07:00
bungeman
fd93916c27 Replace kLegacyFontHost_InitType with kUnknown_SkPixelGeometry. (flutter/engine#21474)
Skia is removing the deprecated legacy display setting globals and
associated kLegacyFontHost_InitType. This change replaces all such uses
with default surface properties with no special flags and an unknown
pixel geometry. Flutter never set the associated globals, leaving them
with their initial default values, which were no special flags and
horizontal RGB pixel geometry. The values used here are different but
this change should make no difference as Flutter never mentions
SkFont::kSubpixelAntiAlias to take advantage of the pixel geometry.
2020-09-29 12:46:08 -04:00
stuartmorgan
fd8683ab35 [macos] Allow engine flags via environment vars (flutter/engine#21468)
Replaces the (temporary) compile-time option to pass engine switches
with the ability to pass them temporarily at runtime via environment
variables. This moves the recently-added code for doing this on Windows
to a shared location for use by all desktop embeddings.

This is enabled only for debug/profile to avoid potential issues with
tampering with released applications, but if there is a need for that in
the future it could be added (potentially with a whitelist, as is
currently used for Dart VM flags).

Temporarily adds a way to enable mirrors as a compile time option,
as is already provided in the Linux embedding, to provide a migration
path for the one remaining known need for compile-time options
that has been raised in flutter/flutter#38569.
2020-09-29 09:36:30 -07:00
chunhtai
cb4fe4dfab Reland Apply dpr transform to fuchsia accessibility bridge (flutter/engine#21459)
* Reland "Apply dpr transform to fuchsia accessibility bridge (#21364)"

This reverts commit 0c8c4bd82c51933ac4aa5c13fc33f0c63b12d921.

* fix test
2020-09-28 12:50:53 -07:00
Kaushik Iska
a5f4486147 Reland multiple display support for embedder API (flutter/engine#21464) 2020-09-28 12:35:34 -07:00
Jason Simmons
19b073917b Do not pass invalid platform view rendering surfaces to the rasterizer (flutter/engine#21259) 2020-09-28 11:57:01 -07:00
George Wright
67cfb02b18 Enable embedder_unittests on Fuchsia (flutter/engine#21418) 2020-09-28 11:12:02 -07:00
Kaushik Iska
bd90847bad Revert multiple display support for embedder API (flutter/engine#21456)
This reverts commits
- 5f34b8442366463b5ad53e3e87e7920a006392eb.
- fc8b468d84f1fef5bf5183dd0b36d9411d454ea7.

See: https://github.com/flutter/flutter/issues/66829
2020-09-28 09:46:46 -07:00
Zachary Anderson
0c8c4bd82c Revert "Apply dpr transform to fuchsia accessibility bridge (#21364)" (flutter/engine#21458)
This reverts commit c120f3e17aeb2ee8ee69c76d6bd5070d68e7093e.
2020-09-28 09:42:50 -07:00
chunhtai
c120f3e17a Apply dpr transform to fuchsia accessibility bridge (flutter/engine#21364)
* Apply dpr transform to fuchsia accessibility bridge

* fix format

* addressing comment

* fix typo
2020-09-28 09:24:02 -07:00
Kaushik Iska
100e0491d8 [ios] Remove unused is_valid_ from IOS Metal Context (flutter/engine#21432) 2020-09-28 08:05:48 -07:00
Kaushik Iska
fc8b468d84 [macOS] Set the display refresh rate (flutter/engine#21095)
Fixes: https://github.com/flutter/flutter/issues/49222
2020-09-26 06:47:26 -07:00
Emmanuel Garcia
dbca16555e Support dragging native platform views (flutter/engine#21396) 2020-09-25 17:46:34 -07:00
Jenn Magder
cc6409ece6 Remove ASCII art from mDNS error log (flutter/engine#21397) 2020-09-25 11:34:26 -07:00
Alexander Brusher
2afe2bffaf Revert "Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (#20936)" (flutter/engine#21367)
This reverts commit 22e1f69704ed0f67b6b57d72197abac4a35f94b3.
2020-09-25 11:07:10 -07:00
Kaushik Iska
5f34b84423 Embedder API Support for display settings (flutter/engine#21355)
Embedders can now notify shell during startup about the various displays and their corresponding settings.
Adds a notion of Display update type which can later include chages to displays during runtime such as addition / removal / reconfiguration of displays.

We also remove the responsibility of providing the refresh rate from `vsync_waiter` to `DisplayManager`.
Rewires existing platform implementations of the said API to use `Shell::OnDisplayUpdate` to notify the display manager of the startup configuration.

DisplayManager is also thread-safe to account for rasterizer and UI thread accesses.
2020-09-25 11:04:10 -07:00
Dan Field
5e3ad78d3a Avoid sending a 0 DPR to framework (flutter/engine#21389)
* Avoid sending a 0 DPR to framework

* check width and height as well
2020-09-25 10:35:57 -07:00
George Wright
235133f27f Split out embedder_unittests test cases into GL and non-GL tests (flutter/engine#21386) 2020-09-24 17:02:01 -07:00
Robert Ancell
1e7257eb84 Detect errors encoding method channel responses (flutter/engine#21314) 2020-09-25 10:33:38 +12:00
stuartmorgan
e44461bafa Remove legacy C++ EncodableValue (flutter/engine#21359)
When the EncodableValue implementation changed, the old version was
temporarily kept behind an #ifdef to allow temporarily using the old
version, so that the roll would not be blocked. All known existing
clients have migrated, so the legacy version is no longer necessary.
2020-09-24 15:14:12 -07:00
Gary Qian
e714ae10db Locale -> LanguageRange conversion to be more general in Android platformResolvedLocale (flutter/engine#21350) 2020-09-23 21:52:02 -07:00
Jason Simmons
32fbdb6755 Fix boolean value checks in StandardMessageCodec (flutter/engine#21270)
Fixes https://github.com/flutter/flutter/issues/65619
2020-09-23 16:31:07 -07:00
Robert Ancell
4a218b9995 Fix segfault if engine is disposed with an uncompleted task. (flutter/engine#21234) 2020-09-24 11:29:38 +12:00
Tim Sneath
85f44f9584 Update FlutterViewController.mm (flutter/engine#21362)
Tweaked the label here a little for style ("apps", not "application" -- plural and shorter); and "launching" rather than "re-launching"?
2020-09-23 13:52:52 -07:00
xster
1644e2fbcf Re-land deprecate Android v1 embedding classes (flutter/engine#21347) 2020-09-23 11:25:20 -07:00
Jason Simmons
1158faf54c Retain the WindowInsetsAnimation callback if code shrinking is enabled (flutter/engine#21330) 2020-09-23 09:17:02 -07:00
Mehmet Fidanboylu
a5c9b5b79d Remove spurious semicolon (flutter/engine#21333) 2020-09-22 22:53:53 -07:00
Zachary Anderson
01982beebc Revert "Deprecate Android v1 embedding classes (#20868)" (flutter/engine#21338)
This reverts commit 7b1562112962b1b22926938fad6438279ed6467c.
2020-09-22 14:38:18 -07:00
lucasradaelli
82665a7450 [a11y] Flutter sends node roles as part of Fuchsia semantics updates. (flutter/engine#21329) 2020-09-22 13:57:02 -07:00
Felipe Archondo
aa6ea4bff5 [fuchsia] add frames_in_flight info to trace events (flutter/engine#21302)
No tests needed, since there is no change in functionality expected.
2020-09-22 16:02:49 -04:00
stuartmorgan
6cf89de868 [windows] Allow engine flags via environment vars (flutter/engine#21161)
Replaces the (temporary) compile-time option to pass engine switches
with the ability to pass them temporarily at runtime via environment
variables.

This is enabled only for debug/profile to avoid potential issues with
tampering with released applicaitons, but if there is a need for that in
the future it could be added (potentially with a whitelist, as is
currently used for Dart VM flags).

Windows portion of:
https://github.com/flutter/flutter/issues/38569
https://github.com/flutter/flutter/issues/60393
2020-09-22 12:34:24 -07:00
xster
aa3ac9e9aa Enforce exclusivity for activity and fragments attached to the FlutterEngine (flutter/engine#21272) 2020-09-22 10:34:52 -07:00
Dan Field
12edb1dee9 Relax test around a11y updates (flutter/engine#21311) 2020-09-22 01:32:02 -07:00
Jason Simmons
bc82ee9267 Disconnect the view's AndroidKeyProcessor when detaching from the engine (flutter/engine#21307) 2020-09-21 17:42:02 -07:00
George Wright
8d8efa6c9d [manual roll] Roll Fuchsia Linux SDK from K2Oiy-AYh... to 2rXyLF0YK (flutter/engine#21308) 2020-09-21 16:37:02 -07:00
LongCatIsLooong
1357779b57 [iOS TextInput] Avoid Unnecessary UndateEditingClient Calls (flutter/engine#21303) 2020-09-21 15:27:02 -07:00
Chris Yang
73ae0bb94c Fix iOS platform view's mask view blocking touch events. (flutter/engine#21286) 2020-09-21 15:22:47 -07:00
George Wright
0b0fe27af8 Do not create a TestGLSurface for software-only rendering in EmbedderTest (flutter/engine#21301) 2020-09-21 15:22:03 -07:00
Jenn Magder
01d6878cc8 Dark mode friendly iOS debugging message (flutter/engine#21277) 2020-09-21 15:07:02 -07:00
xster
7b15621129 Deprecate Android v1 embedding classes (flutter/engine#20868) 2020-09-21 15:02:02 -07:00