16806 Commits

Author SHA1 Message Date
Jonah Williams
f97454f776
build a precompiled SDK with canvas kit enabled (#17115) 2020-03-12 14:50:22 -07:00
Emmanuel Garcia
25cded5742
Fix link in readme (#17119) 2020-03-12 13:59:31 -07:00
Emmanuel Garcia
cbc8713fdd
Define embedding dependencies in Gradle (#17116) 2020-03-12 13:49:46 -07:00
skia-flutter-autoroll
e623335109
Roll src/third_party/skia 1743144ab839..9b449b73d367 (5 commits) (#17113) 2020-03-12 13:01:01 -07:00
skia-flutter-autoroll
c28d23068f
Roll fuchsia/sdk/core/linux-amd64 from Yk03L... to _k1WT... (#17112) 2020-03-12 12:56:01 -07:00
skia-flutter-autoroll
c30fd2daa8
Roll src/third_party/dart 17eec5bcde78..33349076ee7f (11 commits) (#17110) 2020-03-12 12:51:01 -07:00
skia-flutter-autoroll
ea76589159
Roll fuchsia/sdk/core/mac-amd64 from 0Z8VF... to lbDph... (#17107) 2020-03-12 12:46:02 -07:00
skia-flutter-autoroll
1aaf169882
Roll src/third_party/skia f0140ee00f95..1743144ab839 (2 commits) (#17111)
https://skia.googlesource.com/skia.git/+log/f0140ee00f95..1743144ab839

git log f0140ee00f95..1743144ab839 --date=short --first-parent --format='%ad %ae %s'
2020-03-12 skia-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/externals/swiftshader 16ae92a4ee52..7e857092052e (6 commits)
2020-03-11 jvanverth@google.com Remove need for gpu when unrefing managed resources.

Created with:
  gclient setdep -r src/third_party/skia@1743144ab839

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC brianosman@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Bug: None
Tbr: brianosman@google.com
2020-03-12 09:20:15 -04:00
Chinmay Garde
2844d4480b
Remove unused or unnecessary compiler specific marcos in FML. (#17101)
Macros to control inlining are not used and we explicitly recommending against
playing with compiler inlining. The macros for alignment became part of the
standard in C++11 and we already use the standard variants over these macros
(see `PointerData`). The formatters are unused as well and we use the stream
based variants for formatting.
2020-03-11 16:31:50 -07:00
skia-flutter-autoroll
1896292601
Roll src/third_party/dart 684c53a6f174..17eec5bcde78 (6 commits) (#17105) 2020-03-11 15:26:05 -07:00
skia-flutter-autoroll
a94d3e0f24
Roll src/third_party/skia dafbf121a8b1..f0140ee00f95 (6 commits) (#17104) 2020-03-11 14:41:05 -07:00
skia-flutter-autoroll
d640569b6f
Roll fuchsia/sdk/core/linux-amd64 from X3Xm2... to Yk03L... (#17103) 2020-03-11 14:26:03 -07:00
Chinmay Garde
a37560a074
Use the standard [[nodiscard]] attribute instead of an FML macro. (#17100) 2020-03-11 13:36:01 -07:00
skia-flutter-autoroll
8c8b3e1d42
Roll src/third_party/skia 6dc0f63a509c..dafbf121a8b1 (1 commits) (#17098) 2020-03-11 13:06:02 -07:00
Nurhan Turgut
9a3016fbed
increasing user limits for macos (#17097) 2020-03-11 12:15:47 -07:00
skia-flutter-autoroll
f2843b97ba
Roll src/third_party/dart 37530145ff53..684c53a6f174 (16 commits) (#17096) 2020-03-11 10:26:04 -07:00
skia-flutter-autoroll
c1111bba84
Roll src/third_party/skia 0340292972b9..6dc0f63a509c (4 commits) (#17095) 2020-03-11 09:16:03 -07:00
skia-flutter-autoroll
6d8611d0bd
Roll src/third_party/dart 4093d08271f6..37530145ff53 (4 commits) (#17090) 2020-03-11 01:31:01 -07:00
skia-flutter-autoroll
498e1ec3cc
Roll fuchsia/sdk/core/mac-amd64 from r_oCI... to 0Z8VF... (#17087) 2020-03-11 00:56:02 -07:00
skia-flutter-autoroll
2572eff9a6
Roll src/third_party/skia bf355123ae3b..0340292972b9 (9 commits) (#17089) 2020-03-11 00:51:04 -07:00
skia-flutter-autoroll
11b2f787f1
Roll fuchsia/sdk/core/linux-amd64 from v32mJ... to X3Xm2... (#17086) 2020-03-11 00:51:01 -07:00
Chinmay Garde
3f287ab58e
Remove the unused method on iOS surface to make the resource context current. (#17084) 2020-03-11 00:46:02 -07:00
Chinmay Garde
ec2c624f95
Revert "Add support for the Metal backend on all iOS builds. (#17080)" (#17088)
This reverts commit e8e0e0b51b47017c950cdc2465ef92e66194c7a7.
2020-03-10 23:32:18 -07:00
skia-flutter-autoroll
c6aa4d26e7
Roll src/third_party/dart ace1d9b9213a..4093d08271f6 (12 commits) (#17082) 2020-03-10 20:41:03 -07:00
Chinmay Garde
e8e0e0b51b
Add support for the Metal backend on all iOS builds. (#17080) 2020-03-10 19:31:02 -07:00
skia-flutter-autoroll
0e8a2f33a8
Roll src/third_party/skia d3f67dbf9f36..bf355123ae3b (9 commits) (#17079) 2020-03-10 19:26:02 -07:00
Chinmay Garde
a0010512df
Disable Embedder11yTest::A11yTreeIsConsistent to unblock LUCI. (#17081)
See https://github.com/flutter/flutter/issues/52372
2020-03-10 18:48:23 -07:00
Chinmay Garde
7c2d975b55
Gather demangled stack traces and report the same to console on crashes. (#16450)
These should only be used on host binaries for more detailed crash reports.
Installing the handler on targets (iOS/Android) may cause use to break existing
crash reporting mechanisms users may have installed themselves in the process.

This should work on Darwin & Linux for now.

Doing something like int* a = nullptr; *a = 12; or abort or tripping an
assertion should print something the following before program termination. We
can tweak the report further if necessary.

```
[ERROR:flutter/fml/backtrace.cc(110)] Caught signal SIGSEGV during program execution.
Frame 0: 0x10658342c void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
Frame 1: 0x106555070 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)
Frame 2: 0x106554f81 testing::Test::Run()
Frame 3: 0x106555dc3 testing::TestInfo::Run()
Frame 4: 0x1065570a1 testing::TestSuite::Run()
Frame 5: 0x106562a55 testing::internal::UnitTestImpl::RunAllTests()
Frame 6: 0x10658c22c bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
Frame 7: 0x1065625c3 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
Frame 8: 0x106562445 testing::UnitTest::Run()
Frame 9: 0x105c8dc33 RUN_ALL_TESTS()
Frame 10: 0x105c8dbe6 main
Frame 11: 0x7fff7c2dc3d5 start
```

Known issue: This routines that generate the stack trace are not signal safe.
But since we only use the same before the process is terminating, this ought to
be fine. I’ll work in a separate patch to convert all the internals to be signal
safe. In the meantime, this will help us better identify the causes of flakes on
our bots.

Fixes https://github.com/flutter/flutter/issues/50244
2020-03-10 16:31:06 -07:00
Chinmay Garde
17e07c537e
Implement asynchronous texture uploads when using the Metal backend on iOS. (#17046)
This moves the Metal `GrContext` creation utilities from `GPUSurfaceMetal` into
a separate `IOSContext` object subclass. An analogue of this object was used in
the GL regime for the management of onscreen and offscreen contexts that were
not tied to the lifecycle of the `GPUSurface`. This pattern has now been
generalized for use with all backends that need a resource context
(`IOSContextGL` and `IOContextMetal`).

The platform views controller management in the `ExternalViewEmbedder` interface
implementation was repeated three times for [Metal][metal], [OpenGL](opengl) and
[Software](software) rendering. This repetition has been removed and a single
implementation present in the base `IOSSurface` and used on all platforms.
Addition of new client rendering APIs should not affect how the engine renders
into the platform view interleaving levels.

All rendering API selection logic has been moved into a single set of utilities
in `rendering_api_selection.h`. This enables the removal of a lot of code blocks
guarded by `FLUTTER_SHELL_ENABLE_METAL`. The remaining uses of this will be
removed when unified builds are enabled.

The Metal backend now also adds traces similar to the GL backend.

The `IOGLContext` has been renamed to `IOContextGL` to be more in line with the
convention used in this library.

Fixes https://github.com/flutter/flutter/issues/41827
Adds https://github.com/flutter/flutter/issues/52150

[metal]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_metal.mm (L55)
[opengl]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_gl.mm (L95)
[software]: 1194ba2b21/shell/platform/darwin/ios/ios_surface_software.mm (L146)
2020-03-10 16:01:53 -07:00
skia-flutter-autoroll
f1ff6a2c19
Roll src/third_party/dart 97674262bc29..ace1d9b9213a (14 commits) (#17078) 2020-03-10 15:56:03 -07:00
Emmanuel Garcia
d884e27a68
Add RTree to flow (#16923) 2020-03-10 15:47:17 -07:00
skia-flutter-autoroll
5294bd3ffa
Roll src/third_party/skia 78dac6dcb222..d3f67dbf9f36 (6 commits) (#17072) 2020-03-10 14:56:01 -07:00
Jim Graham
220039a9c8
Revert "Fix bounds of image_filter_layer (#16960)" (#17074)
This reverts commit 8b6119ec8367bbe3de52fd5f40737219be8d5b8b.
2020-03-10 14:09:10 -07:00
Chinmay Garde
bcefcdb880
Use the ELF loader to setup AOT symbols in benchmark runner. (#17051)
We no longer package AOT artifacts as discrete blobs. The portable ELF loader
from the testing library may be used instead.

Fixes https://github.com/flutter/flutter/issues/52263
2020-03-10 12:28:24 -07:00
skia-flutter-autoroll
498a34aff7
Roll src/third_party/skia 23899c64e3db..78dac6dcb222 (19 commits) (#17069) 2020-03-10 12:06:01 -07:00
Alexander Aprelev
06bb64921e
Roll dart to 97674262bc29447dc59d5c93024b18b27d4bcf98. (#17067)
Changes since last roll:
 ```
97674262bc [dart2js] Fix type argument with nnbd and extractTypeArguments.
ed2092e786 [vm] Add TFA transformer expectation files for unboxing metadata
44a4f366e2 [sdk] Updating Stream.contains to accept null values.
7e0139e0c0 [vm/corelib] Improve performance of list copying
ec8941b189 [dartdevc] Hoisting subtype caches to addTypeCaches.
f5a6554635 Move 'thisType' to ResolverVisitor.
b311a0052e Fixes REMOVE_UNUSED_FIELD and optional field formal parameters.
c83c9b40c5 [vm] Implement toString() for unboxing metadata, only write unboxing metadata if not fully boxed (which is default)
7ac22948e5 [CFE] More error for type variable in static contexts
30a12a349e Revert "Re-land "[vm] Aggressive write-barrier elimination.""
83378633e1 Add the attachment with the content of the file being analyzed.
bbb449dfa4 Issue 40931. Update inference constraint for T? to be non-nullable.
f1369d7896 Updated the invalid Example in num.dart
b22d3d6294 Add a P2 migration script for null safety migrator
db378a2f0d [ddc] let compiler generate instanceof and == of types directly.
617b78a014 [ddc] do not add null checks for parameters marked as @notNull
2ae10b14a3 [dart2js] Fix nullability of native methods.
b01cb58320 Revert "Re-land "[vm] Add type to _AsyncAwaitCompleter.start.""
043af430c1 Migraiton: Add function names to trace output.
005c5d7b52 Add an additional MMR "Max Rank 5" metric to the output of the completion_metrics.dart
52ad8dc2d2 Gather metrics on super invocations
f5dae48fac Add an ArgParser to completion_metrics.dart in the same manner as relevance_metrics.dart (https://dart-review.googlesource.com/c/sdk/+/138700)
a61e012e93 Migrate html tests using async_minitest and minitest
e3070b6f02 Add predicate to async_minitest
f8792406d8 Extract RemoveUnusedElement and RemoveUnusedField producers.
54e96f6ccf Add the `dynamic` keyword into additional missing portions of the AST (in method and constructor parameters) in the keyword_contributor.dart
8329bd7ca8 Do not check for '.analysis_options' for default options file in builder.
4f0fb8f9b0 Fix some syntax errors in the Dart code in the keyword_contributor_test.dart
4049ab54e4 Re-land "[vm] Add type to _AsyncAwaitCompleter.start."
8fb4645cae [dartdevc] Adding nnbd semantics for static and late fields.
fa2df01895 Null Safety preview: Fix description for uninitialized field
24c8021f03 Replace initialize() with declare().
9a62df57fa Fix a test to get the analyzer nnbd bot to pass
f17919b559 [nnbd/corelib] Fix performance regression in _SyncIterator.moveNext
6b71477d6e Add a host of server debugging options to dartdev migrate.
7617e327a1 [VM/Testing] - Turn on co19_2 legacy testing in NNBD bots.
4e79175ee8 Fix per-line highlighting in Null Safety preview tool
a4f6479998 [infra] Print details of unapproved (new or previous) failures in build failure message
eff1a9ff97 Re-land "[vm] Aggressive write-barrier elimination."
a629dbf073 Add a fix to inline a typedef
0f284647b1 [vm] Improve docs for Dart_LoadELF.
029c8f1cee [cfe] Use Supertype instead of InterfaceType in ClassHierarchyBuilder
e8c58a7a3d [CFE] Add ability to compare CompilerOptions
40507e7b13 [CFE] Tool for fasta -v statistics
7bdc910670 [infra] Remove unused bot script
7e815546ac Add the `dynamic` keyword into additional missing portions of the AST in the keyword_contributor.dart
7bc171483e Latest changes to the relevance metrics tool
3d0432eafc Add returnsNormally to async_minitest
6f47790fb6 [dartdevc] Optimize subtype check
4799f38767 [dartdevc] Optimize cast operation
c1cf29b2d4 [ddc] improve generated code for wrapType.isNormalized
6eae8db839 [ddc] remove dcall when accessing .type
de493465c8 Include 'dynamic' in the list of suggested keywords for type names, i.e. the 'dynamic' in "dynamic contents = ..."
80ed949678 [vm, reload] Don't drop unwind errors for isolates other than the first isolate in a group during a reload.
81c3208c10 [dart2js] Special case `null is T`.
de0fcd71d4 [dart2js] Assign the correct type to super tearoffs.
29d4b611fb Remove html_individual_config from indexeddb_1_test
9ba92779d6 Roll to latest package:watcher
8fd8fec185 [vm/aot] Add support to instance calls with unboxed parameters
2806ccacc7 [build] Update clang to 7e9747b50bcb1be28d4a3236571e8050835497a6.
972e045649 [analyzer] Fix windows paths again, and use ResourceProviderMixin.
e79f50098e Unify two error codes into one
2c5a56e7bb [vm] Disable late field init for constructor initialized fields
d3c0d59706 Disallow non-external generative JS constructors
60a81b0f51 Add hints to find equal elements in literal sets and maps
93ff9530aa Document difference between Stream.transform and Stream.map.
b0b8304b87 [Cleanup] Simplifies use_slow_path handling to remove unreachable asm.
b681bfd8d2 [VM] Fixes bad reuse/typing of temps in async transform invocations.
c1ed25dcf0 [CFE] Remove BulkCompiler
6facea722b [vm/ffi] Unbox Pointer data field - fix bytecode
7b6adc6083 Remove html_individual_config from remaining html tests
ce7fcff2ea Resolve type parameters to bounds when checking for implementing Iterable / Map.
a410f5bde1 [dart2js] rename null-safety flag and plumb through CFE
8ae984c54a [dart2js] Use a Symbol to access JavaScript Array Rti
a54a5eebb2 Remove html_individual_config from interactive_geolocation_test
69851f34c5 Remove the unused type hierarchy from the completion_metrics.dart
a2bf8dd351 Upgrade to dartdoc-0.30.2.
331067017f [vm] Fix late field store bug
9d76737487 Remove support for --emit-metadata in DDC
6e8efe2a15 Remove html_config from document_register_basic_test
a731b98113 [dart2js] Fix signature of identityHashCode.
3bab386570 Remove an unused shown name to remove a hint
ced0ceddd3 Rename an incorrectly named test class
739852d99d Migrate language_2/call to NNBD.
48c6180b46 [nnbd_migration] Hide hint insertion links after the migration is applied.
123a1ea517 [nnbd_migration] Fix 'apply edit' links.
3629658722 [nnbd_migration] Handle POST requests
5b0e439503 Fix windows path test/bots
5e66618175 Issue 40316. Verify only language version override locations at line starts.
110a29c9b3 Issue 40704. Support for ?[ in resolution.
55b4a240a4 [dart2js] Fix type promotion bug in static_type.dart.
a1992fec6d [ package:vm_service ] 4.0.0 release, Sentinels are now thrown, Future<dynamic> returns are now Future<Response>
bf5171cfd1 Add support for reporting how an accessed member related to the context type and extract feature computation
8d26e3df23 [vm] Don't insert CheckedSmi* instructions when the interface target suggests it's wrong.
f6b0a70230 Migrate language_2/await to NNBD.
1c64138e56 Migrate language_2/bool to NNBD.
1cf9d7a0c5 Revert "[vm] Add type to _AsyncAwaitCompleter.start."
2a8127dbfa [vm, gc] Take heap size into account when deciding when to start concurrent marking.
0649115b06 Rename VoidWithTypeParameters to VoidWithTypeArguments.
a74253987b Migration: add trace functionality to the preview tool.
d950783c07 [vm/ffi] Unify RawTypedData::data and Pointer::data
b406802981 [vm/ffi] Unbox Pointer data field
46bc5cd634 [vm] Support using different representations in ConvertUnboxedToUntagged
c135e2a7cd [vm/ffi] Reorder fields inside Pointer
4081235ac5 [vm] Support unboxed indices in indexed load and store
```
2020-03-10 10:49:00 -07:00
Ferhat
a3e883b149
[web] Fixes for Firefox & Safari double underline decoration bugs. (#16994)
* Work around line measurement rounding bug in Firefox. Add -webkit prefix for Safari text decoration
* Add check for measurement tests for firefox
2020-03-09 22:36:46 -07:00
Dan Field
a18066bfb3
Avoid capturing this unsafely in MultiFrameCodec (#16824) 2020-03-09 21:18:50 -07:00
Yegor
d41e25b549
Revert "Revert "fix shadows and mask filter blurs (#16963)" (#17008)" (#17040)
This reverts 619acd58ca55b2a85cf70d0f7861e3c98058972d and re-lands 6cfa7fcad64e2fe70bca01cfbc4598ecd24613b1. The 6cfa7fcad64e2fe70bca01cfbc4598ecd24613b1 was good. The screenshot changes were expected.

Fixes https://github.com/flutter/flutter/issues/32215
2020-03-09 20:32:59 -07:00
Ferhat
7f942f273b
Add support for firefox mac installer. Update web_ui pubspec for http.wq (#17044)
* Add support for firefox mac installer. Update web_ui pubspec for http.wq
* Addressed review comment 'final'
2020-03-09 18:13:37 -07:00
Yegor
4f4fdbf21f
fix "TREE INCONSISTENT" noise in compositing_test.dart (#16995) 2020-03-09 16:26:18 -07:00
Yegor
cb3237e255
Add more child lifecycle tests (#16689) 2020-03-09 16:26:06 -07:00
Chris Bracken
0d114c0c2f
Add libfreetype6-dev to desktop Linux dependencies (#17020)
Required for Freetype 2.
2020-03-09 15:07:45 -07:00
liyuqian
1194ba2b21
Disable shell benchmarks (#17038)
See https://github.com/flutter/flutter/issues/52263

TBR: @chinmaygarde
2020-03-09 14:12:04 -07:00
Jim Graham
8b6119ec83
Fix bounds of image_filter_layer (#16960) 2020-03-09 13:58:44 -07:00
liyuqian
19c11f21e7
Record fml and shell benchmarks (#16991) 2020-03-09 12:34:59 -07:00
skia-flutter-autoroll
ad82691b87
Roll src/third_party/skia c56950442dd1..23899c64e3db (11 commits) (#17033) 2020-03-09 11:26:02 -07:00
Yegor
d674b90e53
use commit date instead of author date (#17032) 2020-03-09 11:01:20 -07:00
skia-flutter-autoroll
0e2c8feeeb
Roll fuchsia/sdk/core/mac-amd64 from 8Wp6x... to r_oCI... (#17027) 2020-03-09 11:01:03 -07:00
skia-flutter-autoroll
6efadcdf8c
Roll fuchsia/sdk/core/linux-amd64 from Rhz2c... to v32mJ... (#17024) 2020-03-09 10:56:02 -07:00