2641 Commits

Author SHA1 Message Date
Niklas Schulze
846d9583c5
Windows textures: Add placeholder flutter_texture_registrar.h (#23623) 2021-01-12 13:19:02 -08:00
Chase Latta
a1e74242ff
[dart-runner] Avoid calling Destroy on nullptr (#23608) 2021-01-12 13:14:02 -08:00
Robert Ancell
5fd25a971c Only remove weak pointers that are set.
If the pointer has already been removed this generates a runtime warning.
2021-01-12 15:35:39 +13:00
Jenn Magder
affaca375c
Revert "Support Mice in iPadOS 13.4+ (#23362)" (#23610)
This reverts commit 6c80aa777913914f9753e3c4efc1c3d4aa22f7a5.
2021-01-11 18:24:45 -08:00
gaaclarke
62e2529744
Started asserting that metal gpu contexts are shared (#23539)
Started asserting that metal gpu contexts are shared, added ability
for IOSContexts to store their skia contexts so we can make the OpenGL
code work like the Metal code.
2021-01-11 16:39:37 -08:00
Greg Spencer
250dcd5287
Fix indexing error in Linux key event handling (#23598)
Fixes an indexing error in the linux key handling code.

I also found another error when checking to see if an event is re-dispatched, and some off-by-one errors in the search. Not sure what I was smoking that day, but hopefully these are all the issues.
2021-01-11 13:01:06 -08:00
George Wright
6c80aa7779
Support Mice in iPadOS 13.4+ (#23362) 2021-01-11 10:35:41 -08:00
Robert Ancell
48edbf3d1d Re-enable test 2021-01-11 11:36:40 +13:00
Robert Ancell
36fa767d4a Fix double frees in FlSettingsPlugin tests.
Fixes https://github.com/flutter/flutter/issues/73517
2021-01-11 11:36:40 +13:00
Robert Ancell
59a965eaef Remove debugging code 2021-01-11 11:36:40 +13:00
Kaushik Iska
4a40b82089
[metal] Disable image comparison for gradient_metal test (#23540)
See:  https://github.com/flutter/flutter/issues/73590
2021-01-08 17:48:10 -08:00
Jason Simmons
9370aaf548
Add a keep annotation to the ImeSyncDeferringInsetsCallback.AnimationCallback inner class (#23545)
Fixes https://github.com/flutter/flutter/issues/72787
2021-01-08 14:54:09 -08:00
Greg Spencer
9cb4d2dd24
Make pending event handling more lenient to allow out of order responses (#23504)
This PR makes the Linux key handling code a little more lenient when it comes to the order in which it receives responses to key events from the framework. I had assumed that there wasn't a case where responses could get out of order, but it seems that it is possible, given that you can mash on the keyboard and eventually get one out of order.

This changes the code so that instead of just looking at the first entry in the pending event deque, it searches the deque starting at the beginning to find the event, and remove it.
2021-01-08 10:43:59 -08:00
Michael Goderbauer
40a262b67c
Update outdated links (#23513) 2021-01-08 10:14:01 -08:00
Gary Qian
3f200606c1
Rename DynamicFeature->DeferredComponent and impl uninstall DeferredComponents (#23224) 2021-01-07 21:02:05 -08:00
Jason Simmons
5f7a12097f
Skip the FlEngineTest.SettingsPlugin test (#23516)
See https://github.com/flutter/flutter/issues/73517
2021-01-07 17:03:28 -08:00
Filip Filmar
3b3d8e67d3
[fuchsia][input] Migrate Flutter to "input3" (#23262) 2021-01-07 15:39:03 -08:00
Damian Wrobel
3a1b62b362
Fix argument specifier for g_warning() (#23138) 2021-01-07 15:34:03 -08:00
Kaushik Iska
1365c31351
[tests] Normalize SkImage before comparison. (#23489) 2021-01-07 14:47:06 -08:00
gaaclarke
ca156c5c72
started sharing GPU contexts between spawned engines (#23435)
* Lightweight flutter engines - started sharing GPU contexts between
spawned engines

* responded to feedback
2021-01-07 13:11:36 -08:00
Jason Simmons
83732f262c
Provide a runtime switch for selecting SkParagraph text layout (#23474) 2021-01-07 12:59:03 -08:00
Kaushik Iska
be8839f59e
[macos] Re-land FlutterOpenGLRenderer isolation (#22607) 2021-01-07 08:04:48 -08:00
Jason Simmons
f6b51d0c33
Call JavaVM::AttachCurrentThread only once per thread (#23188) 2021-01-06 17:44:02 -08:00
Dan Field
df27e691b3
Fix SurfaceView usage when status bar is transparent for a11y (#23457) 2021-01-06 11:53:42 -08:00
chunhtai
e682f2aba3
fixes android deeplink to push the path only (#23255) 2021-01-05 11:14:01 -08:00
Robert Ancell
90d1f05686
Implement settings channel for the Linux shell (#22486)
Implement settings channel for the Linux shell

Fixes https://github.com/flutter/flutter/issues/65591
2021-01-05 12:28:43 +13:00
Robert Ancell
02abfc9360 Add engine tests for Linux shell 2021-01-05 09:50:52 +13:00
Kaushik Iska
70f070263a
[embedder] [metal] Add support for Metal Renderer Config in the embedder API (#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
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
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
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
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
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
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