1364 Commits

Author SHA1 Message Date
Michael Goderbauer
19368efcc3
Fix dartdocs of dart:ui (#20140) 2020-07-29 23:56:02 -07:00
Mouad Debbar
f288fe563d
[web] Enable canvas measurement by default (#19924) 2020-07-29 16:18:07 -07:00
Siva
b955e15ee9
Manual roll of Dart from 24c7666def...40fd1c456e (#20092)
* Manual roll of Dart from 24c7666def...40fd1c456e

dart-lang/sdk@40fd1c456e Revert "[dart:io] Add Abort() on HttpClientRequest"
dart-lang/sdk@17d7296a42 [vm/nnbd/bytecode] Fix reuse of type arguments in bytecode
dart-lang/sdk@58b6f40c73 Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns. (reland)
dart-lang/sdk@fc8a6d9f9b [VM/compiler] Dereference TypeRef literal when propagating constants.
dart-lang/sdk@0689ec527a Move "test.dart" (well, most of its contents) into pkg/test_runner.
dart-lang/sdk@1094b3c61d Prepare static error test updater tool to handle web tests.
dart-lang/sdk@b258585f2f [observatory] Migrate from deprecated isInstanceOf to isA.
dart-lang/sdk@dfe1d9b682 Disable OverrideContributor for Cider.
dart-lang/sdk@aea99b2f5c scope debug property assist to Diagnosticables
dart-lang/sdk@4b96f20a79 [dart:io] Add Abort() on HttpClientRequest
dart-lang/sdk@1b1a39708c [build] Use frameworks instead of libs
dart-lang/sdk@3fef522496 Revert "Reland "[vm] Replaces fuchsia.deprecatedtimezone""
dart-lang/sdk@8c664d4f3f Revert "Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns."
dart-lang/sdk@2efb5bebc7 [ dart:_http ] Fix typo in HTTP response timeline event
dart-lang/sdk@0884dae36c Revert "Fix the #include path for ICU headers"
dart-lang/sdk@5171534e81 Scope tweaks. Report REFERENCED_BEFORE_DECLARATION in more places.
dart-lang/sdk@6bba75079a Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
dart-lang/sdk@b4ebbb7f5c [build] Update gn to match Fuchsia
dart-lang/sdk@cb428a7a02 [dart2js] Remove old bug work around in collector.
dart-lang/sdk@08663c20ab Change flutter patch to match existing DEPS on master branch
dart-lang/sdk@146ad014d9 update js/meta for the 2.10 dev sdk
dart-lang/sdk@488c718793 [co19] Roll co19 to d79951e06e443213243e54c2c32694b79a221b65
dart-lang/sdk@ba20edd7be Add patch for flutter-engine when changing to version 2.10

* Rev buildroot to latest version.

* Update license.

* update.

* Update gn revision.

* Format BUILD.gn files as the gn revision has been updated.
2020-07-29 13:10:15 -07:00
Mouad Debbar
f0cc38fdb5
[web] Set correct defaults for text in canvas (#20067) 2020-07-29 08:56:42 -07:00
Dan Field
1ba310017c
support fallback codecs on Windows, macOS, iOS (#19989) 2020-07-28 17:46:02 -07:00
Adlai Holler
c57aff1800
Use the GrDirectContext factories instead of deprecated GrContext ones (#19962)
This is part of a larger effort to expose the difference between GrDirectContext,
which runs on the GPU thread and can directly perform operations like uploading
textures, and GrRecordingContext, which can only queue up work to be delivered
to the GrDirectContext later.
2020-07-28 13:32:09 -07:00
nturgut
d2d02917d9
[a11y-web] Semantics fix (#19898)
* fixinf enable semantics

* fix unit tests

* fix indentation

* addressing reviewer comments

* fix comment

* make commnt starts upper case

* fix grammar in comment

* Add one more comment
2020-07-28 10:29:02 -07:00
nturgut
4220301e40
re-enable integration tests. increase sdk version. (#20075) 2020-07-27 19:37:47 -07:00
nturgut
f27729e97b
both trees are red, stop running integration tests (#20060) 2020-07-27 11:15:56 -07:00
nturgut
c0ac43da97
Add a todo to felt (PR to rerun the tree) (#20025) 2020-07-25 21:12:15 -07:00
Jason Simmons
b48566470c
Upgrade the analyzer package to version 0.39.15 for Dart 2.10 support (#20024) 2020-07-24 18:26:43 -07:00
Jason Simmons
02c11acc24
Add Dart 2.10 annotations to the web engine sources (#20019) 2020-07-24 15:56:17 -07:00
Jonah Williams
9dac7148e1
[null-safety] fix real type failures in web engine (#20010)
remove extra null checks
2020-07-24 12:37:35 -07:00
Siva
3bb6cc265e
Manual merge of Dart a3815b6590...24c7666def (#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
debb36da5d
Address platform changes in the integration tests. (#20008) 2020-07-24 10:52:57 -07:00
gaaclarke
21efd7325e
Made the linter print out more information in its output and fixed bugs (#19895) 2020-07-22 15:38:09 -07:00
Harry Terkelsen
fa1526221f
Roll CanvasKit to 0.17.2 (#19960) 2020-07-22 13:29:53 -07:00
Ferhat
37fa2850d1
[web] Prevent crash when restore is called incorrectly after recording ends. (#19948)
* Prevent crash when restore is called after picture recording ends
* Addressed reviewer comments
2020-07-22 12:55:22 -07:00
Ferhat
5d921fcb57
[web] Fixes arc scaling when counter clockwise (#19927)
* [web] Fix arc scaling when counter clockwise
* update golden write
* Removed unused var
2020-07-22 10:02:07 -07:00
Dan Field
5281322421
Refactor instantiateImageCodec/decodeImageFromPixels to provide an ImageDescriptor (#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
c02a60e95b
Mark used pictures so they aren't deleted on the next frame. (#19913) 2020-07-21 09:13:14 -07:00
Jason Simmons
128dbc3e88
Fix failing Dart analyzer checks in the web UI tests (#19871) 2020-07-19 21:50:54 -07:00
Yegor
0a4d369766
Allow custom CanvasKit URL (#19822) 2020-07-17 16:44:57 -07:00
Mouad Debbar
f831af3978
[web] Cache line break property lookups (#19846) 2020-07-17 14:48:56 -07:00
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