677 Commits

Author SHA1 Message Date
Zachary Anderson
86de3b6591 Revert "Display Features support (Foldable and Cutout) (#24756)" (flutter/engine#28447)
This reverts commit 53b9a690c5eb8410c561be43964f350f58347366.
2021-09-03 09:01:15 -07:00
Andrei Diaconu
53b9a690c5 Display Features support (Foldable and Cutout) (flutter/engine#24756)
* Add DisplayFeatures and DisplayCutout to viewport metrics

* WindowManager alpha03 and better documentation

* Fixed formatting

* Fixed failing tests

* Replaced API version code P with 28

* Unnecessary import

* Fixed display features parameters missing

* Documentation changes

* First paragraph is a sentence

* Update androidx window library to version 1.0.0-alpha05

* Improve documentation, remove deprecated display feature call

* Write tests and improve documentation

* Migrate to Window Manager alpha08

* Update androidx window to beta01

* Remove unused import

* Remove window_hook_integration_test.dart

* Fix tests

* Update android_embedding_dependencies version to include androidx.window

* Add androidx.window to test_runner build

* Add empty display features arrays to fuchsia platform view

* Fix tests using final class mocking

* Add missing license header

* Update licenses_golden
2021-09-03 04:02:17 -07:00
Zachary Anderson
fb2fe21c52 Revert "Turn compressed pointers on for Android 64 bit architectures. (#28388)" (flutter/engine#28405) 2021-09-01 09:46:01 -07:00
Jason Simmons
426d5baac8 Add missing result for the TextInput.setEditableSizeAndTransform method handler on Android (flutter/engine#28376) 2021-08-31 14:56:02 -07:00
Siva
742e38b385 Turn compressed pointers on for Android 64 bit architectures. (flutter/engine#28388) 2021-08-31 10:55:19 -07:00
Garret Rieger
0aa51f6464 Add feature detection to automatically use new subsetting api. (flutter/engine#28026)
In the upcoming version of harfbuzz (3.0.0) the subsetting api is being declared stable. With this there are some changes to the API. This prepares flutter to start automatically using the new API once harfbuzz 3.0.0 is rolled into flutter.
2021-08-26 13:34:39 -07:00
Chris Bracken
ba0a8f78ec Roll buildroot to 6ef1bf72e34e572f469386732a05de7c8495f874 (flutter/engine#28302)
Picks up a revert of a change from using python3 to vpython3 for exec
rules in gn. https://github.com/flutter/buildroot/pull/507

Also sets Python runtime to `python3` in `gn.bat` to match the revert to
`python3` in https://github.com/flutter/engine/pull/28313

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-26 11:59:59 -07:00
Chris Bracken
8f87951759 Revert "Build dart:zircon and dart:zircon_ffi (#28071)" (flutter/engine#28313)
This reverts commit 1e9b7aed566105eec982ca0eb545139b218bc916.

Reverting in order to land revert of the gn script_executable from
python3 to vpython3, which is causing flakes on Windows.

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-26 11:21:49 -07:00
Chris Bracken
a69f834185 Add --verbose flag to gn wrapper (flutter/engine#28318)
When debugging gn invocations, it's useful to be able to run the
underlying `gn` tool in verbose mode. This adds a `--verbose` flag that
passes the `-v` flag on the underlying `gn` invocation.
2021-08-25 20:48:08 -07:00
Chris Bracken
4c5d250e69 Use vpython3 for gn script (flutter/engine#28314)
We believe this will reduce flakiness on the Windows bots by limiting
the interaction of the global Python install and the self-contained
hermetic vpython that ships with depot_tools.

Issue: https://github.com/flutter/flutter/issues/88719
2021-08-25 15:54:28 -07:00
Jason Simmons
a00125e2e4 Run the Android Robolectric tests using Gradle (flutter/engine#28084) 2021-08-25 09:11:02 -07:00
Chris Bracken
a858cceed8 Eliminate Android-specific Vulkan support (flutter/engine#28239)
This eliminates Vulkan support for Android. As of flutter/engine#27980
(684ad82) we are no longer running Android-Vulkan builds. This
eliminates the --enable-vulkan flag from tools/gn and any code that is
only reachable when that flag is enabled.

Note that after this patch, `shell_enable_vulkan` is always false,
however the //flutter/shell/gpu:gpu_surface_vulkan target and source
files remain since they are still used when `test_enable_vulkan` is
true, which is the case when `is_fuchsia` is true. Note that these files
are *not* built as part of a regular fuchsia build (see the
`shell_gpu_configuration` in //shell/platform/fuchsia/flutter/BUILD.gn),
but may be enabled once the Fuchsia embedder is migrated to the Embedder
API.

Also updates TODOs to dworsham, who is the committer who'll be
transitioning the Fuchsia embedder to the embedding API.
2021-08-23 13:59:43 -07:00
Dan Field
d8ce6688ad No more gradlew, instead get gradle during gclient sync (flutter/engine#28264) 2021-08-23 13:58:22 -07:00
Christopher Fujino
9382e37ecb set pre-built dart sdk to default (flutter/engine#28236) 2021-08-20 19:03:01 -07:00
Anthony
50adf078fd [Re-land] Add SPIR-V FragmentShader API to painting.dart (flutter/engine#28208)
[Re-land] Add SPIR-V FragmentShader API to painting.dart

- Add a SPIR-V FragmentShader interface in painting.dart
- Create end to end pixel tests for ops supported by the SPIR-V to SkSL transpiler
- The end to end tests also test the c++ fragment shader implementation

Co-authored-by: Christopher Crawford <chriscraws@gmail.com>
2021-08-20 11:24:14 -04:00
Zachary Anderson
e3f282c563 Revert "Add SPIR-V FragmentShader API to painting.dart (#26996)" (flutter/engine#28202)
This reverts commit 1b518619357cc1666a9fca183c9766d1ece16d0f.
2021-08-19 12:38:10 -07:00
Emmanuel Garcia
1a9e4c4ff3 Bump Android version and add more info to create_sdk_cipd_package.sh (flutter/engine#27413) 2021-08-18 18:22:02 -07:00
Anthony
1b51861935 Add SPIR-V FragmentShader API to painting.dart (flutter/engine#26996)
Add SPIR-V FragmentShader API to painting.dart
2021-08-18 12:58:25 -04:00
Emmanuel Garcia
82bffc3762 Use Android linter from cmdline-tools (flutter/engine#28153) 2021-08-17 22:12:01 -07:00
Jason Simmons
893b684c1e Declare flutter_gdb as a Python 2 script (flutter/engine#28138)
The script has not been ported to Python 3.  The environment required by
Python 3 (e.g. PYTHONHOME) may conflict with the environment expected by
the Python 2 runtime linked into the version of GDB launched by the script.
2021-08-17 20:26:12 -07:00
Zachary Anderson
1ce494259f Revert "Add bundletool to DEPS and remove outdated header comment (#28040)" (flutter/engine#28128)
This reverts commit b7a7fbefbd1e588171afbf1934f58a141eacf726.
2021-08-17 08:22:05 -07:00
Gary Qian
b7a7fbefbd Add bundletool to DEPS and remove outdated header comment (flutter/engine#28040) 2021-08-16 21:06:20 -07:00
Rich Kadel
f88ab69db4 Remove unused python_binary build artifacts (flutter/engine#28111) 2021-08-16 12:52:02 -07:00
Kaushik Iska
1e9b7aed56 Build dart:zircon and dart:zircon_ffi (flutter/engine#28071) 2021-08-16 11:17:02 -07:00
Zachary Anderson
a5d5168f0e Revert "Enable Dart compressed pointers for 64-bit mobile targets (#27975)" (flutter/engine#28091)
This reverts commit 854738a760802bba87c39adca7d5e0112deb3b3f.
2021-08-13 21:29:53 -07:00
Yegor
f83ae4a6e3 [web] add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script (flutter/engine#28056)
add CanvasKit to CIPD; make it a DEPS dependency; add a manual roller script
2021-08-13 13:25:21 -07:00
Rich Kadel
51a5b01bad GN build rules for tests using Fuchsia SDK Dart libraries and bindings (flutter/engine#27996) 2021-08-13 08:52:01 -07:00
Siva
854738a760 Enable Dart compressed pointers for 64-bit mobile targets (flutter/engine#27975)
* Enable Dart compressed pointers for 64-bit mobile targets

* Fix.

* Address code review comments.
2021-08-12 15:54:01 -07:00
gaaclarke
2c29768595 added python version note to the luci script (flutter/engine#27929) 2021-08-12 15:17:02 -07:00
David Worsham
fb64905b15 Revert '[fuchsia] Make dart_runner work with cfv2' (flutter/engine#28036) 2021-08-12 09:22:22 -07:00
Emmanuel Garcia
604089b0fd Provide Open JDK 11 (flutter/engine#27942) 2021-08-11 12:34:11 -07:00
Emmanuel Garcia
46f44e268c Explicitly provide the encoding (flutter/engine#27851) 2021-08-02 14:41:45 -07:00
Chris Bracken
8803824c64 Migrate all Python hashbangs to Python 3 (flutter/engine#27838)
Migrates all `#!/usr/bin/env python` hashbang lines to use python3.

Also updates the licence tool to treat python3 scripts on par with
python 2 scripts.

Issue: https://github.com/flutter/flutter/issues/83043
2021-07-31 11:09:12 -07:00
Chris Bracken
61a2cbcda4 Migrate Python script invocations to Python 3 (flutter/engine#27832)
Rolls buildroot to 300678066c63df763a632943fac3eed0512684b3.
2021-07-30 16:26:14 -07:00
Zachary Anderson
5c4431a610 Use a pool for dart actions to avoid OOMs (flutter/engine#27781)
* Use a pool for dart actions to avoid OOMs

* Add Windows support
2021-07-29 23:43:49 -07:00
Dan Field
298ab24bf5 Reland use a pbuffer surface when in the background (flutter/engine#27629)
* Reland "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (#27607)"

This reverts commit 78663924741a29aeca10648015e39db6fbd28be4.

* Do not let gradle download SDK deps
2021-07-21 15:07:35 -07:00
Gary Qian
5417eef989 Revert "Enable Dart compressed pointers for 64-bit mobile targets" (flutter/engine#27615) 2021-07-21 00:22:29 -07:00
Dan Field
7866392474 Revert "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (flutter/engine#27607)
This reverts commit 9520cdc6c45bc45f8e944618a0ff641fd5f5429a.
2021-07-20 16:40:55 -07:00
Dan Field
9520cdc6c4 Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (flutter/engine#27141) 2021-07-20 16:05:54 -07:00
Liam Appelbe
6657092b22 Enable Dart compressed pointers for 64-bit mobile targets (flutter/engine#27373) 2021-07-20 15:23:49 -07:00
David Worsham
934eced2e4 fuchsia: Add hermetic SessionConnection tests; rename (flutter/engine#27327) 2021-07-20 13:52:09 -07:00
Jason Simmons
ab998239a4 Extract the prebuilt Dart SDK to a temp directory and then move it after the extraction completes (flutter/engine#27569)
* Extract the prebuilt Dart SDK to a temp directory and then move it after the extraction completes

This ensures that the GN script will not see an invalid Dart SDK at the
expected path if the extract fails.

* Add os_arch to temp extraction path

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2021-07-20 08:35:52 -07:00
Zachary Anderson
8aa14be6b5 Warn, but don't fail if prebuilt Dart SDK could not be fetched (flutter/engine#27546) 2021-07-19 09:50:37 -07:00
Zachary Anderson
d566a7bed6 Re-route githook for Windows (flutter/engine#27532) 2021-07-18 21:17:38 -07:00
Darren Chan
cbcbbf7102 Migrate non-scenic-based fuchsia tests to cfv2. (flutter/engine#27241)
This PR also wraps up the soft transition for #27417.

Because some unit tests depend on the real Scenic which isn't hermetic, `flutter_runner_tests` and `flutter_runner_scenic_tests` aren't currently compatible with cfv2.
This will change once a FakeScenic is created (https://fxbug.dev/79873).

See https://fxbug.dev/79691.
2021-07-16 23:41:41 -04:00
Zachary Anderson
6065efeb6b Verbose output on CI from download_dart_sdk.py (flutter/engine#27484) 2021-07-16 10:16:42 -07:00
Rich Kadel
351c6c3dd5 Adds python3_action GN target (flutter/engine#27211)
Ninja runs `action` scripts using the default python interpretter, and
most flutter build scripts that use python currently require python2. In
order to support python3 scripts as well, the `python3_action` invokes a
wrapper python2-based script via GN `action` target, and the wrapper
invokes the python3 interpretter with the given script.

This new target is required to support flutter/engine#26880, but is
broken out to a separate PR (by request) to support other more immediate
use cases.
2021-07-16 10:03:25 -07:00
Kaushik Iska
45cf4e9ab1 [fuchsia] Use FFI to get System clockMonotonic (flutter/engine#27353) 2021-07-14 11:01:58 -07:00
Devon Carew
cda2feb215 restore the directives_ordering lint (flutter/engine#27346) 2021-07-13 08:26:02 -07:00
Devon Carew
5606c9682f update the analysis options for tools/licenses (flutter/engine#27339)
update the analysis options for tools/licenses
2021-07-12 16:34:42 -07:00