2149 Commits

Author SHA1 Message Date
Jonah Williams
c7f720ba06 [web] cache canvaskit detection (flutter/engine#30954) 2022-01-22 08:49:42 -08:00
Ben Konyi
86f50b4af4 Preserve write permissions when uploading canvaskit to CIPD (flutter/engine#30960)
Related to https://github.com/dart-lang/sdk/issues/48010
2022-01-20 16:04:42 -08:00
LongCatIsLooong
6d5d1acc53 [Web Text Input] ensure the input element is put in the DOM on desktop safari (flutter/engine#30885) 2022-01-18 14:55:02 -08:00
Greg Spencer
62fbe04ce3 Remove redundant --template arguments from code samples (flutter/engine#30909)
This removes redundant --template arguments from the samples that I should have removed before in #30827 .

Also, fixed a bunch of spelling misteaks.
2022-01-18 14:19:51 -08:00
Greg Spencer
ebc5211ad2 Extract samples in text.dart to flutter/flutter's examples/api directory (flutter/engine#30827)
This extracts the API samples from ui/lib/text.dart so that they may be moved to flutter/flutter's examples/api/lib/ui directory.

No tests, comment only change.
2022-01-14 15:43:42 -08:00
Mouad Debbar
f111c9f844 [web] Move ui files to lib/ (flutter/engine#30051) 2022-01-14 11:20:10 -08:00
Konstantin Scheglov
653163cbf8 Remove unused field initializing formal parameters. (flutter/engine#30822) 2022-01-13 13:24:12 -08:00
b-luk
12675e3121 Add 'keyCode' field to eventData map created from html keyboard events. (flutter/engine#30801) 2022-01-11 12:35:10 -08:00
Mouad Debbar
f56d074001 [web] Remove EngineParagraph and ParagraphGeometricStyle (flutter/engine#30766) 2022-01-10 10:45:11 -08:00
Yegor
59ef334c8e [web] check that picture is not disposed prior to drawing it (flutter/engine#30720)
* check that picture is not disposed prior to drawing it
* use StateError instead of AssertionError
2022-01-07 13:37:58 -08:00
Yegor
fbf0cd4e31 [web] allow customizing Ahem URL using FontManifest.json (flutter/engine#30719) 2022-01-06 15:47:07 -08:00
Yegor
8f07a6e0b3 [web] flip browser image codec flag to opt-out (flutter/engine#30681) 2022-01-04 17:12:49 -08:00
Yegor
869cea5a64 [web] roll CanvasKit 0.32.0; fix frame order in animated images (flutter/engine#30680)
* roll CanvasKit 0.32.0
* Fix frame order in WASM image codecs
2022-01-04 16:01:20 -08:00
Tong Mu
779ae9ffa2 Impl and test (flutter/engine#30488) 2022-01-04 12:11:08 -08:00
eggfly
86bc4bd117 Improve documentation for arcToPoint's rotation units. (flutter/engine#30613) 2022-01-04 11:05:50 +08:00
Chinmay Garde
0b18437bc1 Move the major display list classes to their own translation units. (flutter/engine#30487)
No functional change. Makes the display list subsystem easier to navigate as the
major classes are in their own TUs. Also avoids importing unnecessary headers
when the previous kitchen sink header was imported. I've tried to remove all
display list related imports and start from scratch but I may have missed some
files. Minor structs and classes (like the ones in utils, ops, etc..) still
don't get their own TUs though.

There were [two](https://github.com/flutter/engine/pull/29562) [related](https://github.com/flutter/engine/pull/30484) changes being made to this subsystem that have since
landed. So I don't think I am stepping on anyones toes with the reorganization.
Happy to incorporate any work-in-progress changes being made to the this
subsystem before submitting.
2021-12-28 15:19:35 -08:00
Chinmay Garde
942f2a979f Move display list to its own library. (flutter/engine#30398) 2021-12-20 17:14:01 -08:00
Sam Rawlins
33b26ff5a7 Add missing return to nullably-typed functions (flutter/engine#30382) 2021-12-20 14:53:19 -08:00
Yegor
287b3c7652 [web] expire ImageDecoder after inactivity; implement toByteData (flutter/engine#30224)
* Expire `ImageDecoder` after inactivity to release memory
* Implement `toByteData` when using `ImageDecoder`
2021-12-14 12:49:33 -08:00
Yegor
831f7e12d7 [web] make new image decoder opt-in via experimental flag (flutter/engine#30324) 2021-12-14 12:47:37 -08:00
Jonah Williams
94ee03e40a Dont use TypedData.fromList if you dont have a list already (flutter/engine#30293) 2021-12-14 11:54:01 -08:00
Dan Field
87dcc5293f Optmize path volatility tracker (flutter/engine#30299) 2021-12-13 16:59:04 -08:00
Harry Terkelsen
4b41bad357 [canvaskit] Only dispose views to release overlays as long as there are overlays available (flutter/engine#30274) 2021-12-13 09:51:36 -08:00
Yegor
e7c4fcc17d [web] consolidate JS interop code (attempt 2) (flutter/engine#30161)
The original https://github.com/flutter/engine/pull/30007 was reverted
because it broke the framework. Turns out the framework still used the
WebExperiments code, which has been cleaned up in https://github.com/flutter/flutter/pull/94739.

This PR must land after https://github.com/flutter/flutter/pull/94739.

This reverts commit ae31d5a5d82c8091d859c27922e5f52e3a264286.
2021-12-07 09:27:06 -08:00
Jim Graham
ae31d5a5d8 Revert "[web] consolidate JS interop code (#30007)" (flutter/engine#30137)
This reverts commit 01a91d484eab5fae50381ab7c94fcdca9fbb56a9.
2021-12-04 18:54:31 -08:00
Mouad Debbar
5b1f788998 Update general_golden_test.dart (flutter/engine#30134) 2021-12-04 16:34:02 -08:00
Alexander Belokon
1c2fed029f [web] Fixing text foreground paint / stroke for HTML web-renderer (flutter/engine#29888) 2021-12-04 06:09:01 -08:00
Yegor
01a91d484e [web] consolidate JS interop code (flutter/engine#30007)
* Consolidate and check JavaScript access
* Remove all `ignore: implicit_dynamic_function`
* Add `js_access_test.dart` that validates JS access
* Make `engine.dart` an exports-only library
* Fix `sdk_rewriter_test.dart` and `ci/analyze.sh` (they skipped some tests)
2021-12-03 15:46:03 -08:00
MasahideMori-SimpleAppli
e9167f3e38 [Proposal] Improve Canvas Documentation (flutter/engine#30069)
For clarity, the text has been improved over when it was suggested.

Fixes https://github.com/flutter/flutter/issues/93190
2021-12-02 13:29:42 -08:00
Greg Spencer
aa6e038da6 Remove todos (flutter/engine#30002) 2021-12-02 12:49:18 -08:00
Jenn Magder
482453ff4d Roll web_installers simulators package (flutter/engine#30035) 2021-12-01 16:09:02 -08:00
Harry Terkelsen
ec599ab8d9 Fix sceneElement analysis error (flutter/engine#30038) 2021-12-01 10:31:37 -08:00
Harry Terkelsen
83631d17ee Non painting platform views (flutter/engine#30003) 2021-11-30 17:39:20 -08:00
Greg Spencer
e50f896589 Fix text height behavior macros (flutter/engine#30006) 2021-11-30 15:55:12 -08:00
Yegor
f9cd41081d [web] DomRenderer becomes FlutterViewEmbedder (flutter/engine#29994)
* [web] move useful utilities out DomRenderer
* [web] rename DomRenderer to FlutterViewEmbedder
2021-11-30 14:55:44 -08:00
eggfly
b841b405e2 Add a comment in Image.toByteData to limit more encoders (flutter/engine#29962) 2021-11-30 00:04:09 -08:00
Mouad Debbar
b44dfd45b3 [web] Use fuzzy matching in Gold (flutter/engine#29847) 2021-11-29 16:07:33 -05:00
Yegor
d9e349481c [web] clean-up dom_renderer.dart (flutter/engine#29934) 2021-11-29 09:26:53 -08:00
Yegor
608953bf4f [web] remove unused --unit-tests-only flag (flutter/engine#29906) 2021-11-24 18:08:40 -08:00
Yegor
4a81b38f3a [web] use typed SVG API (flutter/engine#29481) 2021-11-23 15:57:18 -08:00
Yegor
d76a9822ec [web] merge the README files into one (flutter/engine#29896) 2021-11-23 14:02:46 -08:00
Mouad Debbar
eadc6df16d [web] Fail if Skia Gold is required but unavailable (flutter/engine#29792) 2021-11-22 17:38:03 -08:00
Andrei Diaconu
5003f1a91f Reland: Display Features support (flutter/engine#29585) 2021-11-19 18:04:31 -08:00
Tong Mu
5183c56533 [Embedder] Send key data through message channel (flutter/engine#29795)
This PR changes how embedder API's SendKeyData sends ui.KeyData to the framework. The packets are now sent over the existing platform messenger, reusing the entirety of its code path and functionalities while keeping the embedder API unchanged
2021-11-18 17:53:28 -08:00
Yegor
2626d20f22 [web] move browser installation to BrowserEnvironment.prepare (flutter/engine#29801)
* [web] move browser installation to BrowserEnvironment.prepare

* reject attempts to install Chromium on LUCI
2021-11-18 15:23:36 -08:00
Zachary Anderson
78d9e276e2 Fix some clang-tidy lints for Linux host_debug (flutter/engine#29734) 2021-11-18 13:08:01 -08:00
Yegor
9a75a379aa [web] feature-detect and use ImageDecoder for all image decoding (flutter/engine#29419) 2021-11-18 10:01:02 -08:00
Yegor
2df67fa9d4 Roll to CanvasKit 0.31.0 (flutter/engine#29772)
* [web] roll CanvasKit to version 0.31.0
2021-11-17 15:53:58 -08:00
Zachary Anderson
03c0f7e453 Add 'explicit' to header files (flutter/engine#29741) 2021-11-17 12:49:16 -08:00
Jim Graham
6c74b3f717 Call DisplayList builder methods directly from dart canvas (flutter/engine#29714) 2021-11-16 14:18:04 -08:00