533 Commits

Author SHA1 Message Date
Michael Goderbauer
f2a937ebba Update outdated links (flutter/engine#23513) 2021-01-08 10:14:01 -08:00
Chase Latta
b203aaaa99 Revert "bump fuchsia toolchain to clang-12" (flutter/engine#23456) 2021-01-06 11:14:49 -08:00
Kaushik Iska
e5e6e9cd29 [metal] [macos] Suffix for metal builds macos (flutter/engine#23432) 2021-01-05 14:59:25 -08:00
George Wright
90fd5c978f Add support for different simulator architectures 2021-01-05 11:46:27 -08:00
Kaushik Iska
eb3ab64883 [embedder] [metal] Add support for Metal Renderer Config in the embedder API (flutter/engine#22854)
This change adds a FlutterMetalRendererConfig that lets embedders
specify metal as rendering api.

Also adds a test that validates rendering a gradient using metal.
2021-01-01 20:39:36 -08:00
Dan Field
fa58c54dd2 Make it easier to turn on Xcode symlinks (flutter/engine#23150) 2020-12-17 13:44:01 -08:00
Zachary Anderson
acf636e5d9 Update android_lint deps (flutter/engine#23151) 2020-12-17 12:55:07 -08:00
Siva
ae14ea248a Add missing sdk constriant in pubspec.yaml files. (flutter/engine#23124)
* Add missing sdk constriants in pubspec.yaml files.

* Update tools/android_lint/pubspec.yaml

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2020-12-17 09:45:26 -08:00
Chase Latta
21a7f7065e bump fuchsia toolchain to clang-12 (flutter/engine#23067) 2020-12-16 15:18:21 -08:00
gaaclarke
3d4aa5548a Implemented FlutterEngineGroup and Spawn API. (flutter/engine#22975) 2020-12-14 17:07:44 -08:00
James Clarke
bf3c427990 Windows: Add UWP target stub [Flutter#14697] (flutter/engine#21754) 2020-12-06 11:03:02 -08:00
skia-flutter-autoroll
9a4e45f407 Roll Dart SDK from f9760fc12871 to 2736bd161251 (1 revision) (flutter/engine#22888) 2020-12-04 20:13:01 -08:00
skia-flutter-autoroll
326137f27a Roll Dart SDK from 97cfd05b3cb3 to a37a4d42e53d (4 revisions) (flutter/engine#22849)
https://dart.googlesource.com/sdk.git/+log/97cfd05b3cb3..a37a4d42e53d

2020-12-03 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.12.0-112.0.dev
2020-12-03 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.12.0-111.0.dev
2020-12-03 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.12.0-110.0.dev
2020-12-03 dart-luci-ci-builder@dart-ci.iam.gserviceaccount.com Version 2.12.0-109.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter-engine
Please CC dart-vm-team@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/+doc/master/autoroll/README.md
2020-12-03 14:10:04 -08:00
Jason Simmons
111a924c83 Generate Maven metadata files for engine artifacts (flutter/engine#22685) 2020-12-02 12:43:01 -08:00
skia-flutter-autoroll
a31bcd9c78 Roll Dart SDK from 5acaa5f14b03 to cfaa7606cbf5 (2 revisions) (flutter/engine#22827) 2020-12-02 11:58:01 -08:00
skia-flutter-autoroll
cc4b12faf4 Roll Dart SDK from dcd5a8f005a2 to 960620d2e811 (794 revisions) (flutter/engine#22768) 2020-11-30 10:03:01 -08:00
Martin Kustermann
5821ed3513 Manual roll of Dart SDK from ce76503f5b46 to dcd5a8f005a (flutter/engine#22766)
dart-lang/sdk@dcd5a8f005 [vm/aot] Two improvements to signature shaking (reland)
dart-lang/sdk@5bff8f3bb4 [co19] Roll co19 to 8740182c0547c1b26b79a5f96e28a0d5cd27b0c9
dart-lang/sdk@b16e402fb9 Prepare for replacing PackageBundle with PackageBundleReader.
dart-lang/sdk@85174e4d8c Revert "Reland "update Glob in the sdk, also adds package:file to the sdk""
dart-lang/sdk@4a206e4108 Analyzer: Report invalid instance access from closure within factory
dart-lang/sdk@72e8eab7e2 [vm/concurrency] Reduce public API surface of ICData, remove unused methods, make methods private
dart-lang/sdk@94f6532bd9 Capture a couple of failing completions as tests
dart-lang/sdk@c62709e87b Reland "update Glob in the sdk, also adds package:file to the sdk"
dart-lang/sdk@4fc797d6b1 [Analyzer] Add LSP dart.analysisExcludedFolders to readme
dart-lang/sdk@e047dd60d6 Ensure that function elements inside local variable elements have unique locations.
dart-lang/sdk@7de67100a3 [co19] Roll co19 to 7a43aa19fb31db657b8b2dac2ed8a8af28889be3
dart-lang/sdk@367761987b [vm/corelib] Fix ConcurrentModificationError for empty addAll.
dart-lang/sdk@b64550eaff Add a `nullFuture` in `dart:internal`.
2020-11-27 14:14:53 +01:00
Filip Filmar
57f5298af9 Add and use --quiet flag on the license checker (flutter/engine#22485) 2020-11-20 11:18:03 -08:00
gaaclarke
01407e7a75 Made tools/gn error out if it can't find goma (flutter/engine#22591) 2020-11-19 09:58:02 -08:00
Kaushik Iska
0427131ad9 [goma] USe depot_tools vended goma is present (flutter/engine#22550) 2020-11-17 14:08:01 -08:00
skia-flutter-autoroll
3c2e8ae1a0 Roll Dart SDK from d67a5c245285 to 4bf74ee7d04e (2 revisions) (flutter/engine#22544) 2020-11-16 13:33:03 -08:00
Filip Filmar
6381d11abd Roll ICU to c2a4cae149aae7fd30c4cbe3cf1b30df03b386f1 (flutter/engine#22465)
Changes to make this work:

- Had to change the use of an UBool constant `FALSE` to 0 because
  the file referring to it does not include the respective header.

- Had to change the license checker to ignore files in the directory
  icu/source/samples.  There were random changes to the licensing
  headers which tripped up license checks.  And since we don't include
  samples in the binaries we build, the most efficient way to fix it is
  to exclude sample code from license checks.

Issue: https://github.com/flutter/flutter/issues/70370
2020-11-13 14:52:11 -08:00
Zachary Anderson
f34d9eac78 Default to 2.7 when generating the package config (flutter/engine#22469)
For https://github.com/flutter/flutter/issues/70349
2020-11-12 10:37:14 -08:00
David Worsham
4026f4ae32 fuchsia: Add licenses to CIPD (flutter/engine#22430) 2020-11-11 12:08:13 -08:00
stuartmorgan
63d117142d Roll ANGLE to latest version (flutter/engine#22177)
Rolls ANGLE to the latest master. This will help support upcoming UWP work.
2020-11-10 13:32:16 -08:00
Kaushik Iska
b2bcc689b7 Roll dart e182eac158cf..9bc7d4604277 (flutter/engine#22332) 2020-11-05 15:59:02 -08:00
skia-flutter-autoroll
ac62448f3a Roll Dart SDK from a4fbabcd73dc to 57bb12dc24d2 (1 revision) (flutter/engine#22283) 2020-11-03 18:08:01 -08:00
Martin Kustermann
e9ec3d5656 Manual Dart SDK roll 6e015bd9cddb to 9c6e76468ca4 (6 revisions (flutter/engine#22153)
This includes the commits from

  https://dart.googlesource.com/sdk.git/+log/6e015bd9cddb..9c6e76468ca4

as well as the changes from

  https://github.com/flutter/engine/pull/22149/files

which are needed due to dart-lang/sdk@23ee425de7
2020-10-27 18:26:48 -07:00
Jacob MacDonald
b58e203214 add a package config file to const finder test fixtures (flutter/engine#22124)
Adds a package config file to the const finder test fixtures to unblock the null safety flag removal change.

Otherwise these fixtures get opted in to null safety and some constants are missing (presumably because they are invalid).

Related dart-lang/sdk#43872
2020-10-26 16:39:08 -07:00
Chinmay Garde
db5c793ed5 Enable loading snapshots with sound null safety enabled. (flutter/engine#21820)
Snapshots compiled with sound null-safety enabled require changes to the way in
which isolates are launched. Specifically, the `Dart_IsolateFlags::null_safety`
field needs to be known upfront. The value of this field can only be determined
once the kernel snapshot is available. This poses a problem in the engine
because the engine used to launch the isolate at shell initialization and only
need the kernel mappings later at isolate launch (when transitioning the root
isolate to the `DartIsolate::Phase::Running` phase). This patch delays launch of
the isolate on the UI task runner till a kernel mapping is available. The side
effects of this delay (callers no longer having access to the non-running
isolate handle) have been addressed in this patch. The DartIsolate API has also
been amended to hide the method that could return a non-running isolate to the
caller.  Instead, it has been replaced with a method that requires a valid
isolate configuration that returns a running root isolate. The isolate will be
launched by asking the isolate configuration for its null-safety
characteristics.

A side effect of enabling null-safety is that Dart APIs that work with legacy
types will now terminate the process if used with an isolate that has sound
null-safety enabled. These APIs may no longer be used in the engine. This
primarily affects the Dart Convertors in Tonic that convert certain C++ objects
into the Dart counterparts. All known Dart Converters have been updated to
convert C++ objects to non-nullable Dart types inferred using type traits of the
corresponding C++ object. The few spots in the engine that used the old Dart
APIs directly have been manually updated. To ensure that no usage of the legacy
APIs remain in the engine (as these would cause runtime process terminations),
the legacy APIs were prefixed with the `DART_LEGACY_API` macro and the macro
defined to `[[deprecated]]` in all engine translation units. While the engine
now primarily works with non-nullable Dart types, callers can still use
`Dart_TypeToNonNullableType` to acquire nullable types for use directly or with
Tonic. One use case that is not addressed with the Tonic Dart Convertors is the
creation of non-nullable lists of nullable types. This hasn’t come up so far in
the engine.

A minor related change is reworking tonic to define a single library target.
This allows the various tonic subsystems to depend on one another. Primarily,
this is used to make the Dart convertors use the logging utilities. This now
allows errors to be more descriptive as the presence of error handles is caught
(and logged) earlier.

Fixes https://github.com/flutter/flutter/issues/59879
2020-10-16 14:53:26 -07:00
Jason Simmons
d6720f7085 Prevent a race between SurfaceTexture.release and updateTexImage (flutter/engine#21777) 2020-10-14 15:02:02 -07:00
Dan Field
73b959d7cb Forbid android.util.Log (flutter/engine#21696) 2020-10-08 14:52:05 -07:00
Chinmay Garde
4cadaece76 Fix engine Xcode projection for newer versions of Xcode. (flutter/engine#21701) 2020-10-08 11:40:16 -07:00
Pieter van Loon
3ce29048c0 Enabled metal on ios simulator (flutter/engine#17881) 2020-10-07 17:47:03 -07:00
nturgut
1e93da2df6 Writing the commit no to a text file (flutter/engine#21546)
* setting an env variable using commit no

* change variable name

* try to use ref no as string

* use echo for output

* remove all the other stdout

* echo json instead of only the commit no

* use the file method

* list the directory contents

* remove pwd. print flutter version verbose
2020-10-02 12:41:39 -07:00
nturgut
a22355b13b cloning flutter repo for luci recipes (flutter/engine#21532)
* cloning flutter repo for luci recipes

* rename the file, script does not clone the repo, but reset it to the right commit

* adding the version logging
2020-10-01 12:32:43 -07:00
Filip Filmar
c0a14ebec4 Git versioning flag (flutter/engine#20748)
* [gn] Adds a flag to turn off git hash versioning

Without this flag, it is excessively tedious to build Dart SDK
for local testing on Fuchsia, since Fuchsia runner will reject
a Dart SDK without a matching version.

* [gn] Add flag --no-dart-version-git-info

This flag suppresses the SDK stamping by git hash, which allows
deploying self-built Dart SDK.  Without this flag, it is impossible
to build and deploy a development Dart SDK on Fuchsia.
2020-09-24 14:52:32 -07:00
Jason Simmons
32fbdb6755 Fix boolean value checks in StandardMessageCodec (flutter/engine#21270)
Fixes https://github.com/flutter/flutter/issues/65619
2020-09-23 16:31:07 -07:00
Dan Field
6c32f51fbb avoid hard coding OS (flutter/engine#21248) 2020-09-17 12:57:03 -07:00
Chris Bracken
2586db3b22 Clean up C++ includes (flutter/engine#21127)
Cleans up header order/grouping for consistency: associated header, C/C++ system/standard library headers, library headers, platform-specific #includes.

Adds <cstring> where strlen, memcpy are being used: there are a bunch of places we use them transitively.

Applies linter-required cleanups. Disables linter on one file due to included RapidJson header. See https://github.com/flutter/flutter/issues/65676

This patch does not cover flutter/shell/platform/darwin. There's a separate, slightly more intensive cleanup for those in progress.
2020-09-11 21:18:35 -07:00
Chris Bracken
9ff7d7ca44 Copyright header hygiene improvements (flutter/engine#21089)
Add copyright headers in a few files where they were missing.

Trim trailing blank comment line where present, for consistency with
other engine code.

Use the standard libtxt copyright header in one file where it differed
(extra (C) and comma compared to other files in libtxt).

This also amends tools/const_finder/test/const_finder_test.dart to look
for a const an additional four lines down to account for the copyright
header added to the test fixture.
2020-09-11 08:55:37 -07:00
Siva
b8e1a2326b Remove support for option 'dart_custom_version_for_pub' that generates (flutter/engine#20765)
a custom version string of Dart for Flutter.

Dart is going to be removing support for this ability to generate
a custom version string (only dev branch hashes are being rolled into
flutter).
2020-08-25 19:55:01 -07:00
David Worsham
3a6e0d47c6 fuchsia: Convert legacy permutations to build flag (flutter/engine#20647) 2020-08-19 19:09:51 -07:00
Dan Field
431323d512 Make const_finder work with implemented and extended classes (flutter/engine#20614) 2020-08-18 23:16:03 -07:00
David Worsham
6d6047204d Add --unoptimied and --asan to Fuchsia builds (flutter/engine#20427) 2020-08-12 14:47:55 -07:00
Dan Field
d2b4a1f214 improve error messages for font-subset (flutter/engine#20410) 2020-08-11 11:45:22 -07:00
Christopher Fujino
2936c89eda Reland "ensure we do not double publish to CIPD #19724" (flutter/engine#19853) 2020-08-06 16:23:34 -07:00
Yuqian Li
04c3fcb28f Revert "Revert "Add preliminary Windows arm64 plumbing (#20156)" (#20236)" (flutter/engine#20243)
This reverts commit 5570bdf6b5eacc03296e2cf50c033810d8ff6d6d.

The LUCI recipe issue should have already been fixed by @christopherfujino 

Try to trigger the LUCI tests with this as the "retry" button is somehow disabled for https://ci.chromium.org/p/flutter/builders/prod/Linux%20Fuchsia/4755 even if I logged in.
2020-08-04 14:08:47 -07:00
Yuqian Li
5570bdf6b5 Revert "Add preliminary Windows arm64 plumbing (#20156)" (flutter/engine#20236)
This reverts commit 40b747e18f3c1418aa65a6be64808e35780dc923.

Try to fix the LUCI Fuchsia build.
2020-08-04 11:35:21 -07:00
stuartmorgan
40b747e18f Add preliminary Windows arm64 plumbing (flutter/engine#20156)
- Rolls buildroot to pick up
  https://github.com/flutter/buildroot/pull/389
- Adds support to the gn wrapper for setting the traget CPU on Windows

Attempting to generate Windows arm64 GN files will currently fail, due
to lack of arm64 support for an OpenGL test support target, but this
sets the foundation, and makes experimentation easier.

Part of https://github.com/flutter/flutter/issues/62597
2020-08-04 09:28:14 -07:00