2709 Commits

Author SHA1 Message Date
stuartmorgan
dda761af69 Rename Registrar to PluginRegistrar in Win/GLFW C API (flutter/engine#21058) 2020-09-09 17:15:03 -07:00
kele86838437
260a850e93 Update Androidx import (flutter/engine#19059) 2020-09-09 16:10:03 -07:00
chunhtai
803b1b09cf Fixed ios layout change to not refocus semantics object if the focus … (flutter/engine#21029)
* Fixed ios layout change to not refocus semantics object if the focus is outside of flutter

* update

* addressing comments
2020-09-09 15:39:21 -07:00
chenjianguang
38f9a5955e Fix usage of WeakPtr valid check (flutter/engine#20106) 2020-09-09 15:34:24 -07:00
Yuqian Li
9aba102005 Open a fresh dir during LoadSkSLs (flutter/engine#21050)
Fixes https://github.com/flutter/flutter/issues/65258

The following devicelab tests should pass after this patch:

- flutter_gallery_sksl_warmup__transition_perf_e2e_ios32
- flutter_gallery_sksl_warmup_ios32__transition_perf
2020-09-09 15:33:33 -07:00
linxuebin
538ae021ea Increase thread priority before engine init (flutter/engine#20922)
We get huge ANRs in not pure flutter app.
We found that 0.15% of the engine initialization took more than 10 seconds, every 10 million starts.
2020-09-09 14:07:34 -07:00
Zachary Anderson
5ef8d060bc Revert "Enable lazy-async-stacks by-default in all modes (Take 3) (#20895)" (flutter/engine#21043)
This reverts commit 4200d23617a13ae4e477483ad43493dd36e4d00b.
2020-09-09 09:25:17 -07:00
Chinmay Garde
521395b84f Avoid crashing and display error if the process cannot be prepared for JIT mode Dart VM. (flutter/engine#20980) 2020-09-08 13:41:31 -07:00
xster
baaa1a6688 Tweak the mdns error message (flutter/engine#20991) 2020-09-08 10:54:42 -07:00
Clement Skau
4200d23617 Enable lazy-async-stacks by-default in all modes (Take 3) (flutter/engine#20895)
Lazy async stacks were already enabled by-default in AOT mode in [0] - which made the
gen_snapshot invocations use "--lazy-async-stacks --no-causal-async-stacks".

This change does the same with the engine defaults, which makes this be enabled
by-default in JIT mode as well.

See go/dart-10x-faster-async for more information.

This is a re-land: A fix for what we believe to have caused the last revert has landed upstream in Dart in dart-lang/sdk@0004589

[0] flutter/flutter@3478232
2020-09-07 10:55:48 +02:00
Gary Qian
cd4ac5d0a3 [Android R] Sync keyboard animation with view insets vs Android 11/R/API 30 WindowInsetsAnimation (flutter/engine#20843) 2020-09-04 02:06:30 -07:00
xster
ed15a009fe Let FlutterActivity/Fragment/FragmentActivity have an app bundle path override instead of eager resolving during construction (flutter/engine#20769) 2020-09-03 17:31:30 -07:00
Emmanuel Garcia
5ad2cb4d55 Don't use GetTaskQueueId() in rasterizer as it breaks Fuchsia (flutter/engine#20983) 2020-09-03 16:40:01 -07:00
Jim Graham
ef54c35abc restore FML_DCHECK removed due to a code reviewing error (flutter/engine#20953) 2020-09-03 14:46:28 -07:00
Alexander Brusher
7a76ad06f7 Populates fuchsia node actions in semantics updates. (flutter/engine#20451) 2020-09-03 14:38:36 -07:00
0xZero
c70c748e0d Member variables should appear before the |WeakPtrFactory|. (flutter/engine#20899) 2020-09-03 14:34:01 -07:00
Guokai-Cheng
03d8863078 Ensure the destructor is called since it destroys the EGLSurface before creating a new onscreen surface. (flutter/engine#20916) 2020-09-03 14:32:48 -07:00
Jason Simmons
44bd4cf1d7 Log the results when ShellTest.Screenshot fails (flutter/engine#20932)
This test has been flaky on LUCI recently.

See https://github.com/flutter/flutter/issues/65026
2020-09-03 14:13:55 -07:00
gaaclarke
1302a1806a Started printing out error messages when the observatory won't be reachable because of permissions problems. (flutter/engine#20960) 2020-09-03 14:05:47 -07:00
LongCatIsLooong
6b250c5725 Fix iOS text field input keyboard flickering & crash (flutter/engine#20805) 2020-09-03 13:55:02 -07:00
Emmanuel Garcia
521827d230 Always set the callback during Rasterizer setup (flutter/engine#20976) 2020-09-03 10:48:46 -07:00
Nathan Rogers
a35a7967ea [fuchsia] Send trace events to system tracing on all configurations (flutter/engine#20974)
This change reverts https://github.com/flutter/engine/pull/15900.  The
design of the expected consumer of the original PR changed, and the
feature ended up going unused.  Since the unexpected difference in trace
event routing behavior has mostly ended up as a source of confusion,
change things back to route trace events to Fuchsia system tracing on
all configurations.
2020-09-03 10:21:36 -07:00
Emmanuel Garcia
a942137a5d Only clear GL context after changing the thread configuration (flutter/engine#20965) 2020-09-02 22:10:02 -07:00
Emmanuel Garcia
aea17076cb Clear GL context before Gr context (flutter/engine#20957) 2020-09-02 15:08:16 -07:00
Dan Field
f83e92cbaf Use hint freed specifically for image disposal (flutter/engine#20754)
* Use hint freed specifically for image disposal
2020-09-02 13:41:58 -07:00
Emmanuel Garcia
21c1d0ac9f Clear the GL context only after submitting the frame (flutter/engine#20931)
* Clear the GL context only after submitting the frame
* Fix Screenshot test
2020-09-02 08:46:11 -07:00
Gary Qian
a1755b3feb [Android R] Integrate DisplayCutouts into viewportMetrics (flutter/engine#20921) 2020-09-02 05:18:35 -07:00
Yuqian Li
19ebd61442 Revert "Create root isolate asynchronously (#20142)" (flutter/engine#20937)
This reverts commit b3bb6df94c4537240fb563c2394c18ed984a82df.
2020-09-01 22:05:53 -07:00
Jim Graham
22e1f69704 Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (flutter/engine#20936)
This reverts commit 26659fa0fd05b2f3cc3c2e530298659702e1f869.
2020-09-01 21:21:07 -07:00
Emmanuel Garcia
12b8249404 Ensure all images are closed in FlutterImageView (flutter/engine#20842) 2020-09-01 16:57:45 -07:00
Alexander Brusher
26659fa0fd Adds fuchsia node roles to accessibility bridge updates. (flutter/engine#20385) 2020-09-01 13:33:02 -07:00
chenjianguang
b3bb6df94c Create root isolate asynchronously (flutter/engine#20142)
## Description
As the related issue refer, the application may be doing too much work on its main thread even in a simple hello_world demo.
That is because the creation of `Engine` on the ui thread takes a noticeable time, and it is blocking the platform thread in order to run `Shell::Setup` synchronously.
The cost of `Engine`'s constructor is mainly about the creating of root isolate. Actually, there used to be another time-consuming process, the default font manager setup, which was resolved by https://github.com/flutter/engine/pull/18225. 
Similar to https://github.com/flutter/engine/pull/18225, this pr move the creation of root isolate out from creating `Engine`. After this action, the main thread blocking is quite an acceptable slice.

## Related Issues
https://github.com/flutter/flutter/issues/40563 could be resolved by this pr.
2020-09-01 13:31:00 -07:00
stuartmorgan
d8919860ab Default C++ wrapper templates to EncodableValue (flutter/engine#20760)
The C++ wrapper makes heavy use of templates to support arbitrary types
in the platform channel classes, but in practice EncodableValue is what
essentially all code will use. This defaults those template types to
reduce boilerplate in plugin code (e.g., allowing the use of
MethodChannel<> instead of MethodChannel<EncodableValue>).
2020-09-01 10:56:46 -07:00
Jason Simmons
4bd9085a47 Pass text input key events to the EventResponder if they do not yield characters (flutter/engine#20912)
If the InputConnectionAdaptor receives a key event that does not move
the caret or produce a text character (such as the back button), then
the event should be given to the EventResponder which will forward it
to the view.

Fixes https://github.com/flutter/flutter/issues/64864
2020-08-31 17:56:09 -07:00
Jason Simmons
5aa323a30c Reset Shell::weak_factory_gpu_ on the raster thread (flutter/engine#20869) 2020-08-31 16:03:02 -07:00
stuartmorgan
f38bc774e7 [windows] Add horizontal scroll support (flutter/engine#20668)
The embedding was only handling vertical scroll events from the OS; this
adds horizontal as well.

Fixes https://github.com/flutter/flutter/issues/60835
2020-08-31 16:01:38 -07:00
Emmanuel Garcia
6f802144be Wait for first frame before checking layer tree (flutter/engine#20910) 2020-08-31 15:03:31 -07:00
xster
7b62a6c11a Add auto plugin registration to FlutterFragmentActivity as well (flutter/engine#20865) 2020-08-31 13:43:46 -07:00
Emmanuel Garcia
2f8279900b Reland: Enable hybrid composition by default on Android (#20722) (flutter/engine#20864)
This reverts commit bb885a23e20d79c163dc884530acaafd6c311f2a.
2020-08-31 12:17:11 -07:00
Emmanuel Garcia
2308969ed6 Fix race condition (flutter/engine#20905) 2020-08-31 10:11:41 -07:00
xster
c09700b409 Add a java injector for testing (flutter/engine#20789) 2020-08-29 22:29:23 -07:00
Emmanuel Garcia
9d05be2966 Add ability to disable the raster thread merger (flutter/engine#20800) 2020-08-28 17:25:00 -07:00
Greg Spencer
408d2228fa Reland: Implement delayed event synthesis key event handling for Android (flutter/engine#20736)
This re-lands the key event synthesis implementation for Android (Original PR: #19024, Revert PR: #19956). The only difference is sending the synthesized key events to the root view instead of the current view.

Without sending it to the root view, the system doesn't have any chance of handling keys like the back button. The event will still not be sent to the framework twice, since we turn off event propagation while re-dispatching the event.
2020-08-28 14:45:38 -07:00
David Worsham
c852497059 fuchsia: create new flutter_runner render path (flutter/engine#19584) 2020-08-28 14:17:17 -07:00
William Wold
2752ef1dcd Replace FlRenderer::get_visual() with more generic FlRenderer::setup_window_attr() (flutter/engine#20833) 2020-08-28 14:31:34 +12:00
William Wold
aff51746dd Consolidate FlRenderer initialization into fl_renderer_start() (flutter/engine#20763) 2020-08-28 09:57:14 +12:00
Mehmet Fidanboylu
b237cb1c9c Reland "Pass platform configuration to Dart VM for insecure socket policy (#20733)"
This reverts commit cc5fef5f3266b0088a8ee60e85d6c16ed7748464.
2020-08-27 14:23:31 -07:00
Chris Yang
c85f437dc9 |MessageLoopImpl::FlushTasks| runs one task at a time (flutter/engine#20771) 2020-08-27 14:18:02 -07:00
Jason Simmons
7a38d174d5 Ignore calls to AccessibilityBridge listeners after release (flutter/engine#20701)
AccessibilityBridge installs various listeners for Android events
that invoke Flutter engine APIs.  These listeners are removed in
AccessibilityBridge.release.  However, in some environments there may
be deferred calls to the listener that will still execute even after
the listener has been removed.  This change sets a flag during release
and ignores any listener invocations that happen after the flag is set.

See https://github.com/flutter/flutter/issues/63555 and
https://github.com/flutter/engine/pull/17311
2020-08-27 12:24:33 -07:00
renyou
cc5fef5f32 Revert "Pass platform configuration to Dart VM for insecure socket policy (#20733)" (flutter/engine#20812)
This reverts commit 749cede9a0c9692439cd5e585c8578462d285e97.
2020-08-27 08:23:30 -07:00