19217 Commits

Author SHA1 Message Date
skia-flutter-autoroll
f6920dae55
Roll Skia from 8fa3b4e8cde5 to e9a9ad908226 (5 revisions) (#20952) 2020-09-02 12:25:01 -07:00
skia-flutter-autoroll
d761629cb1
Roll Skia from 1338a37a1add to 8fa3b4e8cde5 (6 revisions) (#20949) 2020-09-02 11:03:02 -07:00
Alexander Aprelev
873c007934
Log exception in addition to the stack trace for unhandled exceptions. (#20935)
* Log exception in addition to the stack trace for unhandled exceptions.

Having exception logged can be especially useful when stack trace is blank.
2020-09-02 09:47:09 -07:00
skia-flutter-autoroll
8f3f711452
Roll Fuchsia Linux SDK from 9tLNFbjA1... to knpSoAoZq... (#20944) 2020-09-02 09:43:01 -07:00
skia-flutter-autoroll
ca989b8ae0
Roll Skia from 7b46300fe4ff to 1338a37a1add (16 revisions) (#20943) 2020-09-02 09:38:02 -07:00
Emmanuel Garcia
615e668014
Clear the GL context only after submitting the frame (#20931)
* Clear the GL context only after submitting the frame
* Fix Screenshot test
2020-09-02 08:46:11 -07:00
Gary Qian
15bf1bbf6f
[Android R] Integrate DisplayCutouts into viewportMetrics (#20921) 2020-09-02 05:18:35 -07:00
skia-flutter-autoroll
f6270c0413
Roll Dart SDK from e8e0d5a539fb to b29f228f62e2 (3 revisions) (#20939) 2020-09-01 23:13:01 -07:00
Yuqian Li
5585ed9903
Revert "Create root isolate asynchronously (#20142)" (#20937)
This reverts commit 95f2b72728ee7e51800f1784e458e45dac675b3a.
2020-09-01 22:05:53 -07:00
Jim Graham
96efe39272
Revert "Adds fuchsia node roles to accessibility bridge updates. (#20385)" (#20936)
This reverts commit 58a62076559585b167c89531dfb81092d744a552.
2020-09-01 21:21:07 -07:00
Gábor
d67bda725a
Image.toByteData and Picture.toImage implementations (#3) (#20750)
* `Image.toByteData()` was not implemented in either DomCanvas or CanvasKit. This PR covers **both.**
* `Picture.toImage()` was not implemented in either DomCanvas or CanvasKit. This PR covers **CanvasKit**
2020-09-01 17:01:18 -07:00
Emmanuel Garcia
49d6805324
Ensure all images are closed in FlutterImageView (#20842) 2020-09-01 16:57:45 -07:00
skia-flutter-autoroll
a76214307e
Roll Dart SDK from 2a5f37d25453 to e8e0d5a539fb (3 revisions) (#20928) 2020-09-01 14:03:01 -07:00
Alexander Brusher
58a6207655
Adds fuchsia node roles to accessibility bridge updates. (#20385) 2020-09-01 13:33:02 -07:00
chenjianguang
95f2b72728
Create root isolate asynchronously (#20142)
## Description
As the related issue refer, the application may be doing too much work on its main thread even in a simple hello_world demo.
That is because the creation of `Engine` on the ui thread takes a noticeable time, and it is blocking the platform thread in order to run `Shell::Setup` synchronously.
The cost of `Engine`'s constructor is mainly about the creating of root isolate. Actually, there used to be another time-consuming process, the default font manager setup, which was resolved by https://github.com/flutter/engine/pull/18225. 
Similar to https://github.com/flutter/engine/pull/18225, this pr move the creation of root isolate out from creating `Engine`. After this action, the main thread blocking is quite an acceptable slice.

## Related Issues
https://github.com/flutter/flutter/issues/40563 could be resolved by this pr.
2020-09-01 13:31:00 -07:00
skia-flutter-autoroll
696c2aafef
Roll Skia from 3913d3e137ed to 7b46300fe4ff (4 revisions) (#20924) 2020-09-01 11:08:01 -07:00
skia-flutter-autoroll
a651020973
Roll Fuchsia Linux SDK from _SVZn8uN2... to 9tLNFbjA1... (#20920) 2020-09-01 11:03:02 -07:00
skia-flutter-autoroll
5f3ec38c20
Roll Fuchsia Mac SDK from sI2DAAmSI... to waj2pOhDh... (#20919) 2020-09-01 10:58:02 -07:00
stuartmorgan
80190580d5
Default C++ wrapper templates to EncodableValue (#20760)
The C++ wrapper makes heavy use of templates to support arbitrary types
in the platform channel classes, but in practice EncodableValue is what
essentially all code will use. This defaults those template types to
reduce boilerplate in plugin code (e.g., allowing the use of
MethodChannel<> instead of MethodChannel<EncodableValue>).
2020-09-01 10:56:46 -07:00
skia-flutter-autoroll
1f52ec3783
Roll Dart SDK from 6eab35f49cbb to 2a5f37d25453 (1 revision) (#20917)
https://dart.googlesource.com/sdk.git/+log/6eab35f49cbb..2a5f37d25453

2020-09-01 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.10.0-80.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-09-01 09:54:12 -07:00
nturgut
101316b76a
[web] migrate from e2e to integration_test (#20914)
* migrate from e2e to integration_test

* address reviewer comments
2020-08-31 20:30:27 -07:00
skia-flutter-autoroll
abe10d102e
Roll Dart SDK from 84c3eacc7ba0 to 6eab35f49cbb (2 revisions) (#20913) 2020-08-31 18:33:01 -07:00
Jason Simmons
d67923feb1
Pass text input key events to the EventResponder if they do not yield characters (#20912)
If the InputConnectionAdaptor receives a key event that does not move
the caret or produce a text character (such as the back button), then
the event should be given to the EventResponder which will forward it
to the view.

Fixes https://github.com/flutter/flutter/issues/64864
2020-08-31 17:56:09 -07:00
Jason Simmons
1bd9b8e85b
Reset Shell::weak_factory_gpu_ on the raster thread (#20869) 2020-08-31 16:03:02 -07:00
stuartmorgan
8ec8af75a2
[windows] Add horizontal scroll support (#20668)
The embedding was only handling vertical scroll events from the OS; this
adds horizontal as well.

Fixes https://github.com/flutter/flutter/issues/60835
2020-08-31 16:01:38 -07:00
skia-flutter-autoroll
0773bf0bd3
Roll Skia from 44e96bee4b6a to 3913d3e137ed (2 revisions) (#20909) 2020-08-31 15:48:02 -07:00
Emmanuel Garcia
c4c4f341b8
Wait for first frame before checking layer tree (#20910) 2020-08-31 15:03:31 -07:00
xster
5f49a95499
Add auto plugin registration to FlutterFragmentActivity as well (#20865) 2020-08-31 13:43:46 -07:00
skia-flutter-autoroll
939871799b
Roll Skia from db5582b71116 to 44e96bee4b6a (4 revisions) (#20908) 2020-08-31 13:23:02 -07:00
Emmanuel Garcia
5e54c707e8
Reland: Enable hybrid composition by default on Android (#20722) (#20864)
This reverts commit 4de62c7c2659607acdc75ab8c1ccd305a3c6f9d1.
2020-08-31 12:17:11 -07:00
skia-flutter-autoroll
165abef0a2
Roll Dart SDK from 92782d2b94b5 to 84c3eacc7ba0 (1 revision) (#20906) 2020-08-31 11:23:02 -07:00
skia-flutter-autoroll
b0ab0fc111
Roll Skia from ffd61ca01246 to db5582b71116 (2 revisions) (#20904) 2020-08-31 11:18:01 -07:00
skia-flutter-autoroll
d30d05e41d
Roll Fuchsia Linux SDK from URyuiPqyX... to _SVZn8uN2... (#20903) 2020-08-31 11:13:02 -07:00
skia-flutter-autoroll
8d0f3b5877
Roll Fuchsia Mac SDK from _4kJfDM-L... to sI2DAAmSI... (#20902) 2020-08-31 11:08:02 -07:00
Emmanuel Garcia
52f62f14f7
Fix race condition (#20905) 2020-08-31 10:11:41 -07:00
skia-flutter-autoroll
06d92f1743
Roll Skia from c23eeb8c78ec to ffd61ca01246 (1 revision) (#20901) 2020-08-31 08:08:02 -07:00
skia-flutter-autoroll
c016319e14
Roll Skia from ba1e083d37f6 to c23eeb8c78ec (3 revisions) (#20893) 2020-08-31 01:58:01 -07:00
skia-flutter-autoroll
506d848829
Roll Skia from 85f51b2a409c to ba1e083d37f6 (1 revision) (#20892) 2020-08-30 22:58:01 -07:00
Chris Bracken
784e6d746e
Improve the precision of lerpDouble (#20879)
Reduces errors caused by the loss of floating point precision when the
two extrema of the lerp differ significantly in magnitude. Previously,
we used the calculation:

    a + (b - a) * t

When the difference in magnitude between `a` and `b` exceeds the
precision representable by double-precision floating point math, `b - a`
results in the larger-magnitude value of `a` or `b`. The error between
the value produced and the correct value is then scaled by t.

A simple example of the impact can be seen when `a` is significantly
larger in magnitude than `b`. In that case, `b - a` results in `a` and
when `t` is 1.0, the resulting value is `a - (a) * 1.0 == 0`.

The patch transforms the computation to the mathematically-equivalent
expression:

    a * (1.0 - t) + b * t

By scaling each value independently, the behaviour is more accurate.
From the point of view of performance, this adds an extra
multiplication, but multiplication is relatively cheap and the behaviour
is significantly better.

This patch also adds a `precisionErrorTolerance` constant to
test_utils.dart and migrates existing tests to use `closeTo()` for
testing.

The tests themselves *do* currently use values that have an exact
floating-point representation, but we should allow for flexibility in
future implementation changes.
2020-08-30 22:26:10 -07:00
Ferhat
bada9fc5f3
[web] Fix path clip crash when reused (#20846) 2020-08-30 19:35:39 -07:00
skia-flutter-autoroll
1e302a111d
Roll Fuchsia Mac SDK from Z0aq5SyVC... to _4kJfDM-L... (#20891) 2020-08-30 15:23:01 -07:00
skia-flutter-autoroll
d6f1fef151
Roll Fuchsia Linux SDK from UAi35C_0e... to URyuiPqyX... (#20889) 2020-08-30 11:33:01 -07:00
Chris Bracken
dbc9b1a856
lerpDouble: stricter handling of NaN and infinity (#20871)
Previously, the behaviour of lerpDouble with respect to NaN and infinity
was relatively complex and difficult to reason about. This patch
simplifies the behaviour with respect to those conditions and adds
documentation and tests.

In general, if `a == b` or both values are null, infinite, or NaN, `a`
is returned. Otherwise we require `a` and `b` and `t` to be finite or
null and the result of the linear interpolation is returned.
2020-08-30 11:08:59 -07:00
Chris Bracken
14ac65c9a2
Extract Dart test utilities library (#20874)
This extracts a Dart test utilities library, containing
`expectAssertion` and `expectArgumentError` functions that simplify
running tests that test assertions across debug, profile, and release
configurations.

This change also restricts Dart unit tests to testing files whose
filename matches `*_test.dart` under `flutter/testing/dart`; previously
any file in that directory was run, but all files matched the above
pattern.
2020-08-30 11:07:05 -07:00
skia-flutter-autoroll
8c57a39f11
Roll Skia from 3872c989512c to 85f51b2a409c (1 revision) (#20888) 2020-08-30 09:23:01 -07:00
skia-flutter-autoroll
31acf1fc8b
Roll Skia from d5961b33e87f to 3872c989512c (1 revision) (#20887) 2020-08-30 07:23:01 -07:00
skia-flutter-autoroll
ab9a06dde2
Roll Fuchsia Mac SDK from buv4PNHA2... to Z0aq5SyVC... (#20886) 2020-08-30 02:18:02 -07:00
skia-flutter-autoroll
9887b8aea7
Roll Skia from 8702b8f4444f to d5961b33e87f (1 revision) (#20885) 2020-08-30 00:48:01 -07:00
xster
15f5696c41
Add a java injector for testing (#20789) 2020-08-29 22:29:23 -07:00
skia-flutter-autoroll
cb9439afb5
Roll Fuchsia Linux SDK from KkG4iMAx5... to UAi35C_0e... (#20883) 2020-08-29 22:13:01 -07:00