commit | 0d7fb729e2961601214ce0eb6fb46c7c646d3b3d | [log] [tgz] |
---|---|---|
author | Michael Tang <tangm@microsoft.com> | Mon May 05 23:03:16 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon May 05 23:03:16 2025 |
tree | 93767349ec0077f69a574f14aacfc7c8fe9bec31 | |
parent | 1ee95dec7fdca0a2833bbe0ba5d662a64b3dde3e [diff] |
viz: win: Use OverlayLayerId to track lifetime of SwapChainPresenter Previously we used a list of SwapChainPresenter and implicitly mapped its order to the order in the overlay list. Now, we use the video layer ID to own this lifetime. Since the layer ID is now tied to the frame sink ID, swap chains will remain reused as long as a video element and source is reused. This has been manually verified to preserve the swap chain in stream buffering cases with HLS. It also collects unused video swap chains in a frame to be reused by new videos in the same frame. This optimizes the case when a page reuses a video element but switches out the src with a new video that has the same format and size (a new source element creates a new layer ID). Bug: 324460866 Change-Id: Icee50f0b03d58ecf0cc5a1a9e8bd6d0fb8a7991a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6300236 Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Commit-Queue: Michael Tang <tangm@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1455989}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.