commit | 9fade70a9b55ade132ed34c563d44b5e3f9cfe2c | [log] [tgz] |
---|---|---|
author | Hang Nguyen <hnt@google.com> | Thu Apr 18 18:54:45 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 18 18:54:45 2024 |
tree | 08c397472a3250a83dc9d927a01fd0d222b5b9c3 | |
parent | 01962928806517124da9b48249bc15414de8553b [diff] |
vaapi: Defer VaapiWrapper creation in VaapiDmaBufVideoFrameMapper Prior to this CL, the VaapiWrapper instance owned by VaapiDmaBufVideoFrameMapper and its methods are called without any static and runtime sequence checker. Specifically, VaapiWrapper instance was created on the constructor of VaapiDmaBufVideoFrameMapper while was used in a different method MapFrame(). This CL defers the creation of VaapiWrapper until the first call of MapFrame() and adds sequence checkers where needed. In addition, the defer requires making changes to the base virtual method MapFrame() declaration in VideoFrameMapper, hence its child classes. Bug: b/333345703 Test: video_decode_accelerator_tests Change-Id: Id126a7dc555d14e32bafb83e2a082c46644c6885 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5463775 Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Hang Nguyen <hnt@chromium.org> Cr-Commit-Position: refs/heads/main@{#1289477}
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.