1914 Commits

Author SHA1 Message Date
Chinmay Garde
95297dba87 Revert "Upgrade compiler to Clang 10. (#11256)" (flutter/engine#13017)
This reverts commit 655c98543235dd9452a304dc035d3e39990ebc2a.
2019-10-08 18:23:59 -07:00
Chinmay Garde
655c985432 Upgrade compiler to Clang 10. (flutter/engine#11256) 2019-10-08 17:45:30 -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
Ben Konyi
5c9fdc84d4 Unblock SIGPROF on flutter_tester start (flutter/engine#12813)
Fixes https://github.com/flutter/flutter/issues/35140
2019-10-08 15:13:08 -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
Jason Simmons
08ca30ec00 Migrate from fuchsia.crash.Analyzer to fuchsia.feedback.CrashReporter (flutter/engine#12413)
Ported from Topaz
2019-09-30 09:50:07 -07:00
Greg Spencer
b174801460 Add isFocusable to SemanticsFlag (flutter/engine#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
2778d3bb20 Revert "[fuchsia] Wire up OpacityLayer to Scenic (#11322)" (flutter/engine#12610)
This reverts commit 639cc113f0b2ccf9fcf69ded7960d41d0b611f80.

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
2aea717b71 Started asserting the FlutterEngine is running before communicating over channels. (flutter/engine#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
750f2e5bef Split out the logic to handle status bar touches into its own function (flutter/engine#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
ba2cd2fbed [flutter_runner] Refactor thread_application pair to ActiveApplication (flutter/engine#12573) 2019-09-27 13:38:25 -07:00
George Wright
c24109d884 Reword confusing messaging surrounding unhandled exception in flutter_runner on Fuchsia (flutter/engine#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