1499 Commits

Author SHA1 Message Date
gaaclarke
9f650edd14
Started setting our debug background task id to invalid after completion. (#12999) 2019-10-08 13:12:52 -07:00
Chris Yang
0d59c9ec54
Add onUnregistered callback in 'Texture' and 'FlutterTexture' (#12695)
Texture unregistration is finished on the GPU thread. The FlutterTexture implementation might not know when it is finished which leads to a race condition. Adding this callback so the FlutterTexture is aware of end of the unregistration process.
2019-10-08 12:45:57 -07:00
liyuqian
df0e911c67
SkSL precompile (#12412)
For https://github.com/flutter/flutter/issues/40686

Unit tests added:
- CacheSkSLWorks
- VisitFilesCanBeCalledTwice
- CanListFilesRecursively
2019-10-08 11:51:28 -07:00
Chinmay Garde
03d1bba6d8
Add a unit-test to verify that root surface transformation affect platform view coordinates. (#12783)
See b/141980393 for details.

In the issue, the embedder (assumed to render Flutter contents of size 800 x 600 [1]) is meant to be displayed on its side. To achieve this, it specifies a root surface transformation that translates the surface by its width (or height when it held in the correct viewing position) and then rotates it counter-clockwise by 90 degrees. This test verifies that the Flutter Engine accounts for those transformations in the custom compositor platform view coodinates.

[1] The actual size is something different. 800x600 is for illustrative purposes.
2019-10-08 11:30:00 -07:00
Kate Lovett
58d7b84177
Re-land Adding Link Semantics (#12972) 2019-10-08 11:27:56 -07:00
liyuqian
b3cbc030a5
Unblock Fuchsia roll (#12977)
See https://cirrus-ci.com/task/5367628704514048 and https://github.com/flutter/engine/pull/12822
2019-10-07 11:32:35 -07:00
Kate Lovett
ac45051f2a
Revert "Adding Link SemanticsFlag (#12453)" (#12815)
This reverts commit 974ca210f5275aee0775b363e9c3416e1603cf73.
2019-10-04 17:06:32 -07:00
Dan Field
7d55166fca
unbreak unopt fuchsia (#12805) 2019-10-04 14:10:46 -07:00
Dan Field
61e6f7dce5
[flutter_runner] a11y updates, tests! (#12380) 2019-10-04 13:30:56 -07:00
WATER1350
61f058da26 Fix crash in copypixelbuffer (#10326) 2019-10-04 13:21:17 -07:00
Kate Lovett
974ca210f5
Adding Link SemanticsFlag (#12453) 2019-10-04 12:51:10 -07:00
Kaushik Iska
1d62160fdb
Prettify all CMX files (#12800) 2019-10-04 12:32:54 -07:00
Gary Qian
ecf4f464c7
Restart all modern Samsung keyboard IMM (#12780) 2019-10-04 15:14:38 -04:00
Dan Field
20ce0f6b69
Reland fuchsia build improvements (#12795) 2019-10-04 12:07:57 -07:00
Chinmay Garde
46fecaeb45
Disable EmbedderTest::CanLaunchAndShutdownMultipleTimes. (#12799)
Re-enabling this is tracked in https://github.com/flutter/flutter/issues/41999
2019-10-04 11:45:00 -07:00
Kaushik Iska
bfd7c1c571
[flutter_runner] Update the cmx files to include TZ support (#12798)
This is so we can connect to the timezone service.
2019-10-04 11:37:40 -07:00
Dan Field
2e163b2780
Revert "Build AOT and test targets, generate FARs when building Fuchsia (#12761)" (#12781)
This reverts commit f3d04a98b49364a6054a8083eaeb6342ff06d941.
2019-10-03 17:20:21 -07:00
gaaclarke
a727401947
Enabled people to chose if SystemNavigator.pop is animated on iOS. (#12752) 2019-10-03 16:57:32 -07:00
gaaclarke
362e3fe586
Added some thread asserts to the code and made ios_surface_ safe since (#12775)
* Added some thread asserts to the code and made ios_surface_ safe since
its being written and read from different threads.

* responded to chinmays feedback, added comment
2019-10-03 16:52:41 -07:00
Dan Field
f3d04a98b4
Build AOT and test targets, generate FARs when building Fuchsia (#12761) 2019-10-03 16:10:33 -07:00
Chinmay Garde
8aa47326ae
Fix Metal builds. (#12777) 2019-10-03 14:42:54 -07:00
gaaclarke
142cf001bc Revert "Manage resource and onscreen contexts using separate IOSGLContext objects (#12277)" (#12773)
This reverts commit 5a8da65592e4bdf0e833bc7bcf30b589bf63ce17.
2019-10-03 13:25:30 -07:00
chunhtai
daf1eb9a6a
add windows embedding test (#12423) 2019-10-03 12:42:44 -07:00
gaaclarke
e9c2102373
Expanded channel buffer resize to method channels. (#12725)
* Expanded channel buffer resize to method channels.
2019-10-02 17:59:59 -07:00
Chinmay Garde
c4d127e39c
Fix Metal builds by accounting for the updated SubmitFrame signature. (#12754) 2019-10-02 15:36:28 -07:00
Greg Spencer
e76089a451
Stop setting the accessibility text if a node has SCOPES_ROUTE set. (#12730)
This keeps us from setting the text on a node if it is a SCOPES_ROUTE node, and sends the "TYPE_VIEW_FOCUSED" event when we update the semantics information and a view has the input focus.
2019-10-02 10:35:28 -07:00
Jiahao
7bb1a6b0aa
Fix parameter naming in docs (#12732) 2019-10-02 08:59:06 -07:00
Kaushik Iska
7b4f7564ee
[flutter_runner] Make rd and rx uniform (#12733)
* [flutter_runner] Make rd and rx uniform

Currently we pass paths for readonly files and pass
in fds for rx. Now passing in fds everywhere.

* pass full paths
2019-10-01 19:24:19 -07:00
Chris Yang
bf620dc568
Reland "Add iOS platform view mutation XCUITests to the scenario app(#11652)" (#12707) 2019-10-02 01:51:31 +08:00
gaaclarke
f407e06970
Resize channel buffers (#12402)
Made it so you can resize channel buffers by sending messages to them.
2019-10-01 10:31:25 -07:00
gaaclarke
ddf98c0cba
Cleanup: Turned on NS_ASSUME_NONNULL_BEGIN for FlutterViewController. (#12708)
Cleanup: Turned on NS_ASSUME_NONNULL_BEGIN for FlutterViewController
2019-10-01 09:55:49 -07:00
Jason Simmons
5c428d9247 Check for a null input method subtype (#12706)
Fixes https://github.com/flutter/flutter/issues/41557
2019-10-01 09:03:47 -07:00
gaaclarke
669cbba088
Cleanup: Made a macro to assert ARC is enabled. (#12701)
Cleanup: Made a macro to assert ARC is enabled (and its inverse).
2019-09-30 14:47:54 -07:00
Kaushik Iska
c53b076673
[flutter_runner] Verified Execution for read exec on Fuchsia (#12703)
Note: `fdio_open_fd` does not default to `AT_FDCWD` so we need to
specify absolute paths.
2019-09-30 14:04:40 -07:00
liyuqian
9675ca2f6b
Reland "Smooth out iOS irregular input events delivery (#12280)" (#12385)
This reverts commit c2879cae2ee3707ad07af1118bf4862dc1d82bb7.

Additionally, we fix https://github.com/flutter/flutter/issues/40863 by adding a secondary VSYNC callback.

Unit tests are updated to provide VSYNC mocking and check the fix of https://github.com/flutter/flutter/issues/40863.

The root cause of having https://github.com/flutter/flutter/issues/40863 is the false assumption that each input event must trigger a new frame. That was true in the framework PR https://github.com/flutter/flutter/pull/36616 because the input events there are all scrolling move events. When the PR was ported to the engine, we can no longer distinguish different types of events, and tap events may no longer trigger a new frame.

Therefore, this PR directly hooks into the `VsyncWaiter` and uses its (newly added) secondary callback to dispatch the pending input event.
2019-09-30 11:25:50 -07:00
Greg Spencer
be9039e351
Add missing flag for embedder. (#12700)
Adding missing flag for IsFocusable that I missed in #12618
2019-09-30 11:21:01 -07:00
Luca Zuccarini
cd1801c121 Add a method to flutter_window_controller to destroy the current window. (#12076)
This allows the embedder to be shutdown by means other than manually closing the window (e.g. by handling a SIGINT).
2019-09-30 10:58:36 -07:00
Jason Simmons
4658ecfc3e
Migrate from fuchsia.crash.Analyzer to fuchsia.feedback.CrashReporter (#12413)
Ported from Topaz
2019-09-30 09:50:07 -07:00
Greg Spencer
05f4b33cd2
Add isFocusable to SemanticsFlag (#12618)
This adds an isFocusable to SemanticsFlag so that the framework can tell the engine what semantics nodes are allowed to be focused, which will affect what platform flags are applied to the semantics information.

This flag is not yet in use by the frame
2019-09-30 09:46:48 -07:00
liyuqian
7c3dcee2e9
Revert "[fuchsia] Wire up OpacityLayer to Scenic (#11322)" (#12610)
This reverts commit fcc4ab32301396986dd5103d6d444bff35fe0f63.

Fixes https://github.com/flutter/flutter/issues/41394 and other
related correctness issues.

TBR: @arbreng @jason-simmons @mehmetf
2019-09-27 16:50:43 -07:00
gaaclarke
3c271bb942
Started asserting the FlutterEngine is running before communicating over channels. (#12469)
Started asserting the FlutterEngine is running before communicating
over channels.  This changes a null pointer exception to an
NSException that will provide some meaningful data to clients
incorrectly using the engine in an add-to-app situations.
2019-09-27 15:18:45 -07:00
gaaclarke
57f35d2763
Split out the logic to handle status bar touches into its own function (#12587)
Split out the logic to handle status bar touches into its own function.  This should make add-to-app clients' lives easier.
2019-09-27 15:10:28 -07:00
Kaushik Iska
6fcd795b4c
[flutter_runner] Refactor thread_application pair to ActiveApplication (#12573) 2019-09-27 13:38:25 -07:00
George Wright
d1901a2d15
Reword confusing messaging surrounding unhandled exception in flutter_runner on Fuchsia (#12428)
- Don't use 'unhandled' as that implies fatality which this is not
- Don't mention shutdown because this is not necessarily an exception-after-shutdown issue

Follow-up issue filed https://github.com/flutter/flutter/issues/41506 to implement the unit test for this.
2019-09-27 12:50:20 -07:00
Jonah Williams
6f5eb1332f
Add support for JIT release mode (#12446) 2019-09-27 11:20:54 -07:00
Kaushik Iska
c25cdfee2b
Remove references to topaz (#12565)
* Add clangd directory to gitignore

* Remove references to TOPAZ_ from #ifdefs

We missed these in the migration.
2019-09-27 10:24:44 -07:00
gaaclarke
92d30c0cc8
Added a default entrypoint variable to match android syntax. (#12370)
Made creating and using a FlutterEngine a bit easier, to try to get it get it as easy to use as Android's equivalent.
* Added a default entrypoint variable.
* I added `run` to and `initWithName:` to FlutterEngine.
2019-09-26 17:11:45 -07:00
Matt Carroll
5b952f286f
Forwards Flutter View to platform views and detaches when needed. (#12359) 2019-09-26 15:34:01 -07:00
Francisco Magdaleno
a5b23d8176
Adds support for 5 mouse buttons (#12450) 2019-09-26 15:23:58 -07:00
Chinmay Garde
5b5fd7508c
Revert "Support accessibility labels on iOS switches. (#12404)" (#12466)
This reverts commit 147d0c3805499f5302f763da01fc40259b1a22ee.
2019-09-26 12:52:52 -07:00