1592 Commits

Author SHA1 Message Date
Mouad Debbar
c1a4d77e5e [web] Initial rich measurement implementation (flutter/engine#22779) 2020-12-03 16:33:03 -08:00
mikerreed
37b2722631 opt into new Skia APIs (flutter/engine#22845) 2020-12-03 15:28:02 -08:00
Yegor
3d94f1171f memoize the fallback SkPaint in paragraph (flutter/engine#22848) 2020-12-03 15:26:23 -08:00
zljj0818
0ef14f3ca3 More rename from GPU thread to raster thread (flutter/engine#22819) 2020-12-03 15:03:02 -08:00
Yegor
d2213fc58e Make CkPicture resurrectable (flutter/engine#22807)
* Make CkPicture resurrectable

* disable goldens on Firefox

* add non-recording canvas test; fix Firefox test
2020-12-03 13:13:44 -08:00
nturgut
61e8ad5a45 leaving only html tests (flutter/engine#22846) 2020-12-03 12:33:27 -08:00
Ferhat
fe38948940 [web] Fix event transform between mousedown/up due to mouse move event (flutter/engine#22813) 2020-12-03 09:04:36 -08:00
Gary Qian
9352ed557e Split AOT Engine Runtime (flutter/engine#22624) 2020-12-02 13:28:01 -08:00
Jenn Magder
f7d898eba2 Generate gen_snapshot_armv7 and gen_snapshot_arm64 (flutter/engine#22818) 2020-12-02 12:43:51 -08:00
Yegor
63e46b8b90 Better handle image codec instantiation failure (flutter/engine#22809) 2020-12-02 12:27:11 -08:00
Lasse R.H. Nielsen
bcb3c39d79 Stop using the List constructor. (flutter/engine#22793) 2020-12-02 11:53:01 -08:00
Yegor
7055732455 Temporarily reduce e2e test matrix to stop flaky web engine builds (flutter/engine#22824)
* reduce e2e test matrix

* add issue link
2020-12-02 11:10:54 -08:00
Greg Spencer
851544f2d2 Fix PlatformDispatcher.locale to return something meaningful when there are no locales. (flutter/engine#22608)
Returns an "undefined" locale (language code "und") from PlatformDispatcher.locale when no locales are defined.
2020-12-01 09:54:56 -08:00
Ferhat
bf3bb11a51 [web] Optimize Matrix4.identity (flutter/engine#22622) 2020-11-30 16:29:20 -08:00
Mouad Debbar
482bad112c [web] Add new line break type (prohibited) (flutter/engine#22771) 2020-11-30 13:05:10 -08:00
Harry Terkelsen
23586802af Don't register CanvasKit with define (flutter/engine#22745) 2020-11-25 11:48:55 -08:00
nturgut
ead12e134c Enabling semantics tests for safari, ios-safari and firefox (flutter/engine#22662)
* enable safari tests for almost all the methods for semantics tests

* enable almost all semantics tests for firefox

* Safari desktop have different scroll max values for different versions

* fix assert
2020-11-23 15:45:55 -08:00
Yegor
cc5d22dc66 Add Instrumentation class (flutter/engine#22650) 2020-11-21 08:38:02 -08:00
Yegor
10a52ef99a Implement image resurrection (flutter/engine#22575) 2020-11-20 10:38:02 -08:00
Ferhat
685ff71e37 [web] Implement tilemode for gradient shaders. (flutter/engine#22597) 2020-11-20 09:06:55 -08:00
vsmenon
c035c7f167 Remove opt outs for dart:ui (flutter/engine#22603)
* Remove null safety opt outs for dart:ui
2020-11-19 18:54:12 -08:00
Harry Terkelsen
d3f6996e52 Implement Scene.toImage() in CanvasKit mode. (flutter/engine#22085) 2020-11-19 17:33:43 -08:00
Matěj Žídek
3ded81b1af replace dead links (flutter/engine#22530) 2020-11-19 14:58:02 -08:00
Ferhat
f827aaa920 [web] Fix test failure on high dpi device (flutter/engine#22618) 2020-11-19 14:56:30 -08:00
Greg Spencer
d7793f5cfb Fix typos and fix some env var state leakage in tests (flutter/engine#22576)
This just fixes some typos, and a small state leak in some of the tests that set env variables.
2020-11-17 21:51:37 -08:00
Yegor
88eae0a43d Refactor CanvasKit image ref counting; fix a minor memory leak (flutter/engine#22549)
* Refactor SkiaObjectBox ref counting
* make CkAnimatedImage a Codec
* disallow double dispose; better assertion messages
2020-11-17 17:40:34 -08:00
Greg Spencer
8dcdbfad8b Reland: Remove the Window class now that it is no longer used. (flutter/engine#22566)
Reland #22505, now that flutter/flutter#70637 has landed.

Removes references to dart:ui.Window, and switch usages to PlatformDispatcher or SingletonFlutterWindow, as appropriate.
2020-11-17 16:39:07 -08:00
Ian Hickson
9902781f55 Also maintain the zone on the ChannelBuffers.push callback (flutter/engine#22454) 2020-11-17 09:48:03 -08:00
Harry Terkelsen
88a6820606 Migrate to CanvasKit 0.19.0 (flutter/engine#22511) 2020-11-16 16:24:04 -08:00
Jim Graham
33f40f6aaa Revert "Remove the Window class now that it is no longer used. (#22505)" (flutter/engine#22519)
This reverts commit 28f766ebd26e8ef40d2489db465dc85fd5e61d5c.
2020-11-13 23:12:12 -08:00
Greg Spencer
28f766ebd2 Remove the Window class now that it is no longer used. (flutter/engine#22505)
This removes the Window class, now that the framework no longer uses it.
2020-11-13 14:38:15 -08:00
Ferhat
ba105e0ea0 [web]Update @dart annotation. Change shaders to allocate smaller canvas (flutter/engine#22481) 2020-11-13 13:55:32 -08:00
nturgut
166e60ec05 TBR: remove the extra values which was overshadowing the test result (flutter/engine#22483)
* remove the extra values which was overshadowing the test result

* increase difference. canvaskit gives different results

* increase difference more. firefox gave 1.7 diff. add comments
2020-11-12 18:24:38 -08:00
LongCatIsLooong
465c84321e Exposing ColorFilter to ImageFilter conversion and Compose() (flutter/engine#20309) 2020-11-12 15:34:02 -08:00
Yegor
5e34c83023 make CkContourMeasureIter and CkContourMeasure resurrectable (flutter/engine#22459) 2020-11-12 13:27:39 -08:00
Greg Spencer
9eb3e81613 Reland: "Make PlatformDispatcher.locale and locales return consistent values (#22267)" (flutter/engine#22473)
This reverts commit 698b69f, relanding #22267, now that flutter/flutter#70252 has landed to prevent the problems it had the first time.

Here is the original PR description:

For some reason (probably a bad merge on my part), the return values for locale and locales are not the same on web as they are on other platforms for the PlatformDispatcher and SingletonFlutterWindow classes. The web versions are non-nullable and the others are nullable.

This converts them to be the same (non-nullable) values
2020-11-12 13:20:13 -08:00
Jim Graham
698b69f417 Revert "Make PlatformDispatcher.locale and locales return consistent values (#22267)" (flutter/engine#22461)
This reverts commit b5812aaaa3df6c2d7e0eb6256c4b6c54d5d658cf.
2020-11-11 23:39:59 -08:00
Yegor
23df969f93 Make CkPath resurrectable (flutter/engine#22446) 2020-11-11 17:29:01 -08:00
nturgut
00333158e6 Upgrades to felt (running on multiple modes, multiple backends, single test target option) (flutter/engine#22260)
* testing running the tests on all build modes

* don't run debug mode on other browsers

* fix platform message test failures

* some cleanup. change dispose platform channel message

* adding flags to control the integration tests better with felt

* running tests by target name, selecting web rendering backend

* fix conditions

* carrying some conditions to helper methods. Adding comments

* create a blocked list for failing canvaskit test

* parse parameters before all integration tests

* Give better warning to developers for tests that are blocked for CI

* address some reviwer comments (more remains)

* remove named parameters

* also run with auto mode

* add verbose option

* reduce the number of tests running. skip url_test for now
2020-11-11 17:18:15 -08:00
Greg Spencer
b5812aaaa3 Make PlatformDispatcher.locale and locales return consistent values (flutter/engine#22267)
For some reason (probably a bad merge on my part), the return values for locale and locales are not the same on web as they are on other platforms for the PlatformDispatcher and SingletonFlutterWindow classes. The web versions are non-nullable and the others are nullable.

This converts them to be the same (non-nullable) values.
2020-11-11 16:30:22 -08:00
Mouad Debbar
60ad53502c [web] Refactor _measureSubstring to better suit rich text measurement (flutter/engine#22443) 2020-11-11 15:50:01 -08:00
Mouad Debbar
6133000b23 [web] Reuse the existing font string builer in TextStyle (flutter/engine#22444) 2020-11-11 15:49:46 -08:00
Mouad Debbar
fe3d35549a [web] Better data structure to prepare for rich text measurement (flutter/engine#22442) 2020-11-11 15:49:24 -08:00
Yegor
75712b2594 Remove double-referencing from CkImage to SkImage (flutter/engine#22415) 2020-11-11 14:04:02 -08:00
Ferhat
eedd412c5f [web] Speed up PageView/CustomPainter rendering (flutter/engine#22408) 2020-11-10 14:41:58 -08:00
Yegor
5eb7ee0b67 Simplify API for scheduling Skia object deletions (flutter/engine#22409) 2020-11-10 10:01:39 -08:00
Mouad Debbar
d256cd55de [web] Restore the ability to set a custom url strategy (flutter/engine#22371) 2020-11-09 22:28:48 -08:00
Yegor
06a9b5b950 Update pubspecs to null-safe dependencies (flutter/engine#22366)
* update pubspecs to null-safe dependencies

* remove build_runner dep; upgrade quiver

* use analysis_options.yaml to control analysis scope
2020-11-06 17:54:53 -08:00
Ferhat
a4b3567e59 [web] Remove as checks (_generalNullableAsCheckImplementation) / pushSurface calls (flutter/engine#22357) 2020-11-06 17:54:06 -08:00
Emmanuel Garcia
30ef597dbd loadFontFromList returns void instead of string (flutter/engine#22373) 2020-11-06 17:24:02 -08:00