8866 Commits

Author SHA1 Message Date
stuartmorgan
b86b2a9bee Fix handler unregistration in C++ channels (flutter/engine#16794)
MethodChannel and BasicMessageChannel in the C++ wrapper didn't have the
expected semantics that passing a null handler would remove any existing
handler. This was inconsistent with other platforms and with the
lower-level object APIs in this wrapper, and made unregistration in
cases where that's desirable more difficult due to needing to keep other
object references.

Adds tests for this functionality, and some backfill of missing tests
for basic handler behavior.

See https://github.com/flutter/flutter/issues/51207
2020-02-25 14:09:58 -08:00
Ferhat
0e20dc802c Evict BitmapCanvas(s) from cache when canvas allocation fails (flutter/engine#16793) 2020-02-25 13:38:25 -08:00
Drew Fisher
94c31a6e2a fuchsia: remove use of replace_as_executable (flutter/engine#16690)
On Fuchsia, we can now get executable VMOs from trusted backing
filesystems.  This allows us to remove the use of replace_as_executable
in favor of opening files with `fdio_open_fd_at` with the
`OPEN_RIGHT_EXECUTABLE` flag and getting VMOs by calling
`fdio_get_vmo_exec`.

By moving the responsibility for executability into the filesystem, we
should be able to remove deprecated-ambient-replace-as-executable from
component manifests for non-JIT runners (the JIT runners still call
replace_as_executable in Dart's allocator).

Test: verified locally that this works on Astro on a _user build with
the runtime allowlist tightened.
2020-02-25 13:24:07 -08:00
skia-flutter-autoroll
a99b028428 Roll src/third_party/skia c8d092a060ad..7a6db4cbf48b (2 commits) (flutter/engine#16795) 2020-02-25 13:06:04 -08:00
skia-flutter-autoroll
f50bdd38cb Roll src/third_party/skia a6572f78d084..c8d092a060ad (1 commits) (flutter/engine#16789) 2020-02-25 11:31:03 -08:00
skia-flutter-autoroll
836d30cf5d Roll src/third_party/dart 7aa824076c34..2ce1df76309d (11 commits) (flutter/engine#16788) 2020-02-25 06:01:04 -08:00
skia-flutter-autoroll
98a949ebc9 Roll src/third_party/skia 6d927b63a311..a6572f78d084 (3 commits) (flutter/engine#16783) 2020-02-24 23:36:03 -08:00
skia-flutter-autoroll
d6868484fb Roll src/third_party/skia 19304d88c8be..6d927b63a311 (3 commits) (flutter/engine#16782) 2020-02-24 22:01:03 -08:00
skia-flutter-autoroll
7e8283a072 Roll fuchsia/sdk/core/linux-amd64 from PGfiE... to QU3ft... (flutter/engine#16779) 2020-02-24 20:31:03 -08:00
skia-flutter-autoroll
a35a75b24c Roll src/third_party/skia 659cc1c90705..19304d88c8be (5 commits) (flutter/engine#16778) 2020-02-24 20:26:04 -08:00
Dan Field
0267c56245 Revert "Enable lazy-async-stacks by-default in all modes (#16556)" (flutter/engine#16781)
This reverts commit a39aad4a0305f2525479d055ecc3ddfbf45d303b.
2020-02-24 20:04:40 -08:00
skia-flutter-autoroll
33444fcadf Roll src/third_party/dart c75256299280..73f6d15665a3 (9 commits) (flutter/engine#16776) 2020-02-24 14:56:03 -08:00
skia-flutter-autoroll
9af956c0cd Roll src/third_party/skia 03b8ab225fd7..659cc1c90705 (4 commits) (flutter/engine#16774) 2020-02-24 14:31:06 -08:00
Mouad Debbar
53dc99cd26 [web] Respect maxLines when calculating boxes for a range (flutter/engine#16749) 2020-02-24 14:26:03 -08:00
Mouad Debbar
489ddd405b [web] Reduce the usage of unnecessary lists in pointer binding (flutter/engine#16745) 2020-02-24 14:21:04 -08:00
Chinmay Garde
df4a467fad Reland "Lift restriction that embedders may not trample the render thread OpenGL context in composition callbacks." (flutter/engine#16711)
This reverts commit 79c230fc7b9aa3bb13dcf38cdfe213256c73028a with the following changes to accommodate an embedder for whom the original optimizations caused issues:

* Ensure stable order in the backing stores presented to the embedder. This is a pessimization that will be reverted when the embedder migrates. Tracked in  https://github.com/flutter/flutter/issues/51228
* Forego the optimization where the unused layers would be collected before allocation of new layers needs to happen. This is a pessimization that will be reverted when the embedder migrates. Tracked in  https://github.com/flutter/flutter/issues/51229

More context in b/146142979.
2020-02-24 11:48:32 -08:00
Filip Filmar
b38381174c [i18n] Deprecates fuchsia.timezone.Timezone (flutter/engine#16700)
The FIDL interface `fuchsia.timezone.Timezone` does not exist for quite
a while now.  Instead, a transitional `fuchsia.timezone.Timezone` should
be used.

Fixes flutter/flutter#51087
2020-02-24 11:44:30 -08:00
skia-flutter-autoroll
c27c9e102d Roll src/third_party/skia 7d252302268a..03b8ab225fd7 (8 commits) (flutter/engine#16773) 2020-02-24 11:31:04 -08:00
Ferhat
a07014a9ca [web] Fix canvas leak when dpi changes. Evict from BitmapCanvas cache under… (flutter/engine#16721)
* Fix canvas leak when dpi changes. Evict from BitmapCanvas cache under memory pressure.

* optimized _reduceCanvasMemoryUsage

* Addressed review comments
2020-02-24 11:19:47 -08:00
Chris Bracken
b5f53219d9 Delete FlutterAppDelegate_Internal.h (flutter/engine#16772) 2020-02-24 11:11:03 -08:00
skia-flutter-autoroll
dc6194492a Roll src/third_party/skia 1cec4d5e3d92..7d252302268a (2 commits) (flutter/engine#16771) 2020-02-24 09:46:07 -08:00
skia-flutter-autoroll
af73e39dd4 Roll src/third_party/dart 5829fc7829d5..c75256299280 (43 commits) (flutter/engine#16770) 2020-02-24 09:41:04 -08:00
skia-flutter-autoroll
ab39053d75 Roll src/third_party/skia cc5415a8ce36..1cec4d5e3d92 (2 commits) (flutter/engine#16769) 2020-02-24 08:11:03 -08:00
skia-flutter-autoroll
8751440235 Roll src/third_party/skia 57bc977e124c..cc5415a8ce36 (1 commits) (flutter/engine#16767) 2020-02-24 06:26:03 -08:00
skia-flutter-autoroll
addf7b667f Roll fuchsia/sdk/core/linux-amd64 from 3rB22... to PGfiE... (flutter/engine#16763) 2020-02-24 01:11:02 -08:00
skia-flutter-autoroll
8d2a75e16c Roll src/third_party/skia 998066127e0d..57bc977e124c (3 commits) (flutter/engine#16762) 2020-02-23 23:41:03 -08:00
skia-flutter-autoroll
1f39405f5c Roll src/third_party/skia d1c90e10f0ca..998066127e0d (1 commits) (flutter/engine#16759) 2020-02-23 16:51:03 -08:00
skia-flutter-autoroll
3ead67ba8c Roll src/third_party/skia 46f5c5f08b61..9e8f60534464 (29 commits) (flutter/engine#16754) 2020-02-22 15:44:03 -08:00
skia-flutter-autoroll
b320c580f6 Roll fuchsia/sdk/core/linux-amd64 from -u-iU... to 3rB22... (flutter/engine#16752) 2020-02-22 14:09:08 -08:00
skia-flutter-autoroll
6f747d6e32 Roll src/third_party/skia bf5cb0f539e7..46f5c5f08b61 (2 commits) (flutter/engine#16732) 2020-02-22 14:09:04 -08:00
Miguel Beltran
0858707729 Add support for Increase Contrast on iOS (flutter/engine#15343) 2020-02-22 14:04:04 -08:00
Dan Field
9bbbd5078d Migrate Path to AssociateWithDartWrapper (flutter/engine#16753) 2020-02-22 12:59:35 -08:00
Mouad Debbar
1e37bb489a [web] Paragraph.longestLine doesn't need to check for isSingleLine anymore (flutter/engine#16736) 2020-02-21 13:18:09 -08:00
Mouad Debbar
5f8ca597db [web] Rename LineMetrics.text to LineMetrics.displayText (flutter/engine#16734) 2020-02-21 13:17:59 -08:00
Nurhan Turgut
a443623a34 [web] add comment to skipped safari test (flutter/engine#16737)
* add comment to skipped safari test

* test not running semantics on Mac

* disable semantics test which is unreliable
2020-02-21 13:03:29 -08:00
Ryan Macnak
101b70147f Fix some compiler warnings in newer versions of Clang. (flutter/engine#16733) 2020-02-21 12:57:06 -08:00
George Wright
a39303aa48 Enable Vulkan-related shell unittests on Fuchsia (flutter/engine#16718)
Also enable tests that were disabled due to MessageLoop flakiness resolved by https://github.com/flutter/engine/pull/16568
2020-02-21 11:01:16 -08:00
Nurhan Turgut
3fb1af296c [web] Running safari tests on LUCI (flutter/engine#16715)
* Safari font collection tests skip failing methods

* add a clear to the semantics test to make sure no DOM elements are leaking to the other tests

* fix semantics_helper_test. skip for semantics_test. teardown didn't work

* skip test, the skipped method run for 8 minutes according to the logs

* history tests methods runs multiple times. only run them on linux for now. they were also already failing in edge/windows
2020-02-21 09:03:13 -08:00
skia-flutter-autoroll
fa05d5d7e6 Roll src/third_party/skia 392846665c40..bf5cb0f539e7 (1 commits) (flutter/engine#16730) 2020-02-21 07:56:03 -08:00
skia-flutter-autoroll
eaa5b877cd Roll src/third_party/skia 77521d9e06e8..392846665c40 (1 commits) (flutter/engine#16729) 2020-02-21 06:21:03 -08:00
skia-flutter-autoroll
937a7f093f Roll fuchsia/sdk/core/linux-amd64 from CZTpy... to -u-iU... (flutter/engine#16727) 2020-02-21 00:26:03 -08:00
skia-flutter-autoroll
7064be4edd Roll src/third_party/skia 3ffa7af75301..77521d9e06e8 (2 commits) (flutter/engine#16725) 2020-02-20 22:16:02 -08:00
skia-flutter-autoroll
7c6757ad49 Roll src/third_party/dart fd20c7b92bb8..6ef9131d82c4 (7 commits) (flutter/engine#16723) 2020-02-20 21:26:03 -08:00
skia-flutter-autoroll
772bbb2ced Roll src/third_party/skia df283d01cabb..3ffa7af75301 (1 commits) (flutter/engine#16722) 2020-02-20 18:56:02 -08:00
Dan Field
b1f692e9cb Refactor of ClaimDartHandle -> AssociateWithDartWrapper (flutter/engine#16720) 2020-02-20 17:31:03 -08:00
skia-flutter-autoroll
d08458c918 Roll src/third_party/skia 706851dc99d9..df283d01cabb (3 commits) (flutter/engine#16719) 2020-02-20 17:16:02 -08:00
skia-flutter-autoroll
a4c29d4ae9 Roll src/third_party/dart 81d4cc6bc99a..fd20c7b92bb8 (31 commits) (flutter/engine#16716) 2020-02-20 16:11:04 -08:00
Dan Field
a03a05a385 Reland "Remove usage of Dart_AllocateWithNativeFields" (flutter/engine#16713) 2020-02-20 16:06:02 -08:00
skia-flutter-autoroll
883d67d62f Roll src/third_party/skia 1d589a578ca4..706851dc99d9 (2 commits) (flutter/engine#16714) 2020-02-20 15:41:03 -08:00
George Wright
21f28db400 Flush the SkCanvas when submitting a frame in ShellTestPlatformViewVulkan::OffscreenSurface (flutter/engine#16717) 2020-02-20 15:18:36 -08:00