2260 Commits

Author SHA1 Message Date
Jackson Gardner
af7fb1d68b Reuse the same temporary canvas for creating shader images (flutter/engine#32864) 2022-04-27 14:14:01 -07:00
David Iglesias
8109f3937f [web][ck] Don't remove (then add) embedded views. (flutter/engine#32948) 2022-04-27 11:09:05 -07:00
joshualitt
f4da172696 [web] Migrate Flutter Web to JS static interop - 15. (flutter/engine#32684) 2022-04-27 08:29:33 -07:00
Yegor
d6af36f7ce [web] fix re-enabling tappable semantic elements (flutter/engine#32932) 2022-04-26 13:26:00 -07:00
Zachary Anderson
c09bd83900 Revert "[web] Migrate Flutter Web to JS static interop - 14. (#32683)" (flutter/engine#32919)
This reverts commit 433198af5fe7f9151b4f131bccb6e14e625e7960.
2022-04-25 19:37:53 -07:00
joshualitt
433198af5f [web] Migrate Flutter Web to JS static interop - 14. (flutter/engine#32683) 2022-04-25 13:56:02 -07:00
joshualitt
4cfb291564 [web] Migrate Flutter Web to JS static interop - 13. (flutter/engine#32660) 2022-04-25 09:25:30 -07:00
joshualitt
774ea27c91 [web] Migrate Flutter Web to JS static interop - 11. (flutter/engine#32653) 2022-04-23 09:09:28 -07:00
joshualitt
cb089e75d3 [web] Migrate Flutter Web to JS static interop - 12. (flutter/engine#32655) 2022-04-22 14:32:25 -07:00
Yegor
8486eeb84a [web] add test that repros https://skbug.com/12721 (flutter/engine#32851) 2022-04-22 14:28:33 -07:00
Dan Field
9e46531319 Remove redundant trace events (flutter/engine#32812) 2022-04-21 13:28:03 -07:00
joshualitt
ee58d474e4 [web] Migrate Flutter Web to JS static interop - 10. (flutter/engine#32596) 2022-04-21 08:23:30 -07:00
Chris Bracken
191c992268 Eliminate use of Dart new keyword in doc comments (flutter/engine#32823)
We made the Dart 'new' keyword optional years ago, but appears we missed
removing it in a few doc comments.
2022-04-20 17:08:08 -07:00
Chris Bracken
a970f9766a Minor unique_ptr initialization cleanup (flutter/engine#32821)
Cleans up a few cases of std::unique_ptr(new T) that could have been
using std::make_unique<T>(...).
2022-04-20 17:08:00 -07:00
joshualitt
7bdc84940d [web] Migrate Flutter Web to JS static interop - 9. (flutter/engine#32564) 2022-04-20 16:01:12 -07:00
joshualitt
ff28ce9d6a [web] Migrate Flutter Web to JS static interop - 8. (flutter/engine#32550) 2022-04-20 11:26:17 -07:00
Jason Simmons
c8aa503a12 Fix the CanvasPath::CreateNew signature to avoid unnecessary Dart API::NewError calls (flutter/engine#32791) 2022-04-20 07:24:04 -07:00
Yegor
9c1a45379c [web] move some vector functions into vector_math.dart (flutter/engine#32782) 2022-04-19 16:44:04 -07:00
Yegor
b9f11553e7 [web] tighten paragraph bounds estimate (flutter/engine#31272)
* [web] tighten paragraph bounds estimate
2022-04-18 17:09:10 -07:00
Yegor
8e7d3bfe72 [web:a11y] fix traversal and hit-test orders (flutter/engine#32712)
* [web:a11y] implement traversal and hit-test orders
* remove unused intersectionIndicesNew
* canvaskit: fix platform view offset and scene host initialization
* remove "we" in a bunch of comments
2022-04-18 16:57:00 -07:00
Yegor
d077370165 [web] do not allocate canvases just for text (flutter/engine#30804) 2022-04-18 12:09:04 -07:00
joshualitt
cb20b7961f [web] Migrate Flutter Web to JS static interop - 6. (flutter/engine#32514) 2022-04-14 15:11:36 -07:00
Jim Graham
1c35cc7dc2 make sure to sync PathEffet to null for Dart Canvas rendering (flutter/engine#32672) 2022-04-14 12:39:04 -07:00
joshualitt
058a2cc62c [web] Migrate Flutter Web to JS static interop - 7. (flutter/engine#32519) 2022-04-14 12:08:09 -07:00
Dan Field
54c6c59f40 Roll Impeller to flutter/impeller@5b60aea4ae (flutter/engine#32679) 2022-04-14 11:34:04 -07:00
Kaushik Iska
34b8d9e5d0 Revert "Roll impeller to flutter/impeller@a93986f7e5 (#32658)" (flutter/engine#32677)
This reverts commit 05f6174e7f27154a00cc07850c26f9356a41de96.
2022-04-14 11:52:18 -04:00
Dan Field
05f6174e7f Roll impeller to flutter/impeller@a93986f7e5 (flutter/engine#32658) 2022-04-13 22:59:04 -07:00
joshualitt
c4ebefe3ed [web] Migrate Flutter Web to JS static interop - 5. (flutter/engine#32509) 2022-04-13 18:28:04 -07:00
joshualitt
a9622821ec [web] Migrate Flutter Web to JS static interop - 3. (flutter/engine#32458) 2022-04-13 16:04:33 -07:00
joshualitt
51b7b46bcc [web] Migrate Flutter Web to JS static interop - 4. (flutter/engine#32466) 2022-04-13 14:10:33 -07:00
Yegor
f6c36b8c51 fix races associated with unawaited futures (flutter/engine#32593) 2022-04-12 13:49:49 -07:00
Dan Field
4101b52aca Unify unhandled error reporting, add PlatformDispatcher.onError (flutter/engine#32078) 2022-04-09 14:44:04 -07:00
skia-flutter-autoroll
74e1b45536 Roll Dart SDK from 760722f8224b to d80a054dc99a (16 revisions) (flutter/engine#32520)
* Roll Dart SDK from 760722f8224b to d80a054dc99a (16 revisions)

https://dart.googlesource.com/sdk.git/+log/760722f8224b..d80a054dc99a

2022-04-08 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-282.0.dev
2022-04-07 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-281.0.dev
2022-04-07 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-280.0.dev
2022-04-07 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-279.0.dev
2022-04-07 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-278.0.dev
2022-04-06 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-277.0.dev
2022-04-06 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-276.0.dev
2022-04-06 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-275.0.dev
2022-04-05 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-274.0.dev
2022-04-05 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-273.0.dev
2022-04-05 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-272.0.dev
2022-04-04 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-271.0.dev
2022-04-04 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-270.0.dev
2022-04-02 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-269.0.dev
2022-04-02 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-268.0.dev
2022-04-02 dart-internal-sdk-dev-roller@dart-ci-internal.iam.gserviceaccount.com Version 2.17.0-267.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 aaclarke@google.com,dart-vm-team@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter Engine: https://github.com/flutter/flutter/issues/new/choose

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/main/autoroll/README.md

* Updates for bin_to_coff.py changes.

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2022-04-07 21:46:44 -07:00
joshualitt
992d922cd9 [web] Migrate Flutter Web to JS static interop - 2 (flutter/engine#32427) 2022-04-06 16:12:01 -07:00
Jason Simmons
c59cb17ab9 Warn about invalid arguments to ColorFilter.mode (flutter/engine#32269) 2022-04-06 16:11:04 -07:00
Chris Bracken
6b7a734450 Uncomment SemanticsFlag.isMultiline in enums (flutter/engine#32440)
Uncomments the Java Flag.IS_MULTILINE and C++ SemanticsFlag.kIsMultiline
enum values. While these values aren't used in the Android or iOS
embeddings, in practice we maintain the same set of enum values across
all embeddings so as to match the public API defined in dart:ui, found
in lib/ui/semantics/semantics.dart.

This also helps with automated checking that all enums across all
languages are consistent.

This will be added to the embedder API in
https://github.com/flutter/engine/pull/32332.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-06 09:59:48 -07:00
Jim Graham
b8d19a2d36 assertion failure on empty indices in ui.Vertices constructor (flutter/engine#32434) 2022-04-05 14:56:04 -07:00
joshualitt
a90e631f77 [web] Migrate Flutter Web to JS static interop - 1. (flutter/engine#32407)
This is the first CL in a series of cls to migrate Flutter Web to JS
static interop.
2022-04-05 12:07:22 -07:00
Yegor
0679c5d5af [web] improve types using a firstWhereOrNull utility (flutter/engine#32392)
* [web] improve types using a firstWhereOrNull utility
2022-04-05 10:14:05 -07:00
Chris Bracken
9710156fe2 Fix SemanticsAction naming consistency (flutter/engine#32411)
Removes the `Index` suffix from kMoveCursorForwardByWord and
kMoveCursorBackwardByWord values in the SemanticsAction enum. These were
erroneously copied as-is from the private class members in the dart:ui
implementation in lib/ui/semantics/semantics.dart where the class
members refer to the enum index here. This removes the trailing `Index`
for consistency with the other enum members here.

This is also useful in the context of automated testing for API
consistency between these enums, the ones in dart:ui (native and web
implementations) and the embedder API.

Issue: https://github.com/flutter/flutter/issues/101217
2022-04-04 17:07:05 -07:00
Chris Bracken
a551b91c78 Fix inconsistent enum/class private member naming (flutter/engine#32409)
Classes that model enums in dart:ui typically name fields modelling the
enum values as `_kFooIndex`. This associated value matches the enum
value from embedder.h.

In https://github.com/flutter/engine/pull/32408 we add a test that
verifies that dart:ui classes model the same set of values in the native
implementation, the web_ui implementation, and the embedder API. Testing
this is much simpler if we use consistent naming for all enum values.

Issue: https://github.com/flutter/engine/pull/32408
2022-04-04 13:17:07 -07:00
fzyzcjy
a6ca392650 Create ImageFilter.dilate/ImageFilter.erode (flutter/engine#32334) 2022-04-04 13:01:02 -07:00
ColdPaleLight
42c38f7e45 Fix fatal crash of ImageDecoderFixtureTest.ExifDataIsRespectedOnDecode (flutter/engine#32356) 2022-03-31 13:04:55 -07:00
Jim Graham
93be6c2ec4 Add dl vertices object (flutter/engine#32329) 2022-03-31 00:15:04 -07:00
Jason Simmons
4c53a23215 Web HTML support for variable fonts (flutter/engine#32327) 2022-03-30 13:45:01 -07:00
Harry Terkelsen
35c94c61e6 [web] Make "felt build" wait for both engine and canvaskit builds (flutter/engine#32308) 2022-03-30 13:34:08 -07:00
Chinmay Garde
351494f717 Add support for images in display lists. (flutter/engine#32268) 2022-03-30 13:31:37 -07:00
Chris Bracken
932759cb03 [macOS] Generate gen_snapshot_$arch by default (flutter/engine#32326) 2022-03-30 13:30:08 -07:00
David Iglesias
9f63c7a75d [web] webOnlyWarmupEngine + js-interop APIs (flutter/engine#32017) 2022-03-30 13:30:05 -07:00
Mouad Debbar
cd297aec21 [web] Correct text baseline when rendering to DOM (flutter/engine#32298) 2022-03-29 07:55:03 -07:00