commit | 46f6bdf9e438fed5874e2959cc82e1810642e7b2 | [log] [tgz] |
---|---|---|
author | Christopher Cameron <ccameron@chromium.org> | Mon Oct 05 21:24:18 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Oct 05 21:24:18 2020 |
tree | 8d5b4697c46bf7dbfad68e4c3fd27f49e299f667 | |
parent | 850b486664372890668e0d117e0bd361e3d1f080 [diff] |
Add media::GetFormatDescriptionColorSpace Restrict this to macOS 10.11 and above. In theory the function should not compile when targeting macOS 10.10. In practice it does, because the CoreMedia constants are preprocessor defined to their CoreVideo equivalents (which are defined). This function is nearly identical to media::GetImageBufferColorSpace, but instead operates on a CMFormatDescriptionRef. Add DCHECKs that the behavior of the two functions be the same, that is, the kCVImageBuffer-prefixed and kCMFormatDescription-prefixed constants be equal. Use base::mac::CFCast instead of reinterpret_casts. The next patch in this sequence will move these two functions over to media/base/mac, because it will be accessed in capture. Bug: 959962 Change-Id: Iea9d8d357dec72ddc928b7e1fd3a631c131ade74 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449934 Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#813924}
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.
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.