1340 Commits

Author SHA1 Message Date
Yegor
e51642e450
JS-interop clean-up (#19850) 2020-07-17 13:15:15 -07:00
Yegor
842abd8d49
Add CPU-only rendering mode for CanvasKit as a fallback (#19823)
* Add CPU-only rendering mode for CanvasKit as a fallback
2020-07-17 11:28:18 -07:00
Mouad Debbar
685545c6b6
[web] Improve perf and code size of line breaker (#19787) 2020-07-16 16:56:05 -07:00
gaaclarke
494e4e7e21
Added a more complete docstring for SemanticsFlags (#19817) 2020-07-16 13:13:26 -07:00
Yegor
94b23abaae
Move CkCanvas to new JS-interop (#19748)
* Move CkCanvas to new JS-interop
* Make SkiaObject compatible with JS-interop; text bindings
* fix drawVertices
2020-07-16 11:56:37 -07:00
Tong Mu
fbef051f5c
Add all system cursors (engine) (#19550)
* Support all system cursors in WIn, Linux, mac, Web and Android.
2020-07-15 15:37:18 -07:00
Mouad Debbar
86f1b645f3
[web][3/3] Handle surrogate during line break detection (#19745) 2020-07-15 12:29:52 -07:00
Zachary Anderson
72d0c364a7
Revert "Avoid a copy in EncodeImage (#19504)" (#19739)
This reverts commit f9acd080b3cb27342dd1f15da12635457ef6830a.
2020-07-14 10:29:34 -07:00
nturgut
da8defdc5f
Migrating web_analysis from Cirrus to LUCI (PART 1) (#19726)
* adding a script for web_analysis for using from luci.

* addressing reviewer comments
2020-07-14 10:14:31 -07:00
Mouad Debbar
480d3e72f9
[web][2/3] Implement rules of the line break algorithm (#19610) 2020-07-14 09:31:40 -07:00
Yegor
d0b8706936
Rebuild CkPath on top of @JS bindings with 3.28x speed-up on the path benchmark (#19694)
* SkPath bindings
* CkPath uses SkPath
2020-07-14 09:09:00 -07:00
David Worsham
9353692cdb
fuchsia: Enable most unittests (#19583)
Tweak the primary flutter build rule so that fuchsia is more similar to
other platforms in how tests and the shell are built.

Only embedder_unittests and GLFW tests are disabled on Fuchsia now.

TEST: Ran unittests on host/fuchsia; workstation on fuchsia
BUG: fxb/53847, fxb/54056
2020-07-13 17:36:19 -07:00
Ferhat
df23044897
[web] Implement ulps for path ops (#19711)
* Implement ulps for path ops
* Address review comments
* cache abs()
* dartfmt and update licenses
2020-07-13 13:43:11 -07:00
nturgut
1e02bfd6a8
Support decimal information on the TextInputType (#19664)
* adding decimal inoutmode

* change intentation
2020-07-13 13:08:54 -07:00
Yegor
c99deb009a
CkPaint uses SkPaint (#19562) 2020-07-11 11:34:42 -07:00
Srujan Gaddam
f3be9f1bc4
Incorporate compat info changes into flutter engine (#19606)
Changes related to compatibility info require changes in
Flutter engine libraries. This CL adds null-asserts wherever
necessary to maintain behavior and adds some small modifications
to handle the change in nullability. Warnings about unnecessary
null assertions are disabled temporarily in this CL as well.

Original issue: https://github.com/dart-lang/sdk/issues/41905
2020-07-10 16:49:58 -07:00
Zachary Anderson
f9acd080b3
Avoid a copy in EncodeImage (#19504) 2020-07-10 14:36:13 -07:00
nturgut
dfd0727153
don't throw error for the new autofill request (#19633)
* don't throw error for the new autofill request

* change comment
2020-07-10 13:58:19 -07:00
nturgut
b16c47d57a
using text capitalization value in web (#19564)
* using text capitalization value in web engine

* update editing state

* add capitalization support to autofill fields

* add autocapitalize attribute for mobile browsers which effects on screen keyboards

* removing changes on the input value. only keeping onscreen keyboard changes

* update unit tests. tests are added for ios-safari. android chrome is still not supported

* changing license files this time don't update LICENSES file

* Update licenses_flutter

* addresing reviewer comments
2020-07-09 20:25:51 -07:00
Andre
69fdf6d1b5
Use identical in hashValues instead of operator== (#19615) 2020-07-09 20:29:33 -04:00
Ferhat
f10f172573
[web] Update SurfacePath to use PathRef (#19557)
* Update SurfacePath to use PathRef
* Fix test analysis errors
* Switch DDRect to use path to reduce paint time processing
* Implement toString() for debug mode
* Fix contains (bounds inclusive) edge case, add test
* Update recording canvas test for drawDRRect change
* Update diffrate for arc/conic render change
* Add test for winding for beveled border. Fix checkOnCurve
* Fix mono quad winding on curve check
* fix _chopCubicAtYExtrema and add test case
* Address reviewer comments / setAll API usage
2020-07-09 13:55:39 -07:00
Jason Simmons
a48f05f833
Clarify the relationship between PictureRecorder and Canvas (#19393) 2020-07-09 11:06:03 -07:00
Luigi Rosso
29e256a709
Add CanvasKit platform support for Skia.setResourceCacheMaxBytes. (#19254)
* Add CanvasKit platform support for Skia.setResourceCacheMaxBytes.
2020-07-09 10:12:24 -07:00
Mouad Debbar
0ec6f6c3f2
[web][1/3] Start first batch of auto-generated (already passing) tests for line break (#19586) 2020-07-08 12:06:00 -07:00
Harry Terkelsen
a15bc1be26
[CanvasKit] Dispose the overlay surface when a platform view is disposed (#19546) 2020-07-07 14:32:20 -07:00
Kaushik Iska
110a57983b
Track motion events for reuse post gesture disambiguation (#19484)
This change makes it so that we track all the motion events encountered by `FlutterView` and all of its subviews in the `MotionEventTracker` class, indexed by a unique `MotionEventId`. This identifier is then passed to the Flutter framework as seen in https://github.com/flutter/flutter/pull/60930. Once the gestures take part in gesture disambiguation and are sent back to the engine, we look-up the original motion event using the `MotionEventId` and dispatch it to the platform.

Bug: https://github.com/flutter/flutter/issues/58837
2020-07-06 22:22:37 -07:00
Ferhat
fd54e75c52
[web] Move surface path code (#19533)
* Move surface path code
* Update licenses_flutter
* dartfmt
2020-07-06 17:02:30 -07:00
Jason Simmons
d1defbfc9a
Pin the version of meta used by web_ui (#19544)
The latest version of meta now exports "unawaited", which conflicts with the
version of test_api currently used by web_ui.
2020-07-06 14:16:14 -07:00
Yegor
d0e06d93cb
First batch of CanvasKit bindings using @JS (#19450)
* first batch of @JS bindings
2020-07-01 18:30:58 -07:00
Guruji Panda
01345f5372
Fix paths in source and yaml files to minimize changes in google3 (#19414) 2020-07-01 16:13:03 -07:00
Yegor
712f619737
Rename Sk* classes to Ck* in preparation for @JS migration (#19423) 2020-06-30 18:01:44 -07:00
Alexandre Ardhuin
218d98f4d8
Operator equals (#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00
liyuqian
e9e59f4e2b
Use FixtureTest to remove duplicate code (#19219)
Fixes https://github.com/flutter/flutter/issues/59109
2020-06-30 10:55:38 -07:00
Harry Terkelsen
f6a95deb73
Cache CanvasKit objects and delete if not used. (#19341) 2020-06-29 16:40:57 -07:00
Yegor
de74f8a581
migrate web engine implementation to null-safe Dart (#19172)
Migrate dart:_engine to null safe dart
2020-06-26 14:13:01 -07:00
David Worsham
220a831028
Move fuchsia/scenic integration behind #define (#19003)
Additionally create "_next" permutations for all of the test binaries
on Fuchsia, in order to test both code-paths.

Using the #define follow-up CLs can also create a flutter_runner_next
binary that does not contain any legacy integration code.

BUG: 53847
2020-06-26 14:03:18 -07:00
nturgut
760366b474
Autofill Menu appears on top left of the page (#19030)
* fixing the position of the form

* only apply the fix to blink based desktop browsers

* remove extra log

* address reviewer comments

* addressing reviewer comments

* adding more comments for chrome behavior
2020-06-25 14:19:48 -07:00
Harry Terkelsen
b5691124a3
Add more logging for when assets fail to load (#19241) 2020-06-25 14:02:34 -07:00
nturgut
d758e069da
collect logs using the new web_installers repo (#19298) 2020-06-25 10:27:53 -07:00
nturgut
2c04b9ab8e
skip ios safari tests on felt level (#19280)
* skip ios safari tests on felt level

* instead of skipping use the new web_installers repo

* re-skip the test. led run failed with another error

* remove led json
2020-06-24 20:51:38 -07:00
nturgut
3fcf5463b9
Run IOS unit tests on LUCI (#19141)
* change the version of simulator. luci bots only has 13.0

* skip failing pointer binding tests

* skip path_metrics (canvaskit) and a method from surface_test

* fix analyzer errors

* remove extra added touch event context test

* removing left overs for screenshot debugging

* apply reviewers suggestion for skipping tests
2020-06-23 15:22:01 -07:00
nturgut
683cc1594d
Enable firefox integration tests (#19164)
* firefox integration tests enable

* addressing reviewer comments
2020-06-22 13:16:57 -07:00
Ferhat
f16a16eaf6
Fix fonts.clear exception in IE11 (#19180) 2020-06-22 09:24:31 -07:00
Gary Qian
637a8e7cd0
Revert method channel platform resolved locale (#19136) 2020-06-19 17:40:22 -07:00
Ferhat
b8654ff0f5
[web] Fix conic to quad conversion assertion. (#18811)
* Fix subdivision assertion in Conic to Quad conversion

* Use const for upper bound

* remove unused import
2020-06-19 17:01:45 -07:00
Luigi Rosso
a5a212200b
Fix issue with cubic bounds misaligning. (#19054)
Merging on infra flake on embedder.cc
2020-06-19 16:45:19 -07:00
Jason Simmons
91a63d6a44
Remove obsolete comment from web_ui pubspec (#19100) 2020-06-19 15:28:02 -07:00
Jonah Williams
676cd566f7
[nnbd] build platform dill in agnostic mode (#19167)
In agnostic mode, both sound and unsound modes are supported.
2020-06-19 13:26:50 -07:00
nturgut
a358e99a6e
[web] Running integration tests on Safari on Local (#18488)
* rebase. carry driver functionality to drivermanager

* rebase. nabling integration tests on Safari on MacOS

* addressing reviewer comments, updating web_drivers dependency commit number

* addressing reviewer comments

* addressing reviewer comments
2020-06-18 16:48:04 -07:00
Harry Terkelsen
40ef2e5b14
Roll CanvasKit to 0.16.2. (#19011) 2020-06-18 10:54:48 -07:00