| commit | 5001c8889c1e94617689f10a68bd41efe53ef73f | [log] [tgz] |
|---|---|---|
| author | Paz Zcharya <pazz@google.com> | Mon Jan 13 20:57:44 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 13 20:57:44 2025 |
| tree | caf095bf26868ca313920055b7f666874cc0826d | |
| parent | 02aaab3bc7df49350a65f566d34a72b3aa40d2fb [diff] |
ozone: Clean DrmDisplay::SetColorspaceProperty If the function DrmWrapper::GetProperty returns an element with prop_id equals to 0, then the property does not exist. Logicially, it makes sense to have it right next to ::GetProperty, and not next to ::SetProperty. Move the return value check accordingly. Also, improve readabiltiy of the function by minimizing nested function calls. Bug: b:326980151 , b:339498874 , b:378982496 , b:386722343 , b:388332124 Change-Id: Ica6e6ee1f574a6e9a0830b94936027de12cddb6c Signed-off-by: Paz Zcharya <pazz@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6170634 Reviewed-by: Sasha McIntosh <sashamcintosh@chromium.org> Reviewed-by: Gil Dekel <gildekel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1405700}
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.