3042 Commits

Author SHA1 Message Date
David Worsham
b304148d46
fuchsia: Shutdown Dart VM properly (#23243) 2020-12-28 18:16:27 -08:00
Gary Qian
1c975f1e7c
AssetResolver updating in AssetManager for Dynamic features (#23130) 2020-12-23 17:39:55 -08:00
Dan Field
5a2244c581
Reland path volatility tracker, disabling it if deterministic rendering is requested (#23226)
* Reland path volatility tracker (#23063)" (#23220)

This reverts commit fceef3aaa9d156e8ec3f4a079c142921882f70d8.

* allow disabling based on whether deterministic rendering is needed
2020-12-22 08:25:20 -08:00
Dan Field
fceef3aaa9
Revert "Reland path volatility tracker (#23063)" (#23220)
This reverts commit 205d2b8e188be518c313c9b537429b566d36fa35.
2020-12-21 13:53:18 -08:00
Jenn Magder
d0c504751e
Load App.framework in macOS app (#23221) 2020-12-21 13:51:58 -08:00
Brian Salomon
3a58179d6f
Update ios to use new YUVA texture SkImage factory (#23153) 2020-12-21 15:55:05 -05:00
Zachary Anderson
1be6f414e7
Manual Dart SDK roll (#23165) 2020-12-17 21:42:21 -08:00
Zachary Anderson
de1de9d44f
Disable FlutterPluginAppLifeCycleDelegateTest testWillResignActive (#23166) 2020-12-17 20:34:08 -08:00
Chris Yang
a8c360dc24
Update FlutterPlatformViewsTests (#23158) 2020-12-17 17:34:02 -08:00
Greg Spencer
418cc488e9
Fix macOS crash when modifier keys pressed. (#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
05704d3123
Use include for C/C++ headers in darwin/macos (#23035) 2020-12-17 14:54:02 -08:00
Jody Sankey
6e54f0d2df
[fuchsia] Add wrapper for zx_clock_get_monotonic. (#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
76310c4264
Add missing sdk constriant in pubspec.yaml files. (#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
Zachary Anderson
51c9ae9566
Add --strict_null_safety_checks to the Dart flag allowlist (#23144) 2020-12-17 09:44:00 -08:00
gaaclarke
78657edbb5
Added golden test to make sure that spawn engines work. (#23066) 2020-12-17 09:32:41 -08:00
Tamir Duberstein
6b4d4a39df
[fuchsia] Remove fuchsia.netstack.Netstack (#23082) 2020-12-15 09:48:01 -08:00
gaaclarke
9643c9d110
Started shutting down the sampler when it gets deleted (#23012) 2020-12-14 17:59:13 -08:00
Dan Field
205d2b8e18
Reland path volatility tracker (#23063)
* Revert "Revert "Set SkPath::setIsVolatile based on whether the path survives at least two frames (#22620)" (#23044)"

This reverts commit 4f914253bd7cd2a5cca3fd97213df37494e9bf37.

* Fix tracing
2020-12-14 17:21:55 -08:00
gaaclarke
f37c8c5796
Implemented FlutterEngineGroup and Spawn API. (#22975) 2020-12-14 17:07:44 -08:00
Gary Qian
056b8be933
DynamicFeatureChannel MethodChannel and Install state tracking (#22833) 2020-12-14 15:43:56 -08:00
freiling
bbed7c6ab8
warmup memory reland (#23009) 2020-12-14 13:18:02 -08:00
Jenn Magder
2bc94c4013
Revert "Load iOS dart bundle by URL fallback (#22997)" (#23054)
This reverts commit 9df2157676abbdfbd3303327b59b1492a5d5769a.
2020-12-14 13:12:25 -08:00
Dan Field
4f914253bd
Revert "Set SkPath::setIsVolatile based on whether the path survives at least two frames (#22620)" (#23044)
This reverts commit 2efc7c10aa12005010c837a1023024bb26bee143.
2020-12-11 15:39:24 -08:00
Greg Spencer
21691f1ebb
Enable delayed event delivery for macOS (#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
54aaac815f
Started tearing down the mock engine in tearDown in FlutterViewControllerTest (#23037) 2020-12-11 14:07:47 -08:00
gaaclarke
1b0dc61ef0
Stopped mocking the a flutter engine to make sure we delete the (#23013)
FlutterViewController.
2020-12-11 09:40:07 -08:00
Robert Ancell
6678efaacf Implement SystemSound.play 2020-12-11 13:38:47 +13:00
freiling
164696619b
Revert "Freiling warmup memory (#22984)" (#23007)
This reverts commit 062cbd8cc8026ac8cdda48a29dc60e50535877b5.
2020-12-10 15:35:46 -08:00
freiling
062cbd8cc8
Freiling warmup memory (#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
9df2157676
Load iOS dart bundle by URL fallback (#22997) 2020-12-10 14:43:02 -08:00
Dan Field
2efc7c10aa
Set SkPath::setIsVolatile based on whether the path survives at least two frames (#22620)
This patch defaults the volatility bit on SkPaths to false, and then flips it to true if the path survives at least two frames.
2020-12-10 13:57:23 -08:00
Chase Latta
96927bb756
add ffi_struct_patch.dart to libraries.yaml (#23000) 2020-12-10 13:32:49 -08:00
Jenn Magder
3b9937a7f1
Load macOS dart bundle by URL fallback (#22979) 2020-12-10 12:50:58 -08:00
Robert Ancell
4338849250 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
8d4b7f3a68
Add split AOT loading unit failure/error code path (#22857) 2020-12-08 22:58:01 -08:00
Jason Simmons
bf6dc49c14
Move the WindowInsetsAnimation.Callback implementation to an inner class to avoid Android class loader warnings (#22916) 2020-12-08 12:38:02 -08:00
Robert Ancell
69651402eb
Stop potential lockup due to GHashTable being modified when cleared. (#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
5db07805d4
Enable clipRRect for android platform view hybrid composition (#21817) 2020-12-08 09:13:02 -08:00
ftsui
a26e80c931
Allow the root layout to be overriden. (#22887)
a
2020-12-07 14:15:45 -08:00
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