2987 Commits

Author SHA1 Message Date
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
Hamdi Kahloun
fae92ed574 Revert "Update PlatformPluginTest.java & PlatformPlugin.java"
This reverts commit 85bfc4c5de0c4fa10b5bad6d51213cdbebb7db24.
2020-11-16 16:53:30 +01:00
Hamdi Kahloun
85bfc4c5de Update PlatformPluginTest.java & PlatformPlugin.java 2020-11-16 16:28:03 +01:00
Chris Yang
92e5a95a14
PlatformViewsController always make sure the touch events are finished (#22406) 2020-11-13 15:38:01 -08:00
Dan Field
63a6fe3cf9
Opt in fixutres (#22502) 2020-11-13 12:02:07 -08:00
Ari Weiland
ccbc2e6cf1
Fix some serious lifecycle bugs with Android embedding code (#22203) 2020-11-13 11:58:02 -08:00
Kaushik Iska
fcb64c988c
[android] Platform view creates external view embedder (#22360) 2020-11-13 05:52:41 -08:00
Kaushik Iska
38b6c22d5b
PlatformViewIOS CreateExternalViewEmbedder refactor (#22353) 2020-11-13 04:58:44 -08:00
Kaushik Iska
1ff237fdca
Reland "remove surface dependance on external view embedder (#22468)" (#22470) 2020-11-12 15:37:12 -08:00
Dan Field
d07368169e
Limit heap growth on Android (#20473)
Limit heap growth to half of totalMem by default, with the option to set it higher or lower in the AndroidManifest
2020-11-12 14:53:54 -08:00
Matej Knopp
8ceb3ed4ba
Disable synchronous resizing until a frame is produced (#22457)
Instead of synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.
2020-11-12 11:50:31 -08:00
LongCatIsLooong
778eb844d4
[Android text input] Reland #21534 (#22435) 2020-11-12 11:34:01 -08:00
George Wright
36b960e224
Add D3D9 fallback path for ANGLE and ensure fallbacks are actually attempted (#22412) 2020-11-12 10:54:02 -08:00
Emmanuel Garcia
091b6cc5b4
Fix talkback in hybrid composition while using FlutterFragmentActivity (#22429) 2020-11-12 10:30:29 -08:00
Jim Graham
69021ce130
Fix the event size parameters in the Embedder ComplexClip test (#22455) 2020-11-12 09:34:03 -08:00
Kaushik Iska
021ff04336
Reverts 2 commits that remove surface dependance on external view embedder (#22468)
* Revert "Remove GetExternalViewEmbedder from surface (#22272)"

This reverts commit 5419f70f173db1c9f2d5db4c289560e68ce9b77b.

* Revert "Rasterizer is initialized with an external view embedder (#22405)"

This reverts commit f95df42e6e3d80f17c2024e9956768be9416717f.
2020-11-12 08:41:11 -08:00
LongCatIsLooong
23b6310c52
Revert "[Android Text Input] Make the editing state listenable and allow batch edits (#21534)" (#22434) 2020-11-11 18:24:02 -08:00