1336 Commits

Author SHA1 Message Date
nturgut
bf4cd9d73d Add a todo to felt (PR to rerun the tree) (flutter/engine#20025) 2020-07-25 21:12:15 -07:00
Jason Simmons
775070bf96 Upgrade the analyzer package to version 0.39.15 for Dart 2.10 support (flutter/engine#20024) 2020-07-24 18:26:43 -07:00
Jason Simmons
99192706be Add Dart 2.10 annotations to the web engine sources (flutter/engine#20019) 2020-07-24 15:56:17 -07:00
Jonah Williams
b6aadb0406 [null-safety] fix real type failures in web engine (flutter/engine#20010)
remove extra null checks
2020-07-24 12:37:35 -07:00
Siva
4f1710e807 Manual merge of Dart a3815b6590...24c7666def (flutter/engine#19967)
* Manual merge or Dart into flutter a3815b6590...24c7666def

dart-lang/sdk@24c7666def Update tests that have the current version number hardcoded
dart-lang/sdk@f88ce7aef5 Increase Dart version to 2.10

* Update language version.

* Update license.

* Hpdate language version.

* Update license.
2020-07-24 11:00:34 -07:00
nturgut
fe01de71bf Address platform changes in the integration tests. (flutter/engine#20008) 2020-07-24 10:52:57 -07:00
gaaclarke
ee0e1788d9 Made the linter print out more information in its output and fixed bugs (flutter/engine#19895) 2020-07-22 15:38:09 -07:00
Harry Terkelsen
874d729d5a Roll CanvasKit to 0.17.2 (flutter/engine#19960) 2020-07-22 13:29:53 -07:00
Ferhat
cf8cbbd9e1 [web] Prevent crash when restore is called incorrectly after recording ends. (flutter/engine#19948)
* Prevent crash when restore is called after picture recording ends
* Addressed reviewer comments
2020-07-22 12:55:22 -07:00
Ferhat
1ab64f15b3 [web] Fixes arc scaling when counter clockwise (flutter/engine#19927)
* [web] Fix arc scaling when counter clockwise
* update golden write
* Removed unused var
2020-07-22 10:02:07 -07:00
Dan Field
baa6f4ac3c Refactor instantiateImageCodec/decodeImageFromPixels to provide an ImageDescriptor (flutter/engine#19537)
Refactors instantiateImageCodec and decodeImageFromPixels to provide intermediate data about the image width, height, and bytes per pixel. This allows for more fine grained control from Dart, particularly when trying to reason about how or whether to maintain aspect ratio in the targetWidth/targetHeight parameters.

This leaves the existing methods functional by re-implementing them to use the new ImmutableBuffer/ImageDescriptor class.

The ImmutableBuffer class is provided so that callers can avoid copying the image data multiple times if they wish to re-recreate the image descriptor.

Related Issues
2020-07-21 14:59:18 -07:00
Harry Terkelsen
9ee17b93f7 Mark used pictures so they aren't deleted on the next frame. (flutter/engine#19913) 2020-07-21 09:13:14 -07:00
Jason Simmons
7a223e5734 Fix failing Dart analyzer checks in the web UI tests (flutter/engine#19871) 2020-07-19 21:50:54 -07:00
Yegor
88a5bfb010 Allow custom CanvasKit URL (flutter/engine#19822) 2020-07-17 16:44:57 -07:00
Mouad Debbar
a5b27c369e [web] Cache line break property lookups (flutter/engine#19846) 2020-07-17 14:48:56 -07:00
Yegor
8e65af9882 JS-interop clean-up (flutter/engine#19850) 2020-07-17 13:15:15 -07:00
Yegor
c15ec725d2 Add CPU-only rendering mode for CanvasKit as a fallback (flutter/engine#19823)
* Add CPU-only rendering mode for CanvasKit as a fallback
2020-07-17 11:28:18 -07:00
Mouad Debbar
9c1e8407a2 [web] Improve perf and code size of line breaker (flutter/engine#19787) 2020-07-16 16:56:05 -07:00
gaaclarke
96ba83732d Added a more complete docstring for SemanticsFlags (flutter/engine#19817) 2020-07-16 13:13:26 -07:00
Yegor
9360b355ec Move CkCanvas to new JS-interop (flutter/engine#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
78f0fc74d9 Add all system cursors (engine) (flutter/engine#19550)
* Support all system cursors in WIn, Linux, mac, Web and Android.
2020-07-15 15:37:18 -07:00
Mouad Debbar
6f800ecb40 [web][3/3] Handle surrogate during line break detection (flutter/engine#19745) 2020-07-15 12:29:52 -07:00
Zachary Anderson
c6313931cb Revert "Avoid a copy in EncodeImage (#19504)" (flutter/engine#19739)
This reverts commit dad9640ddef265e1c62433c0044dde04723b5653.
2020-07-14 10:29:34 -07:00
nturgut
d831e5aa86 Migrating web_analysis from Cirrus to LUCI (PART 1) (flutter/engine#19726)
* adding a script for web_analysis for using from luci.

* addressing reviewer comments
2020-07-14 10:14:31 -07:00
Mouad Debbar
9cdf5e4208 [web][2/3] Implement rules of the line break algorithm (flutter/engine#19610) 2020-07-14 09:31:40 -07:00
Yegor
55f9686982 Rebuild CkPath on top of @JS bindings with 3.28x speed-up on the path benchmark (flutter/engine#19694)
* SkPath bindings
* CkPath uses SkPath
2020-07-14 09:09:00 -07:00
David Worsham
cbd3cd9c0d fuchsia: Enable most unittests (flutter/engine#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
fd68000d9c [web] Implement ulps for path ops (flutter/engine#19711)
* Implement ulps for path ops
* Address review comments
* cache abs()
* dartfmt and update licenses
2020-07-13 13:43:11 -07:00
nturgut
70de7f832c Support decimal information on the TextInputType (flutter/engine#19664)
* adding decimal inoutmode

* change intentation
2020-07-13 13:08:54 -07:00
Yegor
b81f1d369c CkPaint uses SkPaint (flutter/engine#19562) 2020-07-11 11:34:42 -07:00
Srujan Gaddam
42c28d6091 Incorporate compat info changes into flutter engine (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
dad9640dde Avoid a copy in EncodeImage (flutter/engine#19504) 2020-07-10 14:36:13 -07:00
nturgut
5e7a8abf87 don't throw error for the new autofill request (flutter/engine#19633)
* don't throw error for the new autofill request

* change comment
2020-07-10 13:58:19 -07:00
nturgut
4815ac39ef using text capitalization value in web (flutter/engine#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
402412982f Use identical in hashValues instead of operator== (flutter/engine#19615) 2020-07-09 20:29:33 -04:00
Ferhat
13f0e9a583 [web] Update SurfacePath to use PathRef (flutter/engine#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
9a39551dfb Clarify the relationship between PictureRecorder and Canvas (flutter/engine#19393) 2020-07-09 11:06:03 -07:00
Luigi Rosso
4185636e42 Add CanvasKit platform support for Skia.setResourceCacheMaxBytes. (flutter/engine#19254)
* Add CanvasKit platform support for Skia.setResourceCacheMaxBytes.
2020-07-09 10:12:24 -07:00
Mouad Debbar
595c7b52d6 [web][1/3] Start first batch of auto-generated (already passing) tests for line break (flutter/engine#19586) 2020-07-08 12:06:00 -07:00
Harry Terkelsen
7a175320be [CanvasKit] Dispose the overlay surface when a platform view is disposed (flutter/engine#19546) 2020-07-07 14:32:20 -07:00
Kaushik Iska
8818677dfd Track motion events for reuse post gesture disambiguation (flutter/engine#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
d278b259b5 [web] Move surface path code (flutter/engine#19533)
* Move surface path code
* Update licenses_flutter
* dartfmt
2020-07-06 17:02:30 -07:00
Jason Simmons
510a29622a Pin the version of meta used by web_ui (flutter/engine#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
078629ad1e First batch of CanvasKit bindings using @JS (flutter/engine#19450)
* first batch of @JS bindings
2020-07-01 18:30:58 -07:00
Guruji Panda
cf740767d5 Fix paths in source and yaml files to minimize changes in google3 (flutter/engine#19414) 2020-07-01 16:13:03 -07:00
Yegor
a9d7e7129b Rename Sk* classes to Ck* in preparation for @JS migration (flutter/engine#19423) 2020-06-30 18:01:44 -07:00
Alexandre Ardhuin
2c2e5f362c Operator equals (flutter/engine#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00
liyuqian
02f828632c Use FixtureTest to remove duplicate code (flutter/engine#19219)
Fixes https://github.com/flutter/flutter/issues/59109
2020-06-30 10:55:38 -07:00
Harry Terkelsen
caa3fb9ff3 Cache CanvasKit objects and delete if not used. (flutter/engine#19341) 2020-06-29 16:40:57 -07:00
Yegor
b0a55b693d migrate web engine implementation to null-safe Dart (flutter/engine#19172)
Migrate dart:_engine to null safe dart
2020-06-26 14:13:01 -07:00