[rust png] Set default to `enable_rust_png = true` in GN args.
This CL starts to actually build Rust PNG into the Chrome binary. It
also means that Rust-PNG-aware test-suites (e.g. `PNGCodecTest` in
`gfx_unittests` and `*PNGTests` in `blink_platform_unittests`) cover the
Rust PNG not only on Rust FYI bots, but also on the regular Chromium
CI/CQ. This CL is justified/motivated by the desire to prepare for
starting field trials - see the recent status update slidedeck [1] for
more details.
The binary size increase is discussed in the "Binary size" section of
the go/rusty-png-in-chromium-and-skia design doc [2]. Note that some of
the increase is expected to be temporary - it will be redeemed once the
new codec ships and the legacy `libpng` codec is removed.
[1] https://docs.google.com/presentation/d/1AXpg62xLaSXLZLTShSAMVZBhBnvDXUUaK8Tu4cy47VQ/edit?usp=sharing
[2] https://docs.google.com/document/d/1glx5ue5JDlCld5WzWgTOGK3wsMErQFnkY5N5Dsbi91Y/edit?usp=sharing#heading=h.m3sqlp5evinx
diff --git a/BUILD.gn b/BUILD.gn
index ebd779e..4d5c300 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -898,7 +898,7 @@
"//mojo/public/rust:mojo_rust_unittests",
]
}
- if (enable_rust_png) {
+ if (enable_rust_png && !is_cronet_build) {
deps += [ "//skia" ]
}
}
diff --git a/skia/skia.gni b/skia/skia.gni
index 3318337..e9694de 100644
--- a/skia/skia.gni
+++ b/skia/skia.gni
@@ -4,8 +4,10 @@
declare_args() {
# WIP attempt to replace `libpng` with Rust `png` crate.
+ # See https://crbug.com/40278281 for more details.
#
- # TODO(https://crbug.com/360375227): Default to true when ready to start A/B
- # experiments.
- enable_rust_png = false
+ # TODO(https://crbug.com/360375227): Either: 1) remove (if/when
+ # shipped) or 2) change back to `false` before branchpoint (if not
+ # ready for Beta/Stable yet).
+ enable_rust_png = true
}
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
/cc binar...@chromium.org as an FYI (to transparently give a heads-up about the expected binary size increase)
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@agrieve, can you PTAL at the `//BUILD.gn` changes (as one of `//build/OWNERS
` + as a binary size watcher)?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
6 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[rust png] Set default to `enable_rust_png = true` in GN args.
This CL starts to actually build Rust PNG into the Chrome binary. It
also means that Rust-PNG-aware test-suites (e.g. `PNGCodecTest` in
`gfx_unittests` and `*PNGTests` in `blink_platform_unittests`) cover the
Rust PNG not only on Rust FYI bots, but also on the regular Chromium
CI/CQ. This CL is justified/motivated by the desire to prepare for
starting field trials - see the recent status update slidedeck [1] for
more details.
The binary size increase is discussed in the "Binary size" section of
the go/rusty-png-in-chromium-and-skia design doc [2]. Note that some of
the increase is expected to be temporary - it will be redeemed once the
new codec ships and the legacy `libpng` codec is removed.
[1] https://docs.google.com/presentation/d/1AXpg62xLaSXLZLTShSAMVZBhBnvDXUUaK8Tu4cy47VQ/edit?usp=sharing
[2] https://docs.google.com/document/d/1glx5ue5JDlCld5WzWgTOGK3wsMErQFnkY5N5Dsbi91Y/edit?usp=sharing#heading=h.m3sqlp5evinx
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |