19914 Commits

Author SHA1 Message Date
George Wright
fc72bd2ada
Plumb through Dart entrypoint arguments on the Linux embedder (#21933) 2020-10-22 09:47:04 +13:00
Michael Goderbauer
1358f13c2f
Run framework tests in sound null safety mode (#22038) 2020-10-21 13:38:24 -07:00
skia-flutter-autoroll
2718474813
Roll Dart SDK from 874709e52a99 to a3d902d8598e (1 revision) (#22026)
https://dart.googlesource.com/sdk.git/+log/874709e52a99..a3d902d8598e

2020-10-21 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.11.0-242.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@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-10-21 08:13:06 -07:00
skia-flutter-autoroll
6e5d376094
Roll Dart SDK from 86242db30c23 to 874709e52a99 (1 revision) (#22023) 2020-10-20 23:27:01 -07:00
skia-flutter-autoroll
c2c74ed708
Roll Dart SDK from 8be6a08153cc to 86242db30c23 (2 revisions) (#22018) 2020-10-20 18:47:02 -07:00
skia-flutter-autoroll
b99d94f39c
Roll Skia from 1c823674d957 to 2d2f82c00aeb (13 revisions) (#22015)
https://skia.googlesource.com/skia.git/+log/1c823674d957..2d2f82c00aeb

2020-10-20 brianosman@google.com Always declare sk_FragColor in GLSL, even if unused
2020-10-20 ethannicholas@google.com added SkSLNodeArrayWrapper
2020-10-20 reed@google.com update dox for drawPaint
2020-10-20 johnstiles@google.com Wrap built-in symbol tables during inlining.
2020-10-20 johnstiles@google.com Wrap built-in symbol tables when an IRNode is cloned.
2020-10-20 johnstiles@google.com Fix typo in class name.
2020-10-20 robertphillips@google.com Make GrFillRectOp::onPrePrepareDraws also call base class' version
2020-10-20 adlai@google.com Reland "Remove GrContext"
2020-10-20 robertphillips@google.com Rename some of GrThreadSafeCache's member variables
2020-10-20 abarth@google.com [fuchsia] Migrate to new zx::vmar::map method
2020-10-20 mtklein@google.com upstream cl/337571894 with tweaks
2020-10-20 robertphillips@google.com Pull the triangulating path renderer's shape-space triangulation into a helper method
2020-10-20 fmalita@chromium.org [svg] Parse text attributes

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 egdaniel@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-10-20 17:01:28 -07:00
Chinmay Garde
6934f8aa31
Determine null-safety isolate flags for launches of the service isolate. (#22013) 2020-10-20 16:57:01 -07:00
Chris Bracken
56f399a533
Revert "Define SK_VULKAN for clang-tidy runs (#21927)" (#22012)
This breaks linting on other targets that include skia headers that do
ifdef checks on SK_VULKAN.

This reverts commit 25d8fa5a79cb0228e639601822598ada49695ff6.
2020-10-20 15:17:05 -07:00
Adam Barth
638c182366
[fuchsia] zx::vmar::map migration (#22003)
The new map() method receives its arguments in the same order as the
underlying C system call. This patch should not change any behavior.
2020-10-20 21:59:46 +00:00
Chase Latta
8a5b423445
[fuchsia] opt-out null-safety in standalone scripts (#22009) 2020-10-20 14:47:01 -07:00
skia-flutter-autoroll
94c59a0d4d
Roll Dart SDK from fc82eeed7df3 to 8be6a08153cc (1 revision) (#22005) 2020-10-20 12:57:01 -07:00
skia-flutter-autoroll
ed53ff19e8
Roll Dart SDK from fc82eeed7df3 to 8be6a08153cc (1 revision) (#22002)
https://dart.googlesource.com/sdk.git/+log/fc82eeed7df3..8be6a08153cc

2020-10-20 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.11.0-238.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@google.com,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-10-20 12:16:45 -07:00
Greg Spencer
3658bd7ea7
Revert "Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21979)" (#22004)
This reverts commit 3cd70f2cfb21baf30cc62de29d311118aa757c60 because it causes some failures in web tests.
2020-10-20 11:42:01 -07:00
skia-flutter-autoroll
5d4727d683
Roll Skia from 51dc28505fb9 to 1c823674d957 (8 revisions) (#21995) 2020-10-20 10:22:01 -07:00
Wu Zhong
a82e917dc2
[iOS] Fixes leaks of presses key message (#21987)
Related PR: #20972
2020-10-20 10:15:44 -07:00
Greg Spencer
3cd70f2cfb
Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21979)
This re-lands #21163, which was reverted in #21513

Now that flutter/flutter#67359 has landed, this change will no longer cause spaces (and other shortcuts) to be ignored in text fields if there is no action associated with the intent, even if there is a shortcut key mapping to an intent.

Here's the original PR description:

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-10-20 10:14:31 -07:00
Jonah Williams
6ce33dd4a9
[null-safety] fix soundness of Paragraph._addPlaceholder (#21994) 2020-10-20 09:57:59 -07:00
skia-flutter-autoroll
eb6f7f8741
Roll Dart SDK from 902538ea56d5 to fc82eeed7df3 (1 revision) (#21981) 2020-10-20 09:52:02 -07:00
skia-flutter-autoroll
564bd09cdd
Roll Skia from 4964300530d3 to 51dc28505fb9 (5 revisions) (#21993) 2020-10-20 09:02:03 -07:00
skia-flutter-autoroll
7b72ce7963
Roll Skia from a25c0619b5ef to 4964300530d3 (2 revisions) (#21990) 2020-10-20 07:37:02 -07:00
skia-flutter-autoroll
85104696e2
Roll Skia from ac1ded033136 to a25c0619b5ef (2 revisions) (#21989) 2020-10-20 06:12:02 -07:00
skia-flutter-autoroll
40784a0610
Roll Fuchsia Linux SDK from dcMRY8S12... to lPMs_KwnU... (#21988) 2020-10-20 05:57:02 -07:00
Damian Wrobel
91c81ebfae
Fix linking issue (missing wayland-client library) (#21408)
As fl_renderer_wayland.cc uses directly some of the wayland-client
related functions it should also add this library as a dependency.
2020-10-20 05:47:40 -07:00
Clement Skau
e78e405e6a
Enable lazy-async-stacks by-default in all modes (Take 4) (#21802) 2020-10-20 10:31:15 +02:00
Zachary Anderson
2ef0f4228c
Revert "[web] Fix image gap due to svg element without position attribute (#21939)" (#21986)
This reverts commit 79879802e05edb2f8fb871428609f3db5a549273.
2020-10-19 23:54:07 -07:00
Jonah Williams
326157ee7e
[null-safety] fix Scene.toImage declaration (#21983) 2020-10-19 22:52:19 -07:00
skia-flutter-autoroll
727a9283a8
Roll Skia from 27f7fe32f49b to ac1ded033136 (15 revisions) (#21984) 2020-10-19 22:52:01 -07:00
Ferhat
79879802e0
[web] Fix image gap due to svg element without position attribute (#21939) 2020-10-19 22:15:06 -07:00
Ferhat
149ef70830
[web] Implement sweep gradient (#21873) 2020-10-19 22:14:42 -07:00
skia-flutter-autoroll
2dc43eee1e
Roll Fuchsia Mac SDK from MR_bRfe8I... to pZ9FgVZTK... (#21982) 2020-10-19 21:47:02 -07:00
Chinmay Garde
fa11ee6e2a
Fix native constructor of list of zircon handles and remove unused list factory specializations. (#21980) 2020-10-19 19:42:01 -07:00
Ferhat
0747f2f4b1
[web] Fix 3d transforms for html backend (#21499)
* Workaround for canvas element lacking support for 3d setTransform

* update golden test

* Add webkit workaround

* Implement DOM rendering for perspective

* cleanup

* update goldens lock

* Add check for shader and filtermask for dom use

* Fix svg viewBox. Move zIndex check to bitmap canvas

* Fix null check warning

* Fix scene_builder zIndex=-1 test to force canvas usage

* Add blendmode handling for DOM mode

* Update maxdiff and golden locks

* Remove unused import

* Add drawcolor/drawpaint test. Fix bounds for drawColor/drawPaint

* update golden locks

* adjust drawColor for dpr

* Update test to use canvas

* Fix toDataUrl NNBD

* Update Picture.toImage to use canvas to obstain image data

* Remove write:true from golden calls

* Add fill-rule for _pathToSvgElement

* Update golden locks

* Fix sceneBuilder pushClip / add missing clipBehaviour

* Fix test now that clipping works correctly

* move overflow handling for tests into DOMClip.addOverflow

* Add clipRect to test to keep render inside bitmap canvas area

* Update compositing test, fix drawColor coordinates

* update golden locks

* Skip test for matchGolden infra fail

* update golden lock

* merge

* update maxdiff for text over canvas

* update golden diff

* update paint spread bounds maxdiff

* update paint spread maxDiff
2020-10-19 17:27:27 -07:00
skia-flutter-autoroll
3edc16ca47
Roll Dart SDK from 5c59a47beda7 to 902538ea56d5 (2 revisions) (#21978) 2020-10-19 17:17:02 -07:00
skia-flutter-autoroll
ea2aea1c61
Roll Fuchsia Linux SDK from ZJHmp3INU... to dcMRY8S12... (#21976) 2020-10-19 16:37:02 -07:00
Jenn Magder
0c7c477245
Revert "[ios] Refactor IOSSurface factory and unify surface creation (#21877)" (#21970) 2020-10-19 16:32:03 -07:00
Chris Bracken
25d8fa5a79
Define SK_VULKAN for clang-tidy runs (#21927)
When linting flutter/vulkan/vulkan_window.cc, the call to
GrDirectContext::MakeVulkan is undefined when SK_VULKAN is not defined,
triggering a lint error.

Bug: https://github.com/flutter/flutter/issues/68331
2020-10-19 16:31:07 -07:00
Jason Simmons
6fdcdd99cc
Forward font collection APIs to the SkParagraph font collection (#21734) 2020-10-19 16:27:03 -07:00
Chris Bracken
bcc557f1ba
Add multi-step input method support for Linux (#21897)
This implements the Gtk hooks required to support multi-step input
methods on Linux. This builds on the support for composing regions
(preedit region in Gtk terminology) added to TextInputModel in
https://github.com/flutter/engine/pull/21682.

Specifically, the following changes are included:

1. Add handler for TextInput.setMarkedTextRegion framework messages: On
any change to the EditableText in the framework, this message is sent
which provides an updated rect (in the local co-ordinates of the
EditableText) for the composing region. If not in composing mode, the
cursor rect is sent.

2. Add handler for TextInput.setEditableSizeAndTransform framework messages:
On any change to the RenderObject underlying the EditableText, an
updated size for the full EditableText widget, as well as an affine
transform matrix from local co-ordinates to Flutter root co-ordinates is
sent.

3. On either of the above messages, we use the transformed composing
rect to compute the cursor position in Gtk window co-ordinates and
inform Gtk, so that it can position any system IM composing window
correctly for on-the-spot composing, such as is used when inputting
Japanese text.

4. Adds handlers for preedit-start, preedit-changed, and preedit-end
signals from Gtk. These are passed on to the TextInputModel.

5. Updates the preedit-commit handler to commit the composing region to
the text or, if not composing, insert new text at the cursor.

6. Updates the handler for TextInput.setEditingState framework messages
to extract the composing range base and extent and pass these on to
TextInputModel.

7. Updates update_editing_state function to set composing base and
extent on text input state updates sent to the framework.
2020-10-19 16:25:56 -07:00
J-P Nurmi
9946be45a9
FlTextInputPlugin: fix memory leaks (#21879)
This PR fixes a few small memory leaks in FlTextInputPlugin. All three cases
are creating temporary FlValue instances for lookups and comparison without
ever releasing them.
2020-10-19 16:23:10 -07:00
Jonah Williams
895940081c
[null-safety] fix types of layer code (#21959) 2020-10-19 16:22:40 -07:00
Jason Simmons
a6857802b7
Fix the initialization of AndroidSurfaceFactoryImpl (#21977)
Fixes https://github.com/flutter/flutter/issues/68446
2020-10-19 16:22:36 -07:00
puelo
43b618e4bf
Added keyEvent support for iOS 13.4+ (#20972) 2020-10-19 16:22:02 -07:00
Jason Simmons
f854cbbfa5
Specify the Noto Naskh Arabic font to get consistent results in tests using Arabic characters (#21974)
See https://github.com/flutter/flutter/issues/68493
2020-10-19 13:51:39 -07:00
gaaclarke
d4ac8e6cb2
Temporarily disabled tests that were using latin and arabic characters (#21971)
while we fix them.
2020-10-19 11:51:34 -07:00
skia-flutter-autoroll
e66e3f5352
Roll Skia from be8004d2fb6c to 27f7fe32f49b (1 revision) (#21956) 2020-10-19 09:42:02 -07:00
skia-flutter-autoroll
f7da9d687d
Roll Fuchsia Mac SDK from 9mMCqUXkF... to MR_bRfe8I... (#21955) 2020-10-17 23:57:01 -07:00
Jason Simmons
499a70f5e2
Restore missing call to RuntimeDelegate.OnRootIsolateCreated (#21953)
Fixes https://github.com/flutter/flutter/issues/68411
2020-10-17 20:33:13 -07:00
skia-flutter-autoroll
e9a43c15b7
Roll Dart SDK from 675c7165c071 to 5c59a47beda7 (1 revision) (#21952) 2020-10-17 15:32:01 -07:00
Jonah Williams
1c35cc6416
[null-safety] fix type declaration of Picutre._toImage (#21942)
Fixes flutter/flutter#68377

Should be a nullable string. Looks like --null-assertions does not cover the native binding code.
2020-10-17 11:02:19 -07:00
skia-flutter-autoroll
56d3da33b2
Roll Fuchsia Mac SDK from XZSNobQCT... to 9mMCqUXkF... (#21950) 2020-10-17 10:52:01 -07:00