2614 Commits

Author SHA1 Message Date
Kaushik Iska
eb3ab64883 [embedder] [metal] Add support for Metal Renderer Config in the embedder API (flutter/engine#22854)
This change adds a FlutterMetalRendererConfig that lets embedders
specify metal as rendering api.

Also adds a test that validates rendering a gradient using metal.
2021-01-01 20:39:36 -08:00
David Worsham
61b749c7fd fuchsia: Shutdown Dart VM properly (flutter/engine#23243) 2020-12-28 18:16:27 -08:00
Gary Qian
2bfbb4197c AssetResolver updating in AssetManager for Dynamic features (flutter/engine#23130) 2020-12-23 17:39:55 -08:00
Jenn Magder
4942e7faad Load App.framework in macOS app (flutter/engine#23221) 2020-12-21 13:51:58 -08:00
Brian Salomon
dc25ace136 Update ios to use new YUVA texture SkImage factory (flutter/engine#23153) 2020-12-21 15:55:05 -05:00
Zachary Anderson
befaa820f3 Disable FlutterPluginAppLifeCycleDelegateTest testWillResignActive (flutter/engine#23166) 2020-12-17 20:34:08 -08:00
Chris Yang
3eea204d94 Update FlutterPlatformViewsTests (flutter/engine#23158) 2020-12-17 17:34:02 -08:00
Greg Spencer
3384cb61ba Fix macOS crash when modifier keys pressed. (flutter/engine#23154)
This fixes a problem with the macOS key handling where a flagsChanged event is being sent to a keyDown selector.
2020-12-17 16:07:07 -08:00
Andy Weiss
e1e83358f3 Use include for C/C++ headers in darwin/macos (flutter/engine#23035) 2020-12-17 14:54:02 -08:00
Jody Sankey
90e13c14a0 [fuchsia] Add wrapper for zx_clock_get_monotonic. (flutter/engine#23128)
Bug: https://github.com/flutter/flutter/issues/72321

Co-authored-by: Jody Sankey <jsankey@google.com>
2020-12-17 10:55:29 -08:00
Siva
ae14ea248a Add missing sdk constriant in pubspec.yaml files. (flutter/engine#23124)
* Add missing sdk constriants in pubspec.yaml files.

* Update tools/android_lint/pubspec.yaml

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2020-12-17 09:45:26 -08:00
gaaclarke
18f46f0722 Added golden test to make sure that spawn engines work. (flutter/engine#23066) 2020-12-17 09:32:41 -08:00
Tamir Duberstein
6f70c0c330 [fuchsia] Remove fuchsia.netstack.Netstack (flutter/engine#23082) 2020-12-15 09:48:01 -08:00
gaaclarke
3d4aa5548a Implemented FlutterEngineGroup and Spawn API. (flutter/engine#22975) 2020-12-14 17:07:44 -08:00
Gary Qian
d337acaa97 DynamicFeatureChannel MethodChannel and Install state tracking (flutter/engine#22833) 2020-12-14 15:43:56 -08:00
freiling
7307b7759a warmup memory reland (flutter/engine#23009) 2020-12-14 13:18:02 -08:00
Jenn Magder
8b68269f75 Revert "Load iOS dart bundle by URL fallback (#22997)" (flutter/engine#23054)
This reverts commit 25c323c98207bd493892dc9f24658cac8039e835.
2020-12-14 13:12:25 -08:00
Greg Spencer
f485eaf7a1 Enable delayed event delivery for macOS (flutter/engine#21231)
This enables delayed event delivery for macOS, so that shortcuts can handle keys that are headed for a text field and intercept them. This fixes the problem where pressing TAB (or other shortcuts) in a text field also inserts a tab character into the text field.
2020-12-11 15:21:39 -08:00
gaaclarke
7c4ba383f8 Started tearing down the mock engine in tearDown in FlutterViewControllerTest (flutter/engine#23037) 2020-12-11 14:07:47 -08:00
gaaclarke
ace14e2877 Stopped mocking the a flutter engine to make sure we delete the (flutter/engine#23013)
FlutterViewController.
2020-12-11 09:40:07 -08:00
Robert Ancell
6fc7c5e846 Implement SystemSound.play 2020-12-11 13:38:47 +13:00
freiling
e9e4a3d079 Revert "Freiling warmup memory (#22984)" (flutter/engine#23007)
This reverts commit 879027fc8f4d8763dc6ee0d4803e30237b7c3cb3.
2020-12-10 15:35:46 -08:00
freiling
879027fc8f Freiling warmup memory (flutter/engine#22984)
* [fuchsia] enable boot time shader warmup even when LEGACY_FUCHSIA_EMBEDDER is defined

* [fuchsia] decouple shader warmup from embedder api

* [fuchsia] change warmup context flush() to flushAndSubmit() to reduce memory footprint of warmup

* [fuchsia] Fix GPU resource lifecycle issue with shader warmup

This fixes an issue with the shader warmup where gpu resources could end
up deleted before the gpu work that needed them was complete, leading to
GPU page faults. This was because although the sk_sp<SkSurface> will normally
keep resources alive throughout its lifetime, the SurfaceProducerSurface will
call VkDestroyMemory on the memory backing the SkSurface when it is deleted,
even if the SkSurface wrapping that VkMemory is still alive.

This change also deletes some related but unused code from
CompositorContext that I noticed while refactoring.
2020-12-10 15:27:44 -08:00
Jenn Magder
25c323c982 Load iOS dart bundle by URL fallback (flutter/engine#22997) 2020-12-10 14:43:02 -08:00
Chase Latta
b2f8531baf add ffi_struct_patch.dart to libraries.yaml (flutter/engine#23000) 2020-12-10 13:32:49 -08:00
Jenn Magder
99bfdc65ed Load macOS dart bundle by URL fallback (flutter/engine#22979) 2020-12-10 12:50:58 -08:00
Robert Ancell
f128a93e70 Replace g_object_weak_ref with g_object_add_weak_pointer
In these cases it is simpler to use the latter. Newer code is using this method.
2020-12-11 09:07:26 +13:00
Gary Qian
19afd06afc Add split AOT loading unit failure/error code path (flutter/engine#22857) 2020-12-08 22:58:01 -08:00
Jason Simmons
5c65e278dd Move the WindowInsetsAnimation.Callback implementation to an inner class to avoid Android class loader warnings (flutter/engine#22916) 2020-12-08 12:38:02 -08:00
Robert Ancell
516165af02 Stop potential lockup due to GHashTable being modified when cleared. (flutter/engine#22917)
This doesn't seem to be currently occuring, but I triggered such a lockup
when modifying other code.
2020-12-09 07:26:35 +13:00
Chris Yang
3dfa731239 Enable clipRRect for android platform view hybrid composition (flutter/engine#21817) 2020-12-08 09:13:02 -08:00
ftsui
9b308bf473 Allow the root layout to be overriden. (flutter/engine#22887)
a
2020-12-07 14:15:45 -08:00
James Clarke
bf3c427990 Windows: Add UWP target stub [Flutter#14697] (flutter/engine#21754) 2020-12-06 11:03:02 -08:00
mikerreed
f5cb178122 Update sites to use new SkMatrix factories (flutter/engine#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
7d33d45094 Handle null platform plugin delegate for v1 embedding (flutter/engine#22853) 2020-12-03 16:38:03 -08:00
mikerreed
37b2722631 opt into new Skia APIs (flutter/engine#22845) 2020-12-03 15:28:02 -08:00
Chris Bracken
d7804003d4 Fix NPE when platform plugin delegate is null (flutter/engine#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
0ef14f3ca3 More rename from GPU thread to raster thread (flutter/engine#22819) 2020-12-03 15:03:02 -08:00
Greg Spencer
49935d5547 Add delayed event delivery for Linux. (flutter/engine#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
cb35e23e34 (MacOS) Add FlutterGLCompositor with support for rendering multiple layers (flutter/engine#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
7e51be2917 Reland: "Fix race condition in key event handling on Android (#22658)" (flutter/engine#22834) 2020-12-03 08:53:02 -08:00
Gary Qian
9352ed557e Split AOT Engine Runtime (flutter/engine#22624) 2020-12-02 13:28:01 -08:00
Jason Simmons
111a924c83 Generate Maven metadata files for engine artifacts (flutter/engine#22685) 2020-12-02 12:43:01 -08:00
Greg Spencer
5e89debe49 Revert "Fix race condition in key event handling on Android (#22658)" (flutter/engine#22823)
This reverts commit dee9413 (#22658) because it breaks some Google tests. Will investigate and re-land.
2020-12-02 12:03:48 -08:00
Kaushik Iska
b6daee84ec Reland "Introduce a delegate class for gpu metal rendering (#22611)" (flutter/engine#22777)
This reverts commit 0d71d27aa7d9058841bbba104021927c7f17b7ce.
2020-12-02 13:04:10 -06:00
Kaushik Iska
9d46f7efef [embedder] Compositor can specify that no backing stores be cached (flutter/engine#22780) 2020-12-02 13:01:46 -06:00
chunhtai
7c9c91cf02 Add static text trait to plain semantics object with label in iOS (flutter/engine#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
dee94135d4 Fix race condition in key event handling on Android (flutter/engine#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
05927cf60d Add FlutterPlayStoreSplitApplication for simpler opt in to Split AOT (flutter/engine#22752) 2020-11-30 19:27:44 -08:00
chandarrengoog
ad017544f3 Cleanup dart_runner examples & tests. (flutter/engine#22769) 2020-11-30 12:48:02 -08:00