1512 Commits

Author SHA1 Message Date
Kaushik Iska
2dd184d5d5 Reland dart_aot_runner shims
This reverts commit c375655fe1042d1de9b79f348968d6e297a5c271.
2019-10-10 19:41:13 -07:00
Kaushik Iska
c375655fe1 Revert "[dart_aot_runner] Add support for generating dart_aot snapshots (#13071)" (flutter/engine#13075)
This reverts commit 61ab9f02318d90b0159e410e3f528a3a5d5fe77a.
2019-10-10 18:00:09 -07:00
Kaushik Iska
61ab9f0231 [dart_aot_runner] Add support for generating dart_aot snapshots (flutter/engine#13071)
This is part of the effort to port over dart_aot_runner
2019-10-10 17:22:11 -07:00
Chinmay Garde
51c5bb42b4 Put Metal renderer selection behind runtime flag and plist opt-in. (flutter/engine#13056) 2019-10-10 13:03:04 -07:00
Chinmay Garde
b659646ffb Allow embedders to specify arbitrary data to the isolate on launch. (flutter/engine#13047)
Since this is currently only meant to be used by the embedding internally, the setter in Objective-C is only exposed via the FlutterDartProject private class extension. Unit tests have been added to the shell_unittests harness.

Fixes https://github.com/flutter/flutter/issues/37641
2019-10-10 12:31:14 -07:00
Dan Field
80492fb4e9 Android targets create final zip artifacts (flutter/engine#13059) 2019-10-10 06:56:43 -07:00
sjindel-google
5ea9c249cd Remove use of the blobs snapshot format from unittests (flutter/engine#12563)
* Remove uses of the "blobs" snapshot format in Engine tests.

* Comments

* Rebasing against updated ELF loader API.
2019-10-10 14:03:42 +02:00
Dan Field
7fb9737129 Minimal test harness for iOS (flutter/engine#13029) 2019-10-09 21:16:11 -07:00
CloudWebRTC
2362c4e741 Add texture support for macOS shell. (flutter/engine#8507) 2019-10-09 20:35:09 -07:00
gaaclarke
d4a3cc6b67 Refactor: FlutterDartProject (flutter/engine#13006)
- Removed unused instance variable
- Explicitly listed nullability
2019-10-09 07:21:44 -07:00
Greg Spencer
cb3ae0ec59 Send AccessibilityEvent.TYPE_VIEW_FOCUSED when input focus is set. (flutter/engine#12746)
When the focus changes, we should be sending a TYPE_VIEW_FOCUSED event. This enables that.
2019-10-08 16:54:17 -07:00
Dan Field
117f6e94eb Fix for a11y crash on iOS (flutter/engine#12990) 2019-10-08 16:37:09 -07:00
Jason Simmons
4a39184fec Auto-formatter fixes for BUILD.gn files (flutter/engine#13005) 2019-10-08 15:15:47 -07:00
gaaclarke
15c78df45f Started setting our debug background task id to invalid after completion. (flutter/engine#12999) 2019-10-08 13:12:52 -07:00
Chris Yang
cc04914ab4 Add onUnregistered callback in 'Texture' and 'FlutterTexture' (flutter/engine#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
7bffe3c0a8 SkSL precompile (flutter/engine#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
b05e9e7d6a Add a unit-test to verify that root surface transformation affect platform view coordinates. (flutter/engine#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
73b60d4d7c Re-land Adding Link Semantics (flutter/engine#12972) 2019-10-08 11:27:56 -07:00
liyuqian
97da41eae7 Unblock Fuchsia roll (flutter/engine#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
0106398abd Revert "Adding Link SemanticsFlag (#12453)" (flutter/engine#12815)
This reverts commit 62e4f42e7640ee5f50fef9958b50906a5527d81a.
2019-10-04 17:06:32 -07:00
Dan Field
cbe5c07b4a unbreak unopt fuchsia (flutter/engine#12805) 2019-10-04 14:10:46 -07:00
Dan Field
066cd5c34c [flutter_runner] a11y updates, tests! (flutter/engine#12380) 2019-10-04 13:30:56 -07:00
WATER1350
bf73ca111d Fix crash in copypixelbuffer (flutter/engine#10326) 2019-10-04 13:21:17 -07:00
Kate Lovett
62e4f42e76 Adding Link SemanticsFlag (flutter/engine#12453) 2019-10-04 12:51:10 -07:00
Kaushik Iska
56b3ac4132 Prettify all CMX files (flutter/engine#12800) 2019-10-04 12:32:54 -07:00
Gary Qian
1f1ee25a47 Restart all modern Samsung keyboard IMM (flutter/engine#12780) 2019-10-04 15:14:38 -04:00
Dan Field
4d0ea3a6f0 Reland fuchsia build improvements (flutter/engine#12795) 2019-10-04 12:07:57 -07:00
Chinmay Garde
7bcb751f24 Disable EmbedderTest::CanLaunchAndShutdownMultipleTimes. (flutter/engine#12799)
Re-enabling this is tracked in https://github.com/flutter/flutter/issues/41999
2019-10-04 11:45:00 -07:00
Kaushik Iska
569e2e75ae [flutter_runner] Update the cmx files to include TZ support (flutter/engine#12798)
This is so we can connect to the timezone service.
2019-10-04 11:37:40 -07:00
Dan Field
dfa1f858cc Revert "Build AOT and test targets, generate FARs when building Fuchsia (#12761)" (flutter/engine#12781)
This reverts commit 0681026147d5cf1feb6a1746a3ccd5817c4c0c2a.
2019-10-03 17:20:21 -07:00
gaaclarke
9bc7192156 Enabled people to chose if SystemNavigator.pop is animated on iOS. (flutter/engine#12752) 2019-10-03 16:57:32 -07:00
gaaclarke
32158d169e Added some thread asserts to the code and made ios_surface_ safe since (flutter/engine#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
0681026147 Build AOT and test targets, generate FARs when building Fuchsia (flutter/engine#12761) 2019-10-03 16:10:33 -07:00
Chinmay Garde
e8bdecf486 Fix Metal builds. (flutter/engine#12777) 2019-10-03 14:42:54 -07:00
gaaclarke
602014c438 Revert "Manage resource and onscreen contexts using separate IOSGLContext objects (#12277)" (flutter/engine#12773)
This reverts commit 4d8deabab5e35dbe573bf6b736822f116a435b4c.
2019-10-03 13:25:30 -07:00
chunhtai
79ad29854f add windows embedding test (flutter/engine#12423) 2019-10-03 12:42:44 -07:00
gaaclarke
47aef1a797 Expanded channel buffer resize to method channels. (flutter/engine#12725)
* Expanded channel buffer resize to method channels.
2019-10-02 17:59:59 -07:00
Chinmay Garde
d01cde0907 Fix Metal builds by accounting for the updated SubmitFrame signature. (flutter/engine#12754) 2019-10-02 15:36:28 -07:00
Greg Spencer
63258e472e Stop setting the accessibility text if a node has SCOPES_ROUTE set. (flutter/engine#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
3c4a06ee3b Fix parameter naming in docs (flutter/engine#12732) 2019-10-02 08:59:06 -07:00
Kaushik Iska
341b81ec4d [flutter_runner] Make rd and rx uniform (flutter/engine#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
1365a37886 Reland "Add iOS platform view mutation XCUITests to the scenario app(#11652)" (flutter/engine#12707) 2019-10-02 01:51:31 +08:00
gaaclarke
d318cbd7da Resize channel buffers (flutter/engine#12402)
Made it so you can resize channel buffers by sending messages to them.
2019-10-01 10:31:25 -07:00
gaaclarke
ec73bde781 Cleanup: Turned on NS_ASSUME_NONNULL_BEGIN for FlutterViewController. (flutter/engine#12708)
Cleanup: Turned on NS_ASSUME_NONNULL_BEGIN for FlutterViewController
2019-10-01 09:55:49 -07:00
Jason Simmons
e023418f3f Check for a null input method subtype (flutter/engine#12706)
Fixes https://github.com/flutter/flutter/issues/41557
2019-10-01 09:03:47 -07:00
gaaclarke
dac372684b Cleanup: Made a macro to assert ARC is enabled. (flutter/engine#12701)
Cleanup: Made a macro to assert ARC is enabled (and its inverse).
2019-09-30 14:47:54 -07:00
Kaushik Iska
2d15e8bf6f [flutter_runner] Verified Execution for read exec on Fuchsia (flutter/engine#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
ffca51fcdd Reland "Smooth out iOS irregular input events delivery (#12280)" (flutter/engine#12385)
This reverts commit 56bb40c0179628e37ba3614534552441642c0492.

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
5302cb60b3 Add missing flag for embedder. (flutter/engine#12700)
Adding missing flag for IsFocusable that I missed in #12618
2019-09-30 11:21:01 -07:00
Luca Zuccarini
1ebef447d7 Add a method to flutter_window_controller to destroy the current window. (flutter/engine#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