3003 Commits

Author SHA1 Message Date
James Clarke
3295bebabd
Windows: Add UWP target stub [Flutter#14697] (#21754) 2020-12-06 11:03:02 -08:00
mikerreed
59b4baea51
Update sites to use new SkMatrix factories (#22871)
SkMatrix is deprecating some of its factories. This must moves flutter tests to the new ones.

No expected change in runtime.
2020-12-04 12:05:42 -05:00
xster
6ab050b861
Handle null platform plugin delegate for v1 embedding (#22853) 2020-12-03 16:38:03 -08:00
mikerreed
6ae2594b97
opt into new Skia APIs (#22845) 2020-12-03 15:28:02 -08:00
Chris Bracken
14a6fd97ca
Fix NPE when platform plugin delegate is null (#22852)
Adds a null check before dereferencing in
PlatformPlugin.popSystemNavigator. platformPluginDelegate is allowed to
be null, as it is in the PlatformPlugin(Activity, PlatformChannel)
constructor.
2020-12-03 15:22:34 -08:00
zljj0818
48befc59d4
More rename from GPU thread to raster thread (#22819) 2020-12-03 15:03:02 -08:00
Greg Spencer
bdadaad20d
Add delayed event delivery for Linux. (#22577)
This changes the text handling so that keyboard events are sent to the framework first for handling, and then passed to the text input plugin, so that the framework has a chance to handle keys before they get given to the text field.

This is complicated by the async nature of the interaction with the framework, since GTK wants a synchronous response. So, in this change, I always tell GTK that the event was handled, and if it wasn't, then I re-dispatch the event once we know one way or the other.
2020-12-03 15:00:37 -08:00
Richard Cai
7d32cead6f
(MacOS) Add FlutterGLCompositor with support for rendering multiple layers (#22782)
* Create FlutterGLCompositor.
* Add additional state to manage frame status and CALayers to FlutterGLCompositor

FlutterGLCompositor supports rendering multiple layers. The first layer is rendered using the FlutterView. Additional CALayers are created if there is more than one layer.

Platform view support will be added in following PR.
2020-12-03 11:57:15 -05:00
Greg Spencer
78b567f7d5
Reland: "Fix race condition in key event handling on Android (#22658)" (#22834) 2020-12-03 08:53:02 -08:00
Gary Qian
fcbfa9f527
Split AOT Engine Runtime (#22624) 2020-12-02 13:28:01 -08:00
Jason Simmons
1358fda357
Generate Maven metadata files for engine artifacts (#22685) 2020-12-02 12:43:01 -08:00
Greg Spencer
6c8342f76a
Revert "Fix race condition in key event handling on Android (#22658)" (#22823)
This reverts commit 40fa345 (#22658) because it breaks some Google tests. Will investigate and re-land.
2020-12-02 12:03:48 -08:00
Kaushik Iska
eb6eabcb51
Reland "Introduce a delegate class for gpu metal rendering (#22611)" (#22777)
This reverts commit 0d71d27aa7d9058841bbba104021927c7f17b7ce.
2020-12-02 13:04:10 -06:00
Kaushik Iska
14cb0661e2
[embedder] Compositor can specify that no backing stores be cached (#22780) 2020-12-02 13:01:46 -06:00
Jonah Williams
d85cb10707
add trace kernel flag to allowlist (#22812) 2020-12-02 09:49:04 -08:00
chunhtai
7d7a260198
Add static text trait to plain semantics object with label in iOS (#22811)
* Add static text trait to plain semantics object with label in iOS

* update

* format
2020-12-02 09:32:35 -08:00
Greg Spencer
40fa345c02
Fix race condition in key event handling on Android (#22658)
This fixes a problem in Android key event handling where, because I was only using a single bool to indicate that we were re-dispatching, there was a race condition when multiple keys were pending (sent to the framework, awaiting responses).

This fixes that by switching to a mechanism that uses the event itself to tell if it was redispatched.

In doing this, I realized that because key events can come from either the dispatchEvent call, or through the InputConnectionAdaptor, I needed to handle both routes properly so that the events would all be handled, and all go through the same mechanism on the framework side.
2020-12-01 09:42:38 -08:00
Gary Qian
a4ce848dfb
Add FlutterPlayStoreSplitApplication for simpler opt in to Split AOT (#22752) 2020-11-30 19:27:44 -08:00
chandarrengoog
bcc8832c1f
Cleanup dart_runner examples & tests. (#22769) 2020-11-30 12:48:02 -08:00
Kaushik Iska
adb3312f0c
Revert "Introduce a delegate class for gpu metal rendering (#22611)" (#22775)
This reverts commit 5bf6533538e034bbfecd39680186e559c8a90da3.
2020-11-30 14:47:01 -06:00
xster
a35e3fe4a3
Let FlutterFragment not pop the whole activity by default when more fragments are in the activity (#22692) 2020-11-30 12:43:03 -08:00
Jason Simmons
1c2a6bd0a7
Fix the unchecked conversion warning for searchPaths in PlayStoreDynamicFeatureManager (#22654)
Also use the diamond operator throughout this class.
2020-11-30 12:23:09 -08:00
David Worsham
7b5f79f1a1
fuchsia: Ensure full-screen input interceptor (#22687) 2020-11-25 19:10:29 -08:00
Kaushik Iska
5bf6533538
Introduce a delegate class for gpu metal rendering (#22611) 2020-11-25 15:46:38 -06:00
Andy Weiss
176a2c0208
[embedder][glfw] Add support for locales to glfw shell (#22657)
The other linux shell (and all the other embedding) have support for
getting the locales from the system and sending them over the
flutter/localization channel. The glfw shell does not have that which is
causing a crash on an assert now that Locale is no longer nullable
in Platform.

This adds a similar approach to what is going on over in the other linux
shell.
2020-11-24 14:23:12 -08:00
Brian Osman
298bf68b10
Fix use of uninitialized memory in animator (#22714)
* Fix use of uninitialized memory in animator

Discovered via MSAN build of embedder_unittests
2020-11-24 14:51:31 -05:00
stuartmorgan
9f207a3fc6
Add initial settings message to Windows embedding (#22323)
Sends the flutter/settings update message to the engine after starting
it. For now values other than 24-hour time preference are hard-coded,
but dark mode support can be added later.

Fixes https://github.com/flutter/flutter/issues/65590
2020-11-23 15:58:45 -08:00
Chris Yang
054bfef24b
Fix shell_unittests flakes related to external_view_embedder (#22683) 2020-11-23 15:48:03 -08:00
Richard Cai
07af6a92d6
Create a wrapper for IOSurface to handle creation and (#22663)
binding IOSurfaces to textures / framebuffers.
2020-11-23 15:32:07 -05:00
Richard Cai
aafa661103
Create FlutterFrameBufferProvider class. (#22656) 2020-11-21 08:43:04 -08:00
Jason Simmons
26c4ba074d
Make AndroidContext::IsValid virtual (#22665)
Fixes https://github.com/flutter/flutter/issues/70938
2020-11-21 07:51:39 -08:00
Gary Qian
c0b08e8e06
Fix java warnings for unchecked conversions in PlayStoreDynamicFeatureManager (#22628) 2020-11-20 13:37:26 -08:00
Greg Spencer
b4d4e30c0a
Fix double delete on backspace on Android (#22626) 2020-11-20 10:43:02 -08:00
freiling
f2803ac017
[fuchsia] shader warmup fixes (#22439)
This change contains a couple of changes that should have been in
github.com/flutter/engine/commit/3105db8ee856ffef281d018774d21a6164c81236
but fell through the cracks

First one lifts the initialization of the flutter::RunConfiguration so that
the asset manager gets set on the persistant cache before the shader
warmup happens. I'm not sure how this didnt end up in the first PR I
think it got mangled during merge conflict resolution. no test coverage
for that code because its in the middle of a 400 line constructor

Second one fixes a race condition that the tests dont catch because the
tests are single threaded. This change restructures the test that missed
this bug so that it would have caught that bug and will catch comparable
bugs.
2020-11-19 19:46:13 -08:00
Gary Qian
53fc019aab
Split AOT Android Embedder and shell (#22179) 2020-11-19 17:22:26 -08:00
Ari Weiland
a0da844845
Update the tag for FlutterEngineConnectionRegistry to be 23 characters. (#22610) 2020-11-19 12:06:56 -08:00
Emmanuel Garcia
f7383c4350
Replace support libraries for AndroidX (#22598) 2020-11-19 10:08:02 -08:00
Chris Yang
74d40c101f
PlatformViewsController: clear composition_order_ in the beginning of each frame. (#22574) 2020-11-19 09:53:03 -08:00
Gary Qian
139fc64129
Rename padding->viewPadding to match framework naming conventions (#22599) 2020-11-19 09:50:51 -08:00
Kaushik Iska
be7f80efc0
[macOS] Revert breaking change to FlutterEngine public API (#22592) 2020-11-19 11:45:31 -06:00
David Worsham
4a5cf14d6f
fuchsia: Clamp compositor surface size (#22593) 2020-11-18 15:46:21 -08:00
Wu Zhong
cfdcfca152
[iOS] Fix platfotm view called multiple times (#19292) 2020-11-18 11:43:02 -08:00
Greg Spencer
4b859cee93
Fix typos and fix some env var state leakage in tests (#22576)
This just fixes some typos, and a small state leak in some of the tests that set env variables.
2020-11-17 21:51:37 -08:00
gaaclarke
1c3bc02649
started providing the GPU sync switch to external view embedders (#22302) 2020-11-17 18:43:01 -08:00
Kaushik Iska
be5cf151f7
[macOS] Move the glContext generation to FlutterOpenGLRenderer (#22572) 2020-11-17 15:08:01 -08:00
Kaushik Iska
94e217bcf6
[macOS] Isolate openGL rendering to FlutterOpenGLRenderer (#22569) 2020-11-17 15:31:38 -06:00
Chris Yang
2c2e3a2885
re-enable skipandsubmitframe (#22546) 2020-11-17 09:53:01 -08:00
Jason Simmons
635df89760
Make the AndroidContext superclass destructor virtual (#22555)
Also remove an obsolete external_view_embedder reference from
AndroidSurfaceFactoryImpl.

Fixes https://github.com/flutter/flutter/issues/70621
2020-11-16 17:46:52 -06:00
Jenn Magder
0abcc93eb3
Add xcframework to ios out (#22506) 2020-11-16 13:58:44 -08:00
Hamdi Kahloun
0ce1137b73
[Android] Add systemNavigationBarDividerColor (#22538) 2020-11-16 10:48:02 -08:00