9457 Commits

Author SHA1 Message Date
Kaushik Iska
ca5cc907a9 [tracing] SceneDisplayLag is a synchronous event (flutter/engine#17878)
This change converts it from an events that spans a time interval
to an event that occurs at an instant.

We also emit this trace event when there is no lag as opposed to
only when there was a lag to make it monotonous.

Co-authored-by: Kaushik Iska <kaushikiska@google.com>
2020-04-23 10:53:45 -07:00
LongCatIsLooong
b4bce4be70 add missing case for TextInput.requestAutofill (flutter/engine#17857) 2020-04-23 10:52:47 -07:00
skia-flutter-autoroll
242a996e01 Roll src/third_party/skia 5e1a57f42120..b965ff597315 (15 commits) (flutter/engine#17901) 2020-04-23 10:39:02 -07:00
Nurhan Turgut
aee119fb36 [web] autofill hints (flutter/engine#17887)
* adding autofill hints map from flutter values to the browser values, which will  be used by the web engine:

* removing unused reverse map

* addressing reviewer comments

* changing licences
2020-04-23 10:00:56 -07:00
skia-flutter-autoroll
6a3dc7a98e Roll src/third_party/dart 64b8ded48b0d..b0d35855d88c (24 commits) (flutter/engine#17895) 2020-04-23 06:49:04 -07:00
Mehmet Fidanboylu
fe52878092 Protect LanguageRange behind Android O. (flutter/engine#17882) 2020-04-23 05:59:52 -07:00
liyuqian
d5e3357c3f Read SkSL from json asset (flutter/engine#17861)
Fixes https://github.com/flutter/flutter/issues/55219
2020-04-22 14:10:17 -07:00
skia-flutter-autoroll
b261e658df Roll src/third_party/skia b920a0b91b1c..5e1a57f42120 (5 commits) (flutter/engine#17880) 2020-04-22 13:53:02 -07:00
Ferhat
45848f43ce [web] Speedup color to css string 25% (flutter/engine#17866)
* Speedup color to css string 25%
2020-04-22 12:28:29 -07:00
Yegor
202eb2a495 Use Float32List as Matrix storage inside the Web engine (flutter/engine#17856)
This change converts all Float64List matrices to Float32List at the dart:ui interface boundary. Internally, it only uses Float32List. Float32List requires less memory and is orders of magnitude faster to allocate, and it has sufficient precision as Flutter mobile engine and Skia use 32-bit floats anyway.

This change speeds up frame preroll by 50% on the bench_card_infinite_scroll benchmark.

For more details on Float64Array allocation in JS (which backs Float64List in Dart) see the following:

https://bugs.chromium.org/p/v8/issues/detail?id=9199
https://bugs.chromium.org/p/v8/issues/detail?id=2022
2020-04-22 11:08:23 -07:00
skia-flutter-autoroll
9e60c38e5f Roll fuchsia/sdk/core/linux-amd64 from 7Q4KR... to kEtiu... (flutter/engine#17875) 2020-04-22 10:48:02 -07:00
skia-flutter-autoroll
cf3c11fa54 Roll src/third_party/skia 68a22428270c..b920a0b91b1c (1 commits) (flutter/engine#17874) 2020-04-22 09:53:02 -07:00
Yegor
fb44b4f34d Report SceneBuilder submetrics through profiling API (flutter/engine#17852)
* add scenebuilder submetrics
* Disable Profiler by default
2020-04-22 09:15:18 -07:00
skia-flutter-autoroll
e5a6993cf9 Roll src/third_party/skia a6cd5588d231..68a22428270c (1 commits) (flutter/engine#17871) 2020-04-22 07:43:02 -07:00
skia-flutter-autoroll
47fee06c53 Roll src/third_party/dart 87b829bacd36..e6baa97e9adc (5 commits) (flutter/engine#17870) 2020-04-22 03:08:01 -07:00
skia-flutter-autoroll
2838381a82 Roll src/third_party/skia e9663db508df..a6cd5588d231 (4 commits) (flutter/engine#17868) 2020-04-22 00:23:01 -07:00
Ferhat
418e20f9e5 Prevent unnecessary DOM append call when canvas is reused (flutter/engine#17864) 2020-04-21 23:00:02 -07:00
skia-flutter-autoroll
784244dd13 Roll src/third_party/skia 2432d061ed35..e9663db508df (1 commits) (flutter/engine#17863) 2020-04-21 20:43:03 -07:00
skia-flutter-autoroll
cc3f1b6783 Roll src/third_party/dart ad8ed8bd468c..87b829bacd36 (13 commits) (flutter/engine#17862) 2020-04-21 20:38:02 -07:00
Dan Field
95b6f94f2a Roll CanvasKit to 0.14.0, fix Canvas.saveLayer(null, paint) (flutter/engine#17849) 2020-04-21 19:22:21 -07:00
Emmanuel Garcia
c6f023fe75 Extend external view embedder on Android (flutter/engine#17839) 2020-04-21 19:14:38 -07:00
godofredoc
9bf14b44f4 Pass amber-files directory to tests. (flutter/engine#17815)
* Pass amber-files directory to tests.

Bug:
  https://github.com/flutter/flutter/issues/50249
  https://github.com/flutter/flutter/issues/55165

* Redirect tar stdout to dev/null and fix param name.

* Keep scenic tests disabled.
2020-04-21 18:54:21 -07:00
skia-flutter-autoroll
57699a26b7 Roll src/third_party/skia 4f8297db64df..2432d061ed35 (4 commits) (flutter/engine#17859) 2020-04-21 17:43:03 -07:00
skia-flutter-autoroll
4a9390ab37 Roll fuchsia/sdk/core/linux-amd64 from RPQuv... to 7Q4KR... (flutter/engine#17858) 2020-04-21 16:28:03 -07:00
Gary Qian
887c1a875e PlatformResolvedLocale localization message channel (flutter/engine#17755) 2020-04-21 15:34:44 -07:00
skia-flutter-autoroll
166b1e1379 Roll src/third_party/skia 5a9e7fba1e3a..4f8297db64df (5 commits) (flutter/engine#17855) 2020-04-21 15:13:02 -07:00
skia-flutter-autoroll
e63019f3c0 Roll src/third_party/skia efb2133b0dd3..5a9e7fba1e3a (3 commits) (flutter/engine#17853) 2020-04-21 13:08:02 -07:00
skia-flutter-autoroll
eb8adfee61 Roll src/third_party/dart 704642a9b00e..ad8ed8bd468c (8 commits) (flutter/engine#17850) 2020-04-21 11:53:05 -07:00
stuartmorgan
6823cf09f2 Use UTF-16 for C++ text input model (flutter/engine#17831)
The C++ text input model used by Windows and Linux currently uses UTF-32. The intention was to facilitate handling of arrow keys, backspace/delete, etc., however since part of what is synchronized with the engine is cursor+selection offsets, and those offsets are defined in terms of UTF-16 code units, this causes very bad interactions with the framework-side model.

This converts to using UTF-16, rather than UTF-32, so that the offsets align with the framework. It also adds surrogate pair handling to the operations that adjust indexes, to avoid breaking surrogate pairs. (Arbitrary grapheme cluster handling is out of scope for this PR; while definitely desirable in the long term, surrogate pair handling is much more critical since improper handling yields invalid UTF-16, which breaks the text field).

This partially fixes https://github.com/flutter/flutter/issues/55014. A framework-side fix is also necessary (since currently both the engine and the framework attempt to handle arrow keys, which is another out-of-scope-for-this-PR issue), but even without the framework fix this dramatically improves the cursor behavior on Windows when there are surrogate pairs somewhere in the string since at least the two sides agree on what indexes mean.

Includes minor plumbing changes to the text input plumbing on Windows so that we're not pointlessly converting from UTF-16 to UTF-32 and then back to UTF-16.
2020-04-21 11:01:01 -07:00
skia-flutter-autoroll
9f3a6040f5 Roll src/third_party/skia 24ea293cd25b..efb2133b0dd3 (7 commits) (flutter/engine#17847) 2020-04-21 10:48:02 -07:00
skia-flutter-autoroll
2a932b7378 Roll src/third_party/skia 607a489345ad..24ea293cd25b (1 commits) (flutter/engine#17844) 2020-04-21 07:40:02 -07:00
Gary Qian
05434dc4a4 Accessibility null check to catch out of bounds hitTest (flutter/engine#17833) 2020-04-21 06:16:42 -07:00
Brian Osman
1a6e99b23d Remove legacy version of SkCanvas::didConcat44 (flutter/engine#17828)
Builds flags have been switched, so the old versions aren't needed any
longer.
2020-04-21 08:46:57 -04:00
skia-flutter-autoroll
57cef9f001 Roll src/third_party/skia 9d4b3185a28c..607a489345ad (3 commits) (flutter/engine#17842) 2020-04-21 03:05:02 -07:00
skia-flutter-autoroll
db3bb0437a Roll src/third_party/skia 76312fbf9778..9d4b3185a28c (2 commits) (flutter/engine#17841) 2020-04-20 23:55:02 -07:00
skia-flutter-autoroll
aef0872011 Roll src/third_party/dart a12c36dd97de..61c8ac8b4661 (21 commits) (flutter/engine#17840) 2020-04-20 22:40:01 -07:00
Ferhat
30fe218072 Canvas regression (flutter/engine#17738)
* Change backdrop filter element location based on ancestor clip. Add test.
* update test
* Addressed review comments. updated goldens
* Check ancestor on retain
* addressed review comments
2020-04-20 18:59:17 -07:00
skia-flutter-autoroll
eb19358ce8 Roll fuchsia/sdk/core/linux-amd64 from 1Utoy... to RPQuv... (flutter/engine#17836) 2020-04-20 18:30:02 -07:00
skia-flutter-autoroll
28b5b405af Roll src/third_party/skia eaeb99625312..76312fbf9778 (13 commits) (flutter/engine#17837) 2020-04-20 18:20:02 -07:00
Robert Ancell
d8cc8645bc Add pointer events to the Linux shell (flutter/engine#17304) 2020-04-21 11:27:13 +12:00
Mouad Debbar
bfadc16388 [web] Synthesize keyup event when the browser doesn't trigger a keyup (flutter/engine#17742) 2020-04-20 15:23:39 -07:00
Ali Mahdiyar
b1e554aee6 Handle paragraph alignment and direction in newline rectangles (flutter/engine#17750) 2020-04-20 14:35:01 -07:00
stuartmorgan
f166d4c159 Windows text input fixes (flutter/engine#17768)
Fixes a few issues with Windows text input:
- Filters out ASCII control characters
- Filters out lead surrogates, which aren't valid UTF-16 on their own so will cause assertion failures if sent to Flutter
- Adds a bandaid fix for a crash due to mismatches in indexing in the C++ and Dart text models. (A better fix would be to use UTF-16 and add surrogate pair handling to deletion and forward/back; that will be a later PR since it has a larger scope.)

Fixes https://github.com/flutter/flutter/issues/54879
2020-04-20 14:05:41 -07:00
skia-flutter-autoroll
eb29da8831 Roll src/third_party/dart 4859de9f090f..a12c36dd97de (7 commits) (flutter/engine#17826) 2020-04-20 12:00:02 -07:00
LongCatIsLooong
c399be3ab7 Fix a typo so that the secure input view is properly initialized (flutter/engine#17816) 2020-04-20 11:39:55 -07:00
David Reveman
5439fdc086 [fuchsia] Enable raster cache on Fuchsia (flutter/engine#17753)
The raster cache is critical for good performance. This
enables the cache and provides a GrContext to ScopedFrame
instances so the cache can be efficiently populated.

Small increase in peak GPU memory usage is expected from
this change. Otherwise, no change in behavior expected.

Fixes https://github.com/flutter/flutter/issues/54950

Co-authored-by: David Reveman <reveman@google.com>
2020-04-20 10:29:08 -07:00
David Reveman
7ae25c916d [fuchsia] Adjust Skia GPU resource cache size (flutter/engine#17798)
16 MiB -> 28 MiB

Same size as what would be used on a 1024x600 display if we
allowed the common engine code to adjust this.

Co-authored-by: David Reveman <reveman@google.com>
2020-04-20 10:07:28 -07:00
skia-flutter-autoroll
b291b99aa9 Roll src/third_party/skia 5d440647d3a2..eaeb99625312 (2 commits) (flutter/engine#17825) 2020-04-20 09:25:01 -07:00
skia-flutter-autoroll
984efb0e82 Roll src/third_party/dart 63a92a3b0027..4859de9f090f (6 commits) (flutter/engine#17824) 2020-04-20 06:20:02 -07:00
skia-flutter-autoroll
15785fffb6 Roll src/third_party/skia 0c9327e48e9c..5d440647d3a2 (4 commits) (flutter/engine#17823) 2020-04-20 03:35:02 -07:00