258 Commits

Author SHA1 Message Date
Jason Simmons
5f09e0fdf0 Remove Libtxt and Minikin (flutter/engine#39499) 2023-02-13 17:16:04 +00:00
Loïc Sharma
ae70d40faf [Windows] Use 'ninja' instead of 'ninja.exe' (flutter/engine#39326) 2023-02-02 07:18:37 -08:00
Zachary Anderson
d9d1d8266e Use the x64 toolchain when building host artifacts on arm64 mac (flutter/engine#39279) 2023-02-01 07:41:27 -08:00
Mouad Debbar
e1651d2e3a [web] Expose felt flag for building CanvasKit Chromium (flutter/engine#39201) 2023-01-30 21:48:15 +00:00
Loïc Sharma
6de1c715fb Manually roll ANGLE, vulkan-deps, SwiftShader (flutter/engine#38650) 2023-01-25 00:53:25 +00:00
Ahmed Ashour
51c0a9ec65 Remove superfluous words from comments (flutter/engine#39068)
* Remove superfluous words.

* Format

* Duplicate in consecutive lines.
2023-01-24 09:54:19 -08:00
Mouad Debbar
105bb9ab43 [web] Build multiple CanvasKit variants (using toolchain_args) (flutter/engine#38448)
* [web] New gn for building CanvasKit

* Use toolchain_args to override CanvasKit gn args

* Use correct path for the generated canvaskit files

* Put toolchain close to target

* remove extra toolchains

* remove extra import

* add canvaskit_lite to archive

* fix local canvaskit path in tests

* add some guards using visibility and asserts

* renames

* formatting

* rename mistake

* Add github issue to the TODO

* Update buildroot sha

* clang-tidy error

* skip canvaskit targets when not needed
2023-01-23 20:37:18 +00:00
Zachary Anderson
f5f21291ab Shader analysis with malioc (flutter/engine#39005) 2023-01-19 12:42:15 -08:00
Chinmay Garde
6ebc41ded5 [Impeller] Remove unused flag enable-impeller-vulkan. (flutter/engine#38109)
* [Impeller] Remove unused flag.

* Incorporate review feedback.
2022-12-07 00:13:04 +00:00
Jonah Williams
da4e6080bd [Impeller] add --enable-impeller-3d flag to support scene experimentation (flutter/engine#37990)
* ++

* ++

* ++

* ++

* ++

* ++

* ++

* ++
2022-12-03 00:01:33 +00:00
Zachary Anderson
0e4c3935c5 Narrow the scope of the Windows Android arm hack (flutter/engine#37125) 2022-11-05 09:44:01 -07:00
Mouad Debbar
54b38506ab [web] Improve CPU usage when building wasm_release (flutter/engine#37294)
* [web] Improve CPU usage when building wasm_release

* use --offline mode

* make the change in tools/gn instead
2022-11-04 01:37:53 +00:00
Kaushik Iska
e2f4486b7d [Impeller] Wire-up AndroidSurfaceImpellerVulkan (flutter/engine#37249) 2022-11-03 02:19:58 +00:00
Jackson Gardner
c4b872a647 Produce both ddc and dart2js platform files. (flutter/engine#37162) 2022-11-03 02:15:40 +00:00
Loïc Sharma
13d9c0f556 Roll ANGLE, vulkan-deps, and shaderc (flutter/engine#36389)
This change updates ANGLE to a version that contains [angle#3906325](https://chromium-review.googlesource.com/c/angle/angle/+/3906325), which fixes the COM error reported in  https://github.com/flutter/flutter/issues/110948. This also updates vulkan-deps and shaderc as these are dependencies of ANGLE.

Part of https://github.com/flutter/flutter/issues/110948
2022-11-01 15:14:48 -07:00
Loïc Sharma
58e16a0ca7 [ANGLE] Re-enable ANGLE's "force context check" build flag (flutter/engine#37055)
In [angle@54dfb62](54dfb62c24), ANGLE made the "force context check" flag off by default [to improve performance](https://chromium-review.googlesource.com/c/angle/angle/+/2809855). Disabling this flag uncovered several bugs in ANGLE's D3D11 renderer that can cause [Flutter 3.3.0+ to crash](https://github.com/flutter/flutter/issues/110311). This change re-enables the "force context check" flag, bringing Flutter back to the last known good state used by Flutter 3.0.5 and earlier.

Fixes https://github.com/flutter/flutter/issues/110311
2022-10-31 11:53:23 -07:00
Kaushik Iska
1941c2ca48 [Impeller] Wire Flutter's own VulkanMemoryAllocator implementation (flutter/engine#37018) 2022-10-27 20:57:54 +00:00
Harry Terkelsen
0c8fd45248 [canvaskit] Don't bundle an embedded font (flutter/engine#36936) 2022-10-21 15:35:41 -07:00
Jackson Gardner
c7d1a69158 Web sdk build reland (flutter/engine#36851) 2022-10-20 20:31:54 +00:00
Jackson Gardner
cf2bf1ba1b Revert "Build Web SDK in wasm build tree (#36520)" (flutter/engine#36805) 2022-10-17 18:40:05 +00:00
Jackson Gardner
48495d1865 Build Web SDK in wasm build tree (flutter/engine#36520) 2022-10-14 18:40:49 +00:00
Jenn Magder
6a9181552b Remove deprecated --bitcode flag (flutter/engine#36635) 2022-10-06 19:57:08 +00:00
Jenn Magder
058fd02953 Stop compiling iOS with bitcode (flutter/engine#36596) 2022-10-04 21:56:13 +00:00
Pierrick Bouvier
1c09d84078 Enable native Windows on Arm build (flutter/engine#35962)
Linaro [Windows on Arm](https://www.linaro.org/windows-on-arm/) team is working to enable projects for this new platform.
Lately, we have been interested in Dart/Flutter.

This PR enables building natively flutter components (exe + dll) for windows on arm.

It solves this issue (https://github.com/flutter/flutter/issues/62597) partially, by starting with native build.
2022-09-22 12:44:26 -07:00
Harry Terkelsen
97cf129e20 Use Goma in the CanvasKit build (flutter/engine#36217) 2022-09-16 14:22:32 -07:00
Harry Terkelsen
5942b4f1b9 Build CanvasKit in the Flutter Engine (flutter/engine#32510) 2022-09-14 10:29:51 -07:00
Michael Ludwig
c647335371 Set temporary GN arg for Skia roll (flutter/engine#35651) 2022-08-24 20:06:28 +00:00
Chinmay Garde
dc18c5be1a Fix detection of Mac target specification as a host build. (flutter/engine#35063) 2022-08-01 22:13:03 +00:00
Stephen (Alex) Wallen
906cb2a4c0 Update python3 reference to vpython3 (flutter/engine#34952) 2022-07-28 17:23:03 +00:00
Chinmay Garde
e1218270fd Don't compile the Skia GL backend on iOS. (flutter/engine#34924) 2022-07-28 00:51:03 +00:00
Kaushik Iska
708668eb32 Fix build issues for impeller vulkan (flutter/engine#34843) 2022-07-22 15:20:51 -04:00
Kaushik Iska
9103a4992e [impeller] Fix linkage issue when impeller_enable_vulkan = true (flutter/engine#34763) 2022-07-19 18:54:03 +00:00
Jonah Williams
ba75a61925 remove fractional translation gn args (flutter/engine#34507) 2022-07-07 19:52:04 +00:00
Dan Field
5354cfb1e7 Fix GN warnings related to ANGLE (flutter/engine#34336) 2022-06-28 01:54:04 +00:00
Zachary Anderson
efe086ab30 Adds a flag to the gn script to build with -fstack-protector (flutter/engine#34257) 2022-06-24 08:45:19 -07:00
Dan Field
f7163f555c Roll SwiftShader, ANGLE, use SwANGLE in test harnesses (flutter/engine#33814)
Roll Swiftshader, ANGLE, and Vulkan deps.

Updates license bot for new locations of licenses and new files
in roll.

Converts unit test harnesses to use SwANGLE, which is the
supported way of using SwiftShader as a software backend for GLES.

Updates goldens due to swiftshader changes.

Fixes up include paths to avoid directly including third_party
code by that name, which is unlikely to work in other build
environments.

Includes upstream patches to ANGLE and SwiftShader to build in our
windows environments, as well as patches to Skia to support
defining the location of VulkanMemoryAllocator and a patch to ANGLE
to support opting into a newer version of VMA.
2022-06-23 16:43:39 -07:00
Ryan Macnak
552c516556 Disable compressed pointers on iOS. (flutter/engine#34001)
Because we are unable to allocate address space without also allocating memory, even unused portions of the compressed heap make less memory available to all other allocators in the process. The memory savings in the compressed heap will only out-weight the lost memory for other allocations if nearly all of the application's memory usage is in Dart, rather than, say, graphics or plugins.

Bug: https://github.com/flutter/flutter/issues/105183
Bug: b/235279083
2022-06-13 12:28:19 -07:00
Dan Field
8f11a9f069 Do not set use_ios_simulator unconditionally (flutter/engine#33855) 2022-06-07 20:18:05 -07:00
Zachary Anderson
7572a18ffe pylint a few python scripts and lint in lint.sh (flutter/engine#33675) 2022-06-04 15:21:18 -07:00
Zachary Anderson
6f236556a3 Format tools/gn (flutter/engine#33812) 2022-06-03 15:40:21 -07:00
Zachary Anderson
67d4e8ff38 Fixes for the Windows arm64 build (flutter/engine#33681)
* Fixes for the Windows arm64 build

* Update buildroot to 53abad0fa9c9e0285e80f9b0682316d5d39705be

* Update buildroot to f582982073b6f04b7a70bc284bac8fafa6c0a846
2022-05-31 08:06:47 -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
Zachary Anderson
1cd5517a29 Revert "Roll clang and buildroot (#33284)" (flutter/engine#33311)
This reverts commit da0f074eba63dddbe70d0fa597dcb662030168f4.
2022-05-12 22:23:50 -07:00
Zachary Anderson
da0f074eba Roll clang and buildroot (flutter/engine#33284) 2022-05-12 17:09:24 -07:00
Chris Bracken
52ce02e801 Support building the engine on Apple Silicon Macs (flutter/engine#33244)
This adds support for the following builds:
* macOS host builds on both x86_64 and arm64 Macs.
* macOS target builds on both x86_64 and arm64 Macs.

Previously, macOS target builds for any architecture were possible only
on x86_64 Macs.

Similarly, macOS host builds were only supported on x86_64 Macs, and
only for the x86_64 architecture. arm64 host builds were not possible on
Intel Macs.

When building on arm64 macs, builds are performed under Rosetta for two
reasons:
* The Fuchsia clang toolchain for arm64 macOS is not yet available.
* Swiftshader (used by our engine tests) doesn't support building OpenGL
  support as an arm64 binary.

See: https://github.com/flutter/flutter/issues/103386

Followup patches will move our use of Swiftshader to a "Swangle"
(Swiftshader + ANGLE) configuration, eliminating the Swiftshader issue
above.

Issue: https://github.com/flutter/flutter/issues/96745
Issue: https://github.com/flutter/flutter/issues/79403
2022-05-11 09:40:28 -07:00
Chris Bracken
37d61c87e6 [gn] Extract target_os, target_cpu resolution (flutter/engine#33238) 2022-05-10 14:29:03 -07:00
Zachary Anderson
95646f565d Revert "[gn] Extract target_os, target_cpu resolution (#33224)" (flutter/engine#33231)
This reverts commit 9276dc1ff1673152e2bd38b0aabb79313b136555.
2022-05-10 10:46:19 -07:00