213 Commits

Author SHA1 Message Date
Jonah Williams
53eaa066a6 make fractional translation the default for desktop/tester (flutter/engine#34115) 2022-06-17 09:13:09 -07:00
Christopher Fujino
9ed0ddc68c Reland "Use CIPD to download prebuilt Dart SDKs #33345" (flutter/engine#33569) 2022-05-23 17:08:04 -07:00
Christopher Fujino
2fb1e6b810 Revert "Use CIPD to download prebuilt Dart SDKs (#33345)" (flutter/engine#33558)
This reverts commit faf29ed4589f4d025dd3d2349f34536de28844b7.
2022-05-23 10:09:40 -07:00
Dan Field
a73d5b5fbe Reland Enable MSAA behind a flag for iOS (flutter/engine#33505) 2022-05-19 23:58:05 -07:00
Zachary Anderson
faf29ed458 Use CIPD to download prebuilt Dart SDKs (flutter/engine#33345) 2022-05-17 12:56:44 -07:00
Jonah Williams
858241db7c Add configuration to support compiling engine with SUPPORT_FRACTIONAL_TRANSLATION (flutter/engine#33393) 2022-05-16 13:04:05 -07:00
Zachary Anderson
00607f96ea Reland: Roll clang and buildroot (flutter/engine#33339) 2022-05-14 06:04:14 -07:00
Zachary Anderson
b2e44faca7 Revert "Reland: Roll clang and buildroot (#33325)" (flutter/engine#33337)
This reverts commit ca0e980e45b222e3e4534abe4c4e87631bf329ac.
2022-05-13 19:28:06 -07:00
Zachary Anderson
ca0e980e45 Reland: Roll clang and buildroot (flutter/engine#33325) 2022-05-13 18:58:18 -07:00
Jonah Williams
815195114e allow flutter tester to disable font loading from asset bundle (flutter/engine#33323) 2022-05-13 15:04:06 -07:00
Chris Bracken
09285aac02 Use empty in place of size checks vs 0 (flutter/engine#33151) 2022-05-06 13:09:04 -07:00
Chris Bracken
1af24ccf62 Set Platform.executable on startup (flutter/engine#33127)
Previously, using Platform.executable (from dart:io) returned null (if
non-null-by-default was disabled) or threw an exception (if NNBD was
enabled) since we weren't setting it.

We now pass the executable name to Dart during VM startup based on the
first value in the FlutterProjectArgs::command_line_argv array passed to
FlutterEngineRun (or FlutterEngineInitialize) on startup. argv[0] (if
specified) is explicitly documented as being required to be the
executable name in embedder.h. In the case where no argv[0] is
specified, we instead set Platform.executable to "Flutter" in order to
avoid violating the (non-nullable) type annotation on
Platform.executable.

Note that dart::bin::SetExecutableName() does NOT make a copy of the
input string, so that value needs to be available for the entire lifetime
of the VM.

This also adds EmbedderConfigBuilder::SetExecutableName() to support
setting a fake executable name in unittests. By default, we continue to
set the name "embedder_unittest" unless overridden using this method.

See: https://api.flutter.dev/flutter/dart-io/Platform/executable.html
See: https://github.com/dart-lang/sdk/issues/48427

Issue: https://github.com/flutter/flutter/issues/83921
2022-05-05 11:14:16 -07:00
godofredoc
1df74f0938 Fix gtk targets for arm64 artifacts. (flutter/engine#33130) 2022-05-05 09:54:08 -07:00
Chris Bracken
0a84242538 WinUWP: Remove WinUWP sources, targets (flutter/engine#33019)
This removes:
* The Windows UWP emebedder sources and targets
* UWP-specific build targets
* UWP-specific code behind WINUWP #ifdefs
* UWP-specific TODOs.
* uwptool.exe sources and targets used for installing, uninstalling, and
  launching UWP apps.

This is a straight removal patch, and does not land any refactorings
made possible by removal of UWP support. Those patches will land in
followup refactorings.

Tool support was removed in:
https://github.com/flutter/flutter/pull/102174

The CI target was removed in:
https://github.com/flutter/engine/pull/33012

The Recipe was removed in:
https://flutter-review.googlesource.com/c/recipes/+/29500

GN build support was removed in:
https://github.com/flutter/engine/pull/33016

Issue: https://github.com/flutter/flutter/issues/102172
2022-04-29 18:39:36 -07:00
Jason Simmons
d9de6d31cf Disable the timeline in release mode on Android unless systrace is enabled (flutter/engine#32909) 2022-04-26 10:54:03 -07:00
ColdPaleLight
31e332ee32 Tuning resource cache max bytes in lightweight engine scenarios (flutter/engine#32156) 2022-03-31 21:11:05 -07:00
godofredoc
c1b58c4c22 Targets to generate macos gen snapshot. (flutter/engine#31950) 2022-03-28 18:25:03 -07:00
Dan Field
f396ea98b7 Enable MSAA behind a flag for Android GL, add TODOs for other platforms (flutter/engine#32128) 2022-03-21 11:10:05 -07:00
eggfly
a75451175f Reland: Remove unused Settings::ToString. (#8642) (flutter/engine#32032) 2022-03-15 19:55:10 -07:00
Chinmay Garde
34f3581a3c Switch the renderer to impeller based on the presence of a command line flag. (flutter/engine#31959)
Specifying the `--enable-impeller` flag will switch the renderer to using
Impeller instead of Skia. On platforms where Impeller is not supported, this
flag is ignored.

The notion of the `flutter::SurfaceFrame` has been augmented. Now, in the
absence of a Skia surface to render to, the surface frame will render into a
display list instead.

Impeller variants of the context and surface variants have been added to
`shell/gpu` and `shell/platform`. The variants prepare surface frames that
don’t/can’t specify a Skia surface thus forcing the surface frame to render to a
display list instead. Then, in the submit callback, they forward the display
list ops to the Impeller display list dispatcher.

This scheme has been chosen as it requires the fewest updates to engine
internals which all depend on Skia data structures. Instead of updating all
call-sites to be Skia neutral, the display list interface itself is being made
graphics package agnostic.
2022-03-15 14:12:53 -07:00
Jesús S Guerrero
a9dc88faa7 Support route on ios engine (flutter/engine#31555) 2022-03-02 13:26:02 -08:00
godofredoc
229e5b9a1d Generate fonts in the expected location. (flutter/engine#31575)
* Generate fonts in the expected location.

Fonts-subset is generated directly in out/../zip_archives but the final
destination is expected to be inside a folder like linux-x64. This PR
generates the file directly in the expected path.

Bug: https://github.com/flutter/flutter/issues/81855

* Fix font zip tests.

* Revert changes to run_tests.py

* Update host_os_cpu_name variable to report darwin for mac.

* Fix variable names.

* Calculate prebuilts path using mac instead of darwin.

* Add platform to fontset path.

* Fix platforms map.

* Add debugging.

* Add win32 to the map of artifact locations.

* Use full_platform_name instead of host_os_name.

* Use x32 for windows font binaries.

* Fix paths for debug version in windows.

* Use x64 for win32.

* Remove additional logging.

* Add linux2 to map of platforms.
2022-02-23 19:35:20 -08:00
godofredoc
56a84d32da GN targets to create flutter_web_sdk. (flutter/engine#31556) 2022-02-19 22:24:02 -08:00
Zachary Anderson
eca60c0b90 Add clang-analyzer-* and clang-diagnostic-* to .clang-tidy (flutter/engine#31291) 2022-02-09 12:26:34 -08:00
godofredoc
7da0c5421c Archives for dart-sdk and flutter_patched_sdk. (flutter/engine#30888) 2022-02-04 09:30:02 -08:00
Siva
f31c8eb26c Add option to enable serial GC (flutter/engine#30975)
* Roll Dart SDK from e256855d07ba to a3b62f366529 (4 revisions) (#21809)

* Roll Dart SDK from e655b9a3839e to b58cfe5ab24e (1 revision) (#21920)

* Roll Dart SDK from fc82eeed7df3 to 8be6a08153cc (1 revision) (#22005)

* Roll Dart SDK from fe12b0536f42 to a188781c9fc8 (1 revision) (#22379)

* Roll Skia from 95b5fb9213d7 to 68ac3b9ec3ca (17 revisions) (#22713)

* Roll Dart SDK from 2c74e62a050c to f9760fc12871 (5 revisions) (#22881)

* Roll Dart SDK from 68d1c7504f7d to f166571c7bc4 (1 revision) (#23056)

* Roll Dart SDK from 970d74c42472 to fd72dbb5b82b (1 revision) (#23820)

* Trigger an engine build to re-open the tree (#26056)

This commit is empty and simply triggers a new build to open the tree.

Commit e9ca785106ddc672d945062758800bdf1dd0aa68 was re-built after a
succesful build; upload to the cloud storage bin failed.

* Roll Skia from d9a7c5953df3 to 827bb729a84d (2 revisions) (#26096)

* Roll Dart SDK from d616108772bd to a527411e5100 (0 revision) (#26156)

* Roll Dart SDK from bb9d96ffbafa to 7250fd6379b2 (0 revision) (#26374)

* Roll Dart SDK from 202c42e3395c to 2e9c4305a6aa (1 revision) (#26578)

* Roll buildroot to 275038b8be7196927b0f71770701f3c2c3744860 (#26945)

* [test] empty commit (#27599)

https://flutter-review.googlesource.com/c/infra/+/15660

* Roll Dart SDK from e1414001c93b to 686070850ee3 (1 revision) (#27620)

* Empty commit to apply latest LUCI config (#27767)

* Roll Dart SDK from 3b11f88c96a5 to 976f160b547f (3 revisions) (#29436)

* Empty commit to fix main tree status (#29760)

* Add option to enable serial GC
This option can be used to avoid thread contention issues for the UI thread when running on low power devices with limited number of cores.

* Fix format.

* Added test.

* Add build rule.

* Address review comments.

Co-authored-by: skia-flutter-autoroll <skia-flutter-autoroll@skia.org>
Co-authored-by: Chris Bracken <chris@bracken.jp>
Co-authored-by: Casey Hillers <chillers@google.com>
2022-01-25 17:06:18 -08:00
eggfly
85fe32c0d3 Add a custom switch to clean up the leaked Dart VM (flutter/engine#30541) 2022-01-20 23:20:10 -08:00
Jim Graham
46a8def326 Opacity peephole optimization (flutter/engine#29775) 2021-12-14 16:19:09 -08:00
ColdPaleLight
742a3dc7d8 Remove the dart entry point args from the Settings struct (flutter/engine#29831) 2021-11-22 18:43:02 -08:00
ColdPaleLight
9ecd4c1899 Make FlutterEngineGroup support dart entrypoint args (flutter/engine#29096) 2021-11-18 18:08:03 -08:00
Zachary Anderson
03c0f7e453 Add 'explicit' to header files (flutter/engine#29741) 2021-11-17 12:49:16 -08:00
Zachary Anderson
40ca25819e Use a prebuilt Dart SDK during Fuchsia builds (flutter/engine#29680) 2021-11-11 13:24:37 -08:00
Jason Simmons
2c8702d096 Build a specialized snapshot for launching the service isolate in profile mode on Android (flutter/engine#29245) 2021-10-27 11:03:01 -07:00
Jason Simmons
6e16f8ecd2 Call rapidjson::ParseResult::IsError to check for JSON parsing errors (flutter/engine#29270) 2021-10-20 16:53:01 -07:00
Jason Simmons
79c7cfdc91 Defer setup of the default font manager if the embedding prefetched the font manager (flutter/engine#28987) 2021-10-04 13:23:02 -07:00
Jim Graham
619b6cdf77 enable DisplayList by default (flutter/engine#28946) 2021-09-30 00:23:01 -07:00
Darren Chan
b82554ae4a Implement a default font manager for Fuchsia. (flutter/engine#28673)
This helps us get rid of our hacky font switch after engine initialization.

See https://fxbug.dev/76406 and https://github.com/flutter/flutter/issues/82202.
2021-09-21 12:33:37 -07:00
David Worsham
657b63f499 fuchsia: Convert vulkanb headers to DEPS (flutter/engine#28676) 2021-09-16 22:39:06 -07:00
Jim Graham
10d49ea696 Add RasterCache metrics to the FrameTimings (flutter/engine#28439) 2021-09-03 16:26:01 -07:00
Jason Simmons
34f7c9e249 Ensure that Skia persistent cache filenames do not exceed the maximum allowed length (flutter/engine#28315) 2021-09-02 11:56:02 -07:00
Jim Graham
7fdbaaf1fe Revert "Reland enable DisplayList by default (#27892)" (flutter/engine#28308) 2021-08-25 14:31:02 -07:00
Jim Graham
8531128b8e Reland enable DisplayList by default (flutter/engine#27892) 2021-08-05 17:40:01 -07:00
Jason Simmons
27d018d498 Log all Skia trace events if the --trace-skia flag is passed (flutter/engine#27680) 2021-07-27 14:34:02 -07:00
Jim Graham
e8d98f49b2 Revert "Reland enable DisplayList by default (#27407)" (flutter/engine#27475)
This reverts commit 482a22bbd022557042b328275495f661fb0b0b16.
2021-07-16 10:48:22 -07:00
Jim Graham
482a22bbd0 Reland enable DisplayList by default (flutter/engine#27407) 2021-07-15 12:06:02 -07:00
Zachary Anderson
83066bd45d Add an option to use a prebuilt Dart SDK (flutter/engine#26931) 2021-07-08 10:36:34 -07:00
Jim Graham
d0a9ec4668 Revert "(Reland) enable DisplayList mechanism over SkPicture by default (#27175)" (flutter/engine#27230)
This reverts commit b267842218f6661bcd840772ccb4778529ea2a6c.
2021-07-07 18:48:37 -07:00
Jim Graham
b267842218 (Reland) enable DisplayList mechanism over SkPicture by default (flutter/engine#27175) 2021-07-07 13:41:01 -07:00
Jim Graham
b65f1675a9 Revert "enable DisplayList by default (#27130)" (flutter/engine#27153)
This reverts commit cbff6a03d0ad6307819321d56b3d06ab94039804.
2021-07-02 16:22:59 -07:00
Jim Graham
cbff6a03d0 enable DisplayList by default (flutter/engine#27130) 2021-07-02 13:31:02 -07:00