11472 Commits

Author SHA1 Message Date
skia-flutter-autoroll
b89bd6a46f Roll Skia from c493eabd56d0 to 189ecd485ade (3 revisions) (flutter/engine#22119) 2020-10-26 09:07:01 -07:00
skia-flutter-autoroll
58e00ccd8a Roll Skia from aea82732415c to c493eabd56d0 (2 revisions) (flutter/engine#22118) 2020-10-26 07:47:02 -07:00
skia-flutter-autoroll
5632825212 Roll Fuchsia Linux SDK from d3HGOZddM... to 5teTtbQ9-... (flutter/engine#22114) 2020-10-26 00:42:01 -07:00
Ferhat
d80f108499 [web] Fix positioning of canvas elements due to svg filters (flutter/engine#22070) 2020-10-25 22:15:03 -07:00
skia-flutter-autoroll
d87a22d006 Roll Fuchsia Linux SDK from 33fGX8ZWr... to d3HGOZddM... (flutter/engine#22110) 2020-10-25 11:22:02 -07:00
skia-flutter-autoroll
72d55f01f8 Roll Skia from 312535b47d38 to aea82732415c (1 revision) (flutter/engine#22108) 2020-10-25 00:52:01 -07:00
skia-flutter-autoroll
c68d4b06b2 Roll Fuchsia Linux SDK from gHKi9MwVc... to 33fGX8ZWr... (flutter/engine#22107) 2020-10-24 22:02:01 -07:00
skia-flutter-autoroll
0e120b94ef Roll Skia from 7c64798b3d0c to 312535b47d38 (9 revisions) (flutter/engine#22101) 2020-10-24 10:37:02 -07:00
Chris Bracken
736d19ecbf Fix _lerpInt precision bug (flutter/engine#22089)
Fixes a precision bug was introduced in 5f363dc, which improved the
precision of lerpDouble when the extrema differed significantly in
magnitude.

_lerpInt doesn't have this issue since the extrema are passed as 64-bit
twos-complement values, therefore the difference will always be accurate
so long as it doesn't overflow. This reverts the _lerpInt implementation
to the original a + (b - a) * t, but adds a test to avoid a regression
if anyone is tempted to make it consistent with the others.
2020-10-24 09:49:21 -07:00
skia-flutter-autoroll
aa8acf39ad Roll Fuchsia Linux SDK from ivUuUUnOL... to gHKi9MwVc... (flutter/engine#22097) 2020-10-24 04:32:02 -07:00
Dan Field
fb578c4ede Revert "Add a golden scenario test for fallback font rendering on iOS take 2 (#22033)" (flutter/engine#22095)
This reverts commit 97eed1d8e4523b6049eb7742c4bb9308489b16b2.
2020-10-23 21:10:24 -07:00
Jason Simmons
b76d246acb Reformat some files that were not auto-formatted (flutter/engine#21940) 2020-10-23 18:57:03 -07:00
Filip Filmar
cb5828068f [fuchsia] Adds a test for timezone change (flutter/engine#21934) 2020-10-23 18:52:02 -07:00
skia-flutter-autoroll
930b2b8f1e Roll Fuchsia Linux SDK from vuKxZmSVj... to ivUuUUnOL... (flutter/engine#22084) 2020-10-23 15:12:02 -07:00
Yegor
d52c7a1adb add web framework tests to the prod builder (flutter/engine#22080) 2020-10-23 15:07:01 -07:00
skia-flutter-autoroll
da36be79d4 Roll Skia from 58cf3fe83b93 to 7c64798b3d0c (5 revisions) (flutter/engine#22081) 2020-10-23 13:42:01 -07:00
Ferhat
42fc39e8a9 When picture is updated and bitmapcanvas reused, clear element cache (flutter/engine#22072) 2020-10-23 12:31:48 -07:00
skia-flutter-autoroll
484d7d99f3 Roll Skia from 53281c712159 to 58cf3fe83b93 (5 revisions) (flutter/engine#22075) 2020-10-23 10:32:01 -07:00
Dan Field
ab0d43bf69 Add debugDisposed to Image (flutter/engine#21547) 2020-10-23 10:27:02 -07:00
skia-flutter-autoroll
4d892a231e Roll Fuchsia Linux SDK from gqS_DIjN4... to vuKxZmSVj... (flutter/engine#22074) 2020-10-22 23:52:01 -07:00
Ferhat
7afeb4856e [web] Prevent using DOM nodes for canvas with large number of draws (flutter/engine#22064) 2020-10-22 22:38:08 -07:00
xster
97eed1d8e4 Add a golden scenario test for fallback font rendering on iOS take 2 (flutter/engine#22033) 2020-10-22 17:12:01 -07:00
skia-flutter-autoroll
0b99bc6564 Roll Skia from 01b05e5b830b to 53281c712159 (1 revision) (flutter/engine#22065) 2020-10-22 16:42:01 -07:00
Angjie Li
6ade27bd24 Auto detect mode to determine which rendering backend to use. (flutter/engine#21852) 2020-10-22 16:17:02 -07:00
chunhtai
f826d9992e support uri intent launcher in android (flutter/engine#21275)
* support uri intent launcher in android

* fix comment
2020-10-22 15:54:30 -07:00
Lau Ching Jun
743edee507 Support loading assets from Android dynamic feature modules (flutter/engine#21504)
Initialize the AssetManager from the application context so that assets from dynamic feature modules can be loaded.
2020-10-22 15:53:11 -07:00
skia-flutter-autoroll
179e4b4f7e Roll Skia from 65674e4c2e56 to 01b05e5b830b (3 revisions) (flutter/engine#22062) 2020-10-22 15:12:02 -07:00
Robert Ancell
eb7e81fe4c Add FlEventChannel (flutter/engine#21316)
Related to https://github.com/flutter/flutter/issues/65270
2020-10-22 15:06:52 -07:00
Greg Spencer
06b6f8af89 Reland: Migration to PlatformDispatcher and multi-window (flutter/engine#21932)
This re-lands #20496 and #21780 after fixing the semantics-enabling code that was causing the post-submit web_smoke_test to fail.

Below is the description from the original PR:

This is a PR for converting the dart:ui code in the engine to use a multi-window API. The goal here is to convert from the window singleton to an API that has the concept of multiple windows. Also, I'm matching up the new PlatformDispatcher class to talk directly to the PlatformConfiguration class in the engine. I'm not attempting to actually enable creating multiple windows here, just migrate to an API that has a concept of multiple windows. The multi-window API in this PR currently only ever creates one window.

The design doc for this change is here.

The major changes in this PR:

Move the platfom-specific attributes out of Window, and into the new PlatformDispatcher class that holds all of the platform state, so that the platform code need only update the configuration on this class.
Create FlutterView, FlutterWindow, and SingletonFlutterWindow classes to separate out the concepts of a view (of which there may be multiple in a window), a window (of which there may be multiple on a screen, and they host views), and a window where there is only ever expected to be one (this hosts the entire API of the former Window class, and will eventually be the type of the window singleton).
Next step after this PR lands:

Remove the Window class entirely (it is replaced by SingletonFlutterWindow). Some minor changes in the Framework are needed to switch to using SingletonFlutterWindow directly first.

The Window class still exists in this PR, but will be removed as soon as the framework is converted to point to the SingletonFlutterWindow class instead. They share the same API, just have different names (Window is currently a subclass of SingletonFlutterWindow). The intention is that the Window name will be freed up to use as a widget class name in the framework for managing windows. The singleton called window will remain, and keep the same API it has now.
2020-10-22 14:54:25 -07:00
chunhtai
0f2c3c9bf4 Fixes Edge trigger route change announcement (flutter/engine#21975) 2020-10-22 14:22:03 -07:00
stuartmorgan
10a7448f57 Revert "Revert "Explicitly make the X connection for EGL. (#21831)" (#21851)" (flutter/engine#21871)
This reverts commit 12cd3076aff3accf56e399b0d56f69b3f3fdf520.
2020-10-22 13:50:14 -07:00
skia-flutter-autoroll
5f3016a4ed Roll Skia from 5c7bb326a7b3 to 65674e4c2e56 (3 revisions) (flutter/engine#22060)
https://skia.googlesource.com/skia.git/+log/5c7bb326a7b3..65674e4c2e56

2020-10-22 kjlubick@google.com [canvaskit] Compile in most gms for testing
2020-10-22 johnstiles@google.com Reland "Add pooling support on iOS."
2020-10-22 egdaniel@google.com Fix asserts for npot tiling in gl.

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-22 13:50:00 -07:00
Kaushik Iska
2b337d1d98 Reland fuchsia external view embedder will be shared with platform view (flutter/engine#22008)
* Reland fuchsia external view embedder will be shared with platform view

This reverts commit cecec62028b09097675f041a7203708b99d4d2c6.

* wait for the external view embedder to be initialized before creating
shell
2020-10-22 13:48:36 -07:00
skia-flutter-autoroll
eac74c95b5 Roll Fuchsia Linux SDK from lPMs_KwnU... to gqS_DIjN4... (flutter/engine#22057)
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 chinmaygarde@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-22 10:27:52 -07:00
skia-flutter-autoroll
e4f96191d7 Roll Skia from 2d2f82c00aeb to 5c7bb326a7b3 (33 revisions) (flutter/engine#22059)
https://skia.googlesource.com/skia.git/+log/2d2f82c00aeb..5c7bb326a7b3

2020-10-22 johnstiles@google.com Reland "Create a basic IRNode pooling system."
2020-10-22 egdaniel@google.com Revert "Reland "Create a basic IRNode pooling system.""
2020-10-22 egdaniel@google.com Revert "Add pooling support on iOS."
2020-10-22 brianosman@google.com Add much better SkTHashMap visualization to Skia.natvis
2020-10-22 kjlubick@google.com [fuzz] Copy crashing outputs before failing
2020-10-22 johnstiles@google.com Add pooling support on iOS.
2020-10-22 jvanverth@google.com Fix storage class issues for push constant variables.
2020-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 84f5eeb6dd9b to e02d8938821a (3 revisions)
2020-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 4bdce889ea35 to 502ec4ce30b3 (465 revisions)
2020-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from e2147a58a233 to d74754378f09 (16 revisions)
2020-10-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from cca03ca6bfe9 to 22505a5afe1f (9 revisions)
2020-10-22 johnstiles@google.com Reland "Create a basic IRNode pooling system."
2020-10-21 fmalita@chromium.org [svg] Add support for preserveAspectRatio
2020-10-21 johnstiles@google.com Pop the symbol table if compilation fails.
2020-10-21 kjlubick@google.com [canvaskit] Load resources into wasm gms/unit tests.
2020-10-21 egdaniel@google.com In Vk don't set dynamic blend constant on Pipeline if we don't use it.
2020-10-21 tdenniston@google.com [svg] Add gradientUnits attribute, value, and parsing
2020-10-21 jlavrova@google.com Underline decorations with gaps and no text
2020-10-21 bsalomon@google.com Reland "Perform bounding rect-relative calcs in full float in GrRRectBlurEffect"
2020-10-21 brianosman@google.com Add several more visualizations to Skia.natvis
2020-10-21 michaelludwig@google.com Make small epsilons more rigorous for gpu gaussian blurs
2020-10-21 johnstiles@google.com Revert "Create a basic IRNode pooling system."
2020-10-21 bsalomon@google.com Revert "Perform bounding rect-relative calcs in full float in GrRRectBlurEffect"
2020-10-21 johnstiles@google.com Migrate additional FPs to `return` instead of `sk_OutColor`.
2020-10-21 johnstiles@google.com Wrap built-in symbol tables when a switch statement is cloned.
2020-10-21 bsalomon@google.com Perform bounding rect-relative calcs in full float in GrRRectBlurEffect
2020-10-21 johnstiles@google.com Create a basic IRNode pooling system.
2020-10-21 robertphillips@google.com Increase encapsulation of GrThreadSafeCache::Entry
2020-10-21 kjlubick@google.com [canvaskit] Fix gm test runner on non-tryjobs
2020-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from df17a76102df to 84f5eeb6dd9b (3 revisions)
2020-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 2be35682cd67 to e2147a58a233 (40 revisions)
2020-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 60b90a0bfd24 to 4bdce889ea35 (441 revisions)
2020-10-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn from c4593127cbdd to cca03ca6bfe9 (7 revisions)

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-22 10:26:39 -07:00
Chinmay Garde
c721e67cb7 Isolates launched by the engine instance use the settings of that instance. (flutter/engine#22052)
This regression was introduced in https://github.com/flutter/engine/pull/21820
for sound-null safety. The settings used to launch the VM were incorrectly used
to determine the isolate lifecycle callbacks. Since the first shell/engine in
the process also starts the VM, these objects are usually identical. However,
for subsequent engine shell/engine launches, the callbacks attached to the new
settings object would be ignored. The unit-test harness is also structured in
such a way that each test case tears down the VM before the next. So all
existing tests created a bespoke VM for the test run, and, the tests that did
create multiple isolates did not also test attaching callbacks to the settings
object.

Fixes https://github.com/flutter/engine/pull/22041
2020-10-22 02:20:50 -07:00
Chinmay Garde
288c5ee97d Ensure root isolate create callback is invoked before the isolate is in the running phase. (flutter/engine#22041)
Embedders that have access to the Dart native API (only Fuchsia now) may perform
library setup in the isolate create callback. The engine used to depend on the
fact the root isolate entrypoint is invoked in the next iteration of message
loop (via the `_startIsolate` trampoline in `isolate_patch.dart`) to ensure that
library setup occur before the main entrypoint was invoked. However, due to
differences in the way in which message loops are setup in Fuchsia, this
entrypoint was run before the callback could be executed. Dart code on Fuchsia
also has the ability to access the underlying event loops directly. This patch
moves the invocation of the create callback to before user dart code has a
chance to run. This difference in behavior on Fuchsia became an issue when the
isolate initialization was reworked in https://github.com/flutter/engine/pull/21820
for null-safety.

Another issue was discovered in that the callback was being invoked twice, I
fixed that too and added a test.

Fixes https://github.com/flutter/flutter/issues/68732
2020-10-21 15:57:10 -07:00
George Wright
fe489569a7 Plumb through Dart entrypoint arguments on the Linux embedder (flutter/engine#21933) 2020-10-22 09:47:04 +13:00
Michael Goderbauer
3aac6f8e69 Run framework tests in sound null safety mode (flutter/engine#22038) 2020-10-21 13:38:24 -07:00
skia-flutter-autoroll
75275bb2c1 Roll Skia from 1c823674d957 to 2d2f82c00aeb (13 revisions) (flutter/engine#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
c0f4a193b0 Determine null-safety isolate flags for launches of the service isolate. (flutter/engine#22013) 2020-10-20 16:57:01 -07:00
Chris Bracken
9482036304 Revert "Define SK_VULKAN for clang-tidy runs (#21927)" (flutter/engine#22012)
This breaks linting on other targets that include skia headers that do
ifdef checks on SK_VULKAN.

This reverts commit 939c3de58aa3ebeed23221b84883aa7bd7365f2e.
2020-10-20 15:17:05 -07:00
Adam Barth
d81873950d [fuchsia] zx::vmar::map migration (flutter/engine#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
fc4683d135 [fuchsia] opt-out null-safety in standalone scripts (flutter/engine#22009) 2020-10-20 14:47:01 -07:00
Greg Spencer
22f99901e4 Revert "Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#21979)" (flutter/engine#22004)
This reverts commit 410db6115268fe6d7561adf68d0fb04adf314c43 because it causes some failures in web tests.
2020-10-20 11:42:01 -07:00
skia-flutter-autoroll
73c6189c55 Roll Skia from 51dc28505fb9 to 1c823674d957 (8 revisions) (flutter/engine#21995) 2020-10-20 10:22:01 -07:00
Wu Zhong
8c77ec7238 [iOS] Fixes leaks of presses key message (flutter/engine#21987)
Related PR: #20972
2020-10-20 10:15:44 -07:00
Greg Spencer
410db61152 Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (flutter/engine#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
97b83448f6 [null-safety] fix soundness of Paragraph._addPlaceholder (flutter/engine#21994) 2020-10-20 09:57:59 -07:00
skia-flutter-autoroll
50c3a4ee2f Roll Skia from 4964300530d3 to 51dc28505fb9 (5 revisions) (flutter/engine#21993) 2020-10-20 09:02:03 -07:00