Bug 1922333 - Land view transition plumbing for live capture behind a default-off pref. r=view-transitions-reviewers,boris

It is mostly working, but there are some tests that hit crashes and
asserts that we should sort out. For now, land it default-off.

This does implement other bits that are on by default tho, like creating
image frames for ::view-transition-new() pseudo-elements and so on. I
think that is fine (it's just that for now they are all transparent).

Differential Revision: https://phabricator.services.mozilla.com/D239382
This commit is contained in:
Emilio Cobos Álvarez
2025-03-05 11:18:18 +00:00
parent d58176b429
commit 0ff8015e82
18 changed files with 388 additions and 103 deletions

View File

@@ -113,9 +113,10 @@ template struct mozilla::wr::Box2D<int, mozilla::wr::LayoutPixel>;
namespace mozilla {
namespace wr {
// Cast a blob image key into a regular image for use in
// a display item.
// Cast a blob image key into a regular image for use in a display item.
inline ImageKey AsImageKey(BlobImageKey aKey) { return aKey._0; }
// Cast a snapshot image key into a regular image for use in a display item.
inline ImageKey AsImageKey(SnapshotImageKey aKey) { return aKey._0; }
} // namespace wr
} // namespace mozilla