11191 Commits

Author SHA1 Message Date
Greg Spencer
afeb9b27f0 Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (flutter/engine#21163)
This switches from using dispatchKeyEvent to using dispatchKeyEventPreIme so that keys can be intercepted before they reach the IME and be handled by the framework.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends the to Flutter before sending them to the IME (which it now only does if they are not handled by the framework).

This fixes the problem where pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent.
2020-09-29 12:46:29 -07:00
skia-flutter-autoroll
452891b651 Roll Skia from 4b6f37d90277 to 0b0fb4d50b75 (2 revisions) (flutter/engine#21487) 2020-09-29 12:22:01 -07:00
Yegor
a347148d5a fix EnginePicture.toImage; implement rawRgba toByteData; add test (flutter/engine#21370) 2020-09-29 12:17:03 -07:00
skia-flutter-autoroll
ce90c2618e Roll Skia from c73bff39bd21 to 4b6f37d90277 (1 revision) (flutter/engine#21485) 2020-09-29 10:32:02 -07:00
lucasradaelli
ea1173225e [fuchsia][a11y] Don't populate hidden state. (flutter/engine#21484) 2020-09-29 10:07:01 -07:00
bungeman
fd93916c27 Replace kLegacyFontHost_InitType with kUnknown_SkPixelGeometry. (flutter/engine#21474)
Skia is removing the deprecated legacy display setting globals and
associated kLegacyFontHost_InitType. This change replaces all such uses
with default surface properties with no special flags and an unknown
pixel geometry. Flutter never set the associated globals, leaving them
with their initial default values, which were no special flags and
horizontal RGB pixel geometry. The values used here are different but
this change should make no difference as Flutter never mentions
SkFont::kSubpixelAntiAlias to take advantage of the pixel geometry.
2020-09-29 12:46:08 -04:00
stuartmorgan
fd8683ab35 [macos] Allow engine flags via environment vars (flutter/engine#21468)
Replaces the (temporary) compile-time option to pass engine switches
with the ability to pass them temporarily at runtime via environment
variables. This moves the recently-added code for doing this on Windows
to a shared location for use by all desktop embeddings.

This is enabled only for debug/profile to avoid potential issues with
tampering with released applications, but if there is a need for that in
the future it could be added (potentially with a whitelist, as is
currently used for Dart VM flags).

Temporarily adds a way to enable mirrors as a compile time option,
as is already provided in the Linux embedding, to provide a migration
path for the one remaining known need for compile-time options
that has been raised in flutter/flutter#38569.
2020-09-29 09:36:30 -07:00
skia-flutter-autoroll
d0768260c8 Roll Skia from 842805ced156 to c73bff39bd21 (1 revision) (flutter/engine#21483) 2020-09-29 09:12:02 -07:00
skia-flutter-autoroll
9930c696d0 Roll Skia from 01bbe189b0d0 to 842805ced156 (1 revision) (flutter/engine#21481) 2020-09-29 01:42:02 -07:00
skia-flutter-autoroll
6afbbdee6e Roll Fuchsia Linux SDK from 2NPr4uMi-... to 4UZwprAK4... (flutter/engine#21480) 2020-09-29 01:22:01 -07:00
skia-flutter-autoroll
4668fed23b Roll Skia from 1fdcd389873d to 01bbe189b0d0 (1 revision) (flutter/engine#21479) 2020-09-29 00:22:01 -07:00
skia-flutter-autoroll
46f3c17627 Roll Skia from e96cdd18ac5f to 1fdcd389873d (1 revision) (flutter/engine#21477) 2020-09-28 23:02:01 -07:00
skia-flutter-autoroll
cdd5a7b1c1 Roll Skia from 427d8ebf308c to e96cdd18ac5f (6 revisions) (flutter/engine#21471) 2020-09-28 15:57:01 -07:00
skia-flutter-autoroll
03bf8d19cf Roll Skia from d82e2c1ec126 to 427d8ebf308c (4 revisions) (flutter/engine#21469) 2020-09-28 14:37:01 -07:00
Chinmay Garde
aacf00f3b6 Make scoped_nsprotocol::release() private. (flutter/engine#21467)
This is not used anywhere in the engine. However, this API is easy to misuse as
one might incorrectly assume that it releases the reference on the underlying
object. Callers must use `reset` for this purpose.
2020-09-28 14:02:21 -07:00
Paul Berry
d65187e6c2 Remove unnecessary ?s from web_ui. (flutter/engine#21444)
* Remove unnecessary `?`s from web_ui.

In https://dart-review.googlesource.com/c/sdk/+/163841, dart's flow
analysis is being changed so that an assignment like this:

    T? x = <non-nullable value>;

causes `x` to be immediately promoted to type `T`.  This exposed two
instances in which a variable was unnecessarily given a nullable type.
To avoid warnings, we need to fix these two types before
https://dart-review.googlesource.com/c/sdk/+/163841 can land.
2020-09-28 13:58:12 -07:00
skia-flutter-autoroll
7da26bb5f5 Roll Skia from 6a189f23af5e to d82e2c1ec126 (15 revisions) (flutter/engine#21465) 2020-09-28 13:07:02 -07:00
chunhtai
cb4fe4dfab Reland Apply dpr transform to fuchsia accessibility bridge (flutter/engine#21459)
* Reland "Apply dpr transform to fuchsia accessibility bridge (#21364)"

This reverts commit 0c8c4bd82c51933ac4aa5c13fc33f0c63b12d921.

* fix test
2020-09-28 12:50:53 -07:00
Kaushik Iska
a5f4486147 Reland multiple display support for embedder API (flutter/engine#21464) 2020-09-28 12:35:34 -07:00
George Wright
ea9cc6cf3c Run embedder_tests on Fuchsia CI (flutter/engine#21462) 2020-09-28 12:22:02 -07:00
skia-flutter-autoroll
ec1c3a28b0 Roll Fuchsia Linux SDK from HNNs4gfuM... to 2NPr4uMi-... (flutter/engine#21461) 2020-09-28 12:02:01 -07:00
Jason Simmons
19b073917b Do not pass invalid platform view rendering surfaces to the rasterizer (flutter/engine#21259) 2020-09-28 11:57:01 -07:00
George Wright
67cfb02b18 Enable embedder_unittests on Fuchsia (flutter/engine#21418) 2020-09-28 11:12:02 -07:00
skia-flutter-autoroll
3da8a178d5 Roll Skia from ad6aeace6eee to 6a189f23af5e (6 revisions) (flutter/engine#21455) 2020-09-28 10:27:02 -07:00
Kaushik Iska
bd90847bad Revert multiple display support for embedder API (flutter/engine#21456)
This reverts commits
- 5f34b8442366463b5ad53e3e87e7920a006392eb.
- fc8b468d84f1fef5bf5183dd0b36d9411d454ea7.

See: https://github.com/flutter/flutter/issues/66829
2020-09-28 09:46:46 -07:00
Zachary Anderson
0c8c4bd82c Revert "Apply dpr transform to fuchsia accessibility bridge (#21364)" (flutter/engine#21458)
This reverts commit c120f3e17aeb2ee8ee69c76d6bd5070d68e7093e.
2020-09-28 09:42:50 -07:00
chunhtai
c120f3e17a Apply dpr transform to fuchsia accessibility bridge (flutter/engine#21364)
* Apply dpr transform to fuchsia accessibility bridge

* fix format

* addressing comment

* fix typo
2020-09-28 09:24:02 -07:00
Kaushik Iska
100e0491d8 [ios] Remove unused is_valid_ from IOS Metal Context (flutter/engine#21432) 2020-09-28 08:05:48 -07:00
skia-flutter-autoroll
2d0201558d Roll Skia from eabce08bb2f2 to ad6aeace6eee (2 revisions) (flutter/engine#21448) 2020-09-27 22:57:02 -07:00
skia-flutter-autoroll
016c6e1a6d Roll Fuchsia Linux SDK from ej-CkfSra... to HNNs4gfuM... (flutter/engine#21447) 2020-09-27 21:07:01 -07:00
skia-flutter-autoroll
5cb2d8e0b0 Roll Fuchsia Linux SDK from xdxm8rU8b... to ej-CkfSra... (flutter/engine#21443) 2020-09-27 07:47:02 -07:00
skia-flutter-autoroll
400e63c464 Roll Fuchsia Linux SDK from 0nW5DAxcC... to xdxm8rU8b... (flutter/engine#21439) 2020-09-26 18:27:01 -07:00
skia-flutter-autoroll
1b600feda6 Roll Skia from 5648572f4a94 to eabce08bb2f2 (1 revision) (flutter/engine#21435) 2020-09-26 10:57:01 -07:00
skia-flutter-autoroll
1727c99805 Roll Skia from 766eeb2ac325 to 5648572f4a94 (1 revision) (flutter/engine#21433) 2020-09-26 09:12:01 -07:00
skia-flutter-autoroll
f5d475a873 Roll Skia from 5e1545fa00c8 to 766eeb2ac325 (1 revision) (flutter/engine#21431) 2020-09-26 07:27:01 -07:00
Kaushik Iska
fc8b468d84 [macOS] Set the display refresh rate (flutter/engine#21095)
Fixes: https://github.com/flutter/flutter/issues/49222
2020-09-26 06:47:26 -07:00
skia-flutter-autoroll
0a16b3a8de Roll Fuchsia Linux SDK from XcAUWQUZm... to 0nW5DAxcC... (flutter/engine#21430) 2020-09-26 05:07:01 -07:00
skia-flutter-autoroll
41996420b3 Roll Skia from a05d27b170ee to 5e1545fa00c8 (1 revision) (flutter/engine#21425) 2020-09-25 19:17:02 -07:00
Mouad Debbar
585f378429 [web] Respond with null for unimplemented method channels (flutter/engine#21423) 2020-09-25 18:49:41 -07:00
skia-flutter-autoroll
02ea7e56a3 Roll Skia from 68861e391313 to a05d27b170ee (1 revision) (flutter/engine#21424) 2020-09-25 17:57:01 -07:00
Emmanuel Garcia
dbca16555e Support dragging native platform views (flutter/engine#21396) 2020-09-25 17:46:34 -07:00
Dan Field
f7bbb7d405 Fix getNextFrame (flutter/engine#21422) 2020-09-25 17:26:59 -07:00
skia-flutter-autoroll
b38eebfaf6 Roll Skia from 7bd60430299f to 68861e391313 (14 revisions) (flutter/engine#21421) 2020-09-25 16:37:01 -07:00
skia-flutter-autoroll
fea8859d5d Roll Fuchsia Linux SDK from BFLXvCMVi... to XcAUWQUZm... (flutter/engine#21420)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-linux-sdk-flutter-engine
Please CC zra@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2020-09-25 15:48:41 -07:00
skia-flutter-autoroll
6f61a84daa Roll Skia from aeae3a58e3da to 7bd60430299f (1 revision) (flutter/engine#21417)
https://skia.googlesource.com/skia.git/+log/aeae3a58e3da..7bd60430299f

2020-09-25 ethannicholas@google.com moved SkSL Block's data into IRNode

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC csmartdalton@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md
2020-09-25 14:58:06 -07:00
skia-flutter-autoroll
da8ded8261 Roll Skia from d7ab45027877 to aeae3a58e3da (6 revisions) (flutter/engine#21415) 2020-09-25 12:32:01 -07:00
nturgut
03bf20acc4 [web] enable ios safari screenshot tests (flutter/engine#21226)
* enable ios safari screenshot tests

* this is the value used for screenshots in the repo.

* change revision

* fix the error made in the gaps

* do not try to fetch on LUCI

* lunix luci migth break existing prs. only skip fetching for mac

* add a placeholder tests for shadow golden test

* try to use iPhone 11 Pro on LUCI

* change the scale and the smoke test image

* add unmerged goldens PR to tests all the screenshots. will be removed later

* change the goldens lock back to flutter/goldens

* change wrong comment on screenshot tests block

* address reviewer comments

* change the commit number for goldens file

* skip canvas blend mode tests

* debugging LUCI error

* debugging LUCI error printing directory contents

* skip one test, remove the debug logs

* change the revision number to include the correct chrome files
2020-09-25 12:30:57 -07:00
Jenn Magder
cc6409ece6 Remove ASCII art from mDNS error log (flutter/engine#21397) 2020-09-25 11:34:26 -07:00
Alexander Brusher
2afe2bffaf Revert "Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (#20936)" (flutter/engine#21367)
This reverts commit 22e1f69704ed0f67b6b57d72197abac4a35f94b3.
2020-09-25 11:07:10 -07:00
skia-flutter-autoroll
a54d057550 Roll Skia from 3b88c0772e89 to d7ab45027877 (1 revision) (flutter/engine#21411) 2020-09-25 11:07:02 -07:00