Roll Skia from f84dc9303045 to 2691cd7b4110 (40 revisions) (#38151)

https://skia.googlesource.com/skia.git/+log/f84dc9303045..2691cd7b4110

2022-12-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 15ae19c00c77 to c9e7fd9c25c9 (11 revisions)
2022-12-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from 6eba5e540b1f to 627645cf7ac9 (5 revisions)
2022-12-09 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 5e89361766f7 to 89b9b4762b94 (8 revisions)
2022-12-09 kyslov@google.com JpegR decoder. Initial commit.
2022-12-08 cmumford@google.com [infra] make addr2line silent when checking existence
2022-12-08 cmumford@google.com [infra] Move Test-Debian10-*-DLL1 to new swarming job.
2022-12-08 johnstiles@google.com Add merge-loop-mask opcode.
2022-12-08 johnstiles@google.com Allow pushing and popping the loop- and return-masks.
2022-12-08 robertphillips@google.com [graphite] Fill in PrecompileRTEffect's addToKey method
2022-12-08 johnstiles@google.com Split combine_condition_mask op into two separate ops.
2022-12-08 johnstiles@google.com Fix nested ternary support.
2022-12-08 armansito@google.com [ganesh][dawn] Fix stack-use-after-scope bug in GrDawnOpsRenderPass
2022-12-08 herb@google.com Add serize slug, and remote slug configs to the Slug bot
2022-12-08 herb@google.com use SkStrikeServer to convert glyph run lists to slugs
2022-12-08 johnstiles@google.com Add RP codegen support for no-op cast constructors.
2022-12-08 nicolettep@google.com [graphite] Add temporary getter to silence compiler unused member warning
2022-12-08 jvanverth@google.com Add GrContextOption to disable TessellationPathRenderer.
2022-12-08 johnstiles@google.com Add a mechanism to RP codegen for detecting unsupported ops.
2022-12-08 nicolettep@google.com [graphite] Add VulkanBuffer class
2022-12-08 fmalita@chromium.org [skottie] Clamp text size
2022-12-08 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 7935ee7ccbc0 to 5e89361766f7 (1 revision)
2022-12-08 kjlubick@google.com Manual Dawn roll
2022-12-08 bsalomon@google.com Add simple mirror tiling GM
2022-12-08 johnstiles@google.com Add support for branching to the RP builder.
2022-12-08 johnstiles@google.com Add RP codegen support for the ?: ternary operator.
2022-12-08 johnstiles@google.com Add RP Builder support for more than one temp stack.
2022-12-08 bsalomon@google.com Remove vestigial SK_LEGACY_NEAREST_SAMPLE_MATRIX_TWEAK guard
2022-12-08 skia-autoroll@skia-public.iam.gserviceaccount.com Roll SK Tool from 3d52a1550a3a to cdaa10d88290
2022-12-08 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from dad69cc70e02 to 15ae19c00c77 (15 revisions)
2022-12-08 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from 5e031f59c8f1 to 6eba5e540b1f (12 revisions)
2022-12-08 skia-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 255b9d293af6 to 7935ee7ccbc0 (4 revisions)
2022-12-08 jcgregorio@google.com Fix Linux RTX 3060 GPU dimension.
2022-12-07 robertphillips@google.com [graphite] Fill in the boiler plate PrecompileBase-derived addToKey methods
2022-12-07 robertphillips@google.com [graphite] Add makeWithLocalMatrix and makeWithColorFilter to PrecompileShader
2022-12-07 robertphillips@google.com [graphite] Add processCombination function to combination generation system (take 2)
2022-12-07 robertphillips@google.com Revert "[graphite] Add processCombination function to combination generation system"
2022-12-07 lehoangquyen@chromium.org [graphite] Implement DawnCommandBuffers' render & blit commands.
2022-12-07 robertphillips@google.com [graphite] Add processCombination function to combination generation system
2022-12-07 jcgregorio@google.com Revert "Fix Linux RTX 3060 GPU dimension."
2022-12-07 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia Infra from b55f242675c0 to 5e031f59c8f1 (9 revisions)

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 bdero@google.com,djsollen@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

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/main/autoroll/README.md
https://dart.googlesource.com/external/github.com/flutter/engine/+/366f8663b22805a2b10f13e9f7b8f36b5b04f145
2 files changed
tree: 4424391fa2ef3c908cbdb24c65e76de800313f8d
  1. ci/
  2. tools/
  3. .gitignore
  4. commits.json
  5. DEPS
  6. README.md
README.md

Monorepo

A gclient solution for checking out Dart and Flutter source trees

Monorepo is:

  • Optimized for Tip-of-Tree testing: The Monorepo DEPS used to check out Dart and Flutter dependencies comes from the Flutter engine DEPS with updated dependencies from Dart.

Checking out Monorepo

With depot_tools installed and on your path, create a directory for your monorepo checkout and run these commands to create a gclient solution in that directory:

mkdir monorepo
cd monorepo
gclient config --unmanaged https://dart.googlesource.com/monorepo
gclient sync -D

This gives you a checkout in the monorepo directory that contains:

monorepo/
  DEPS - the DEPS used for this gclient checkout
  commits.json - the pinned commits for Dart, flutter/engine,
                 and flutter/flutter
  tools/ - scripts used to create monorepo DEPS
engine/src/ - the flutter/buildroot repo
    flutter/ - the flutter/engine repo
    out/ - the build directory, where Flutter engine builds are created
    third_party/ - Flutter dependencies checked out by DEPS
      dart/ - the Dart SDK checkout.
        third_party - Dart dependencies, also used by Flutter
flutter/ - the flutter/flutter repo

Building Flutter engine

Flutter's instructions for building the engine are at Compiling the engine

They can be followed closely, with a few changes:

  • Googlers working on Dart do not need to switch to Fuchsia's Goma RBE, except for Windows. The GOMA_DIR enviroment variable can just point to the .cipd_bin directory in a depot_tools installation, and just goma_ctl ensure_start is sufficient.
  • The --no-prebuilt-dart-sdk option has to be added to every gn command, so that the build is set up to build and use a local Dart SDK.
  • The --full-dart-sdk option must be added to gn for the host build target if you will be building web or desktop apps.

Example build commands that work on linux:

MONOREPO_PATH=$PWD
if [[ ! $PATH =~ (^|:)$MONOREPO_PATH/flutter/bin(:|$) ]]; then
  PATH=$MONOREPO_PATH/flutter/bin:$PATH
fi

export GOMA_DIR=$(dirname $(command -v gclient))/.cipd_bin
goma_ctl ensure_start

pushd engine/src
flutter/tools/gn --goma --no-prebuilt-dart-sdk --unoptimized --full-dart-sdk
autoninja -C out/host_debug_unopt
popd

Building Flutter apps

The Flutter commands used to build and run apps will use the locally built Flutter engine and Dart SDK, instead of the one downloaded by the Flutter tool, if the --local-engine option is provided.

For example, to build and run the Flutter spinning square sample on the web platform,

MONOREPO_PATH=$PWD
cd flutter/examples/layers
flutter --local-engine=host_debug_unopt \
  -d chrome run widgets/spinning_square.dart
cd $MONOREPO_PATH

To build for desktop, specify the desktop platform device in flutter run as -d macos or -d linux or -d windows. You may also need to run the command

flutter create --platforms=windows,macos,linux

on existing apps, such as sample apps. New apps created with flutter create already include these support files. Details of desktop support are at Desktop Support for Flutter

Testing

Tests in the Flutter source tree can be run with the flutter test command, run in the directory of a package containing tests. For example:

MONOREPO_PATH=$PWD
cd flutter/packages/flutter
flutter test --local-engine=host_debug_unopt
cd $MONOREPO_PATH

Troubleshooting

Please file an issue or email the dart-engprod team with any problems with or questions about using monorepo.

We will update this documentation to address them.

  • flutter commands may download the engine and Dart SDK files for the configured channel, even though they will be using the local engine and its SDK.

Windows

  • On Windows, gclient sync needs to be run in an administrator session, because some installed dependencies create symlinks.