3401 Commits

Author SHA1 Message Date
chunhtai
f64abc695e Add API to the engine to support attributed text (flutter/engine#25373) 2021-06-01 11:54:01 -07:00
gaaclarke
1881ea7655 Reland: "android platform channels: moved to direct buffers for c <-> java interop" (flutter/engine#26515) 2021-06-01 11:19:02 -07:00
Jason Simmons
c9acd920ac Add trace-skia-allowlist to the Android intent flags (flutter/engine#26454) 2021-06-01 09:59:01 -07:00
Matej Knopp
3355550ab4 MacOS: Don't remove pointer after drag if released inside window (flutter/engine#26451)
* MacOS: Don't remove pointer after drag if released inside window

Fixes https://github.com/flutter/flutter/issues/83494

* Update has_pending_exit documentation

* Do add mouse pointer if it wasn't removed.
2021-05-30 19:45:23 +02:00
Hidenori Matsubayashi
f2a5771d0a Fix: Strip option doesn't work for linux .so files (flutter/engine#26358) 2021-05-28 13:49:01 -07:00
Zachary Anderson
84c3f19ee8 Revert "android platform channels: moved to direct buffers for c <-> java interop (#26331)" (flutter/engine#26470)
This reverts commit 8137eddf08863c2bf393658a896947691327de60.
2021-05-27 19:12:55 -07:00
Jeff Ward
2438363a2e Add Float32List support to StandardMessageCodec (flutter/engine#26386) 2021-05-27 14:49:02 -07:00
Darren Chan
d7ed065392 Add todo to handle_test. (flutter/engine#26453) 2021-05-27 13:19:02 -07:00
gaaclarke
8137eddf08 android platform channels: moved to direct buffers for c <-> java interop (flutter/engine#26331) 2021-05-27 13:09:02 -07:00
Gary Qian
d3de3f1f24 Fix deferred components startup threading and improve .so search algorithm. (flutter/engine#26429) 2021-05-26 19:27:20 -07:00
chunhtai
fa0b88fcb2 Fixes iOS refuses to accept semantics rect update if UISwitch is not … (flutter/engine#26416)
* Fixes iOS refuses to accept semantics rect update if UISwitch is not in the view

* update
2021-05-26 16:29:12 -07:00
Chris Bracken
3814ea2bf6 Fix iOS key events in platform views (flutter/engine#26412) 2021-05-26 15:44:02 -07:00
Kaushik Iska
41ba3d48d1 Make resume dart microtasks static to avoid capturing vsync waiter (flutter/engine#26440)
This avoids the race where vsync waiter was shutdown before the tasks on
ui task runner got flushed.

Fixes: https://github.com/flutter/flutter/issues/82024
2021-05-26 16:52:36 -05:00
Tong Mu
00e9f108c1 Hardware Keyboard: Linux (GTK) (flutter/engine#23467)
Linux (GTK) changes for the Hardware Keyboard project.
2021-05-25 18:04:03 -07:00
Darren Chan
8f8f34ad04 Add Handle.replace(int rights). (flutter/engine#26408)
Add support for zx_handle_replace.

This is related to https://fxbug.dev/68600.

handle_test has been updated and tested in fuchsia.git locally. Additional tests are added for Handle.duplicate.
2021-05-25 19:04:33 -04:00
Darren Chan
a18e76809f Remove build timestamp from build_info.h. (flutter/engine#26403)
Remove build timestamp as it is not updating correctly and it would mark
the build as dirty, triggering a rebuild.

Bug: https://fxbug.dev/73263
2021-05-25 14:43:46 -04:00
David Worsham
efff0a7bb1 fuchsia: Fix View create vs render race (flutter/engine#26368) 2021-05-24 17:46:23 -07:00
chunhtai
d3f4069e34 Sets a11y traversal order in android accessibility bridge (flutter/engine#26335) 2021-05-24 15:34:02 -07:00
Kaushik Iska
d7774b2f1b Fix race with engine destruction in Shell (flutter/engine#26369) 2021-05-24 13:57:45 -07:00
Naud Ghebre
cf2ff1193d [vm_service] Add vm service port to inspect. (flutter/engine#26295)
fxb/75455
2021-05-24 13:39:17 -04:00
Matej Knopp
46516e5327 MacOS: Do not send key event if modifiers flags haven't changed (flutter/engine#26347)
* MacOS: Do not send key event if modifiers flags haven't changed

Fixes https://github.com/flutter/flutter/issues/77535

* Extend unit test

* Comment typo
2021-05-23 23:51:42 +02:00
Gary Qian
4ba3454b35 Handle only asset-only deferred components case (flutter/engine#26333) 2021-05-21 17:08:01 -07:00
chunhtai
70e1f8a459 prevent ios accessibility bridge from sending notification when modal (flutter/engine#26328) 2021-05-21 17:04:06 -07:00
lucasradaelli
757d7c0d03 [fuchsia][a11y] Adds inspect data to the a11y bridge. (flutter/engine#25868)
This change adds inspect data to the a11y bridge, which can be requested
via the command line.

Inspect nodes are lazy computed, meaning that they are only processed
when invoked, so no extra space is used during normal use.

Bug: fxbug.dev/75100

Test: AccessibilityBridgeTest.InspectData
2021-05-21 14:21:22 -07:00
Darren Chan
d67fdf5256 Provide the following information to the inspect tree: (flutter/engine#26179) 2021-05-21 11:09:02 -07:00
Chris Bracken
83ef606f12 [uwptool] Move Launch, Uninstall to AppStore class (flutter/engine#26315)
This refactoring moves the Application Launch and Uninstall methods to
the ApplicationStore class. This simplifies writing tests for Command
classes since the Application class is now a plain old data class, and
ApplicationStore can be replaced with a fake implementation for hermetic
testing, while I'll do in a follow-up patch.

Bug: https://github.com/flutter/flutter/issues/83072
2021-05-21 09:40:06 -07:00
Chris Bracken
2527c54071 [uwptool] Refactor command-handling to a map (flutter/engine#26309)
Extracts each of the commands (listapps, install, uninstall, launch)
into a command class that is registered at startup. This simplifies
adding further commands, and cleans up the code a bit.

This is a refactoring that introduces no changes to existing functionality.
2021-05-21 07:35:53 -07:00
Brandon DeRosier
a83c8ab61d Refactor: Group together externally-managed UIDartState. (flutter/engine#26247)
Group together externally-managed UIDartState.

It's a frequent pattern to enable access to shell resources from the
framework via UIDartState. These handles are passed through several
other objects, where they lay mostly dormant. This refactor just aims
to ease maintenance of this state.

UIDartState is essentially just an easy to extend bus for dropping
off the shell kids in UIDartState, with constructors/operators that
remove the need for providing a full initializer lists in unittests.
2021-05-20 18:01:53 -07:00
Felipe Archondo
75a3755481 Fix VsyncWaiter (flutter/engine#25551)
This PR accomplishes many things:
- Unblocks input resampling on Fuchsia
- Fixes 2 frame scheduling issues resulting in wasted work and missed frames
- Removes the now-defunct VsyncRecorder class
- Prepares the VsyncWaiter class for the Embedder API by moving all logic out of it
- Adds hundreds of lines of unittests for Fuchsia scheduling logic to validate the performance and correctness benefits
2021-05-20 15:50:58 -04:00
Emmanuel Garcia
562e87e3f4 Fix hybrid composition case and enable test (flutter/engine#26272) 2021-05-19 20:44:03 -07:00
Jason Simmons
dcb08fa9ae Capture the layer tree pipeline as a weak pointer in the OnAnimatorDraw task (flutter/engine#26210) 2021-05-19 14:39:05 -07:00
Kaushik Iska
516e15a502 Fix frame request tracing (flutter/engine#26237) 2021-05-19 10:54:02 -07:00
Jonah Williams
75017d4e26 plumb frame number through to framework (flutter/engine#26233) 2021-05-19 09:59:01 -07:00
Matej Knopp
dc1c45a5c5 FlView: Handle leave-notify-event (flutter/engine#26181)
* FlView: Handle leave-notify-event

Fixes https://github.com/flutter/flutter/issues/82648

* Fix leave notify during mouse grab

* Send kAdd pointer event on enter notify
2021-05-19 12:56:00 +02:00
Kaushik Iska
a3d8f47cd7 Add frame number to trace events so dev tools can associate the right frame (flutter/engine#26205) 2021-05-18 14:58:44 -07:00
David Worsham
9061c700c6 fuchsia: Fix occlusion_hint handling (flutter/engine#26208) 2021-05-18 09:15:50 -07:00
Brandon DeRosier
b9982cdec7 Add image generator registry (flutter/engine#25987)
Add image generator protocol and priority registry.

The protocol supports multi-frame images as well as optional
subpixel/downsampled decoding.
2021-05-17 12:12:46 -07:00
David Worsham
19c353f785 fuchsia: Improve checking/logging for composition (flutter/engine#26166) 2021-05-17 09:45:02 -07:00
Chris Bracken
fcbf9016d5 Adds uwptool install command (flutter/engine#26183)
Installs the package pointed to by a URI, as well as its dependencies.
2021-05-16 11:15:48 -07:00
Emmanuel Garcia
23f32a5cee Fix composition when multiple platform views and layers are combined (flutter/engine#26158) 2021-05-14 15:19:01 -07:00
gaaclarke
3f52b2c153 eliminated the copies when sending data to and from objc (flutter/engine#25988) 2021-05-14 15:04:02 -07:00
Chris Bracken
776cec5c28 Revert "Fix composition when multiple platform views and layers are combined (#25900)" (flutter/engine#26142)
This appears to be reliably crashing the devicelab
linux_android_view_scroll_perf__timeline_summary test.

Example crashes:
* https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20android_view_scroll_perf__timeline_summary/1369/overview
* https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20android_view_scroll_perf__timeline_summary/1370/overview

This reverts commit e222385589b62add0b88efbe5d51858f96419c4d.
2021-05-13 18:50:54 -07:00
James Clarke
dc724ea5d9 Windows: UWP ViewController accepts a CoreApplicationView and exposes to plugins (flutter/engine#25879) 2021-05-13 17:18:23 -07:00
Robert Ancell
88f7648d42 Fix GIR transfer annotation 2021-05-14 11:03:33 +12:00
chandarrengoog
4d05199f5b Add support for System.channelWriteEtc and System.channelQueryAndReadEtc. (flutter/engine#26050) 2021-05-13 15:34:02 -07:00
Felipe Archondo
2043d0839a [fuchsia] rename SessionConnection to DefaultSessionConnection (flutter/engine#26104)
In preparation for #25551, rename SessionConnection to
DefaultSessionConnection. The plan is to have SessionConnection be an
interface we can create a fake of for testing purposes.
2021-05-13 17:59:16 -04:00
Yuanyao Zhong
93bb74ba46 Add missing semantics flag for embedder (flutter/engine#25932)
Add in flags kFlutterSemanticsFlagIsSlider and kFlutterSemanticsFlagIsKeyboardKey
from SemanticsFlags.
2021-05-13 14:37:56 -07:00
Emmanuel Garcia
e222385589 Fix composition when multiple platform views and layers are combined (flutter/engine#25900) 2021-05-13 11:44:01 -07:00
Chris Bracken
b1600cc95f [uwptool] Add uninstall command (flutter/engine#26122)
Adds an uninstall command that uninstalls the specified application by
its package family name.

This currently attempts to remove for all users, but in future, we may
want to restrict install and uninstall to the current user only.

Also renames ApplicationStore::GetInstalledApplications() to
ApplicationStore::GetApps()
2021-05-13 11:28:20 -07:00
gaaclarke
4d98fd9744 Switch PlatformMessages to hold data in Mappings (flutter/engine#25867) 2021-05-13 10:28:25 -07:00