Chromium overlay prioritizer
- external
暴露 overlay 委托优先级排序提示功能的全局接口,用于为 wl_surface 对象实例化接口扩展。此扩展接口将允许对 surface 进行委托 overlay 优先级排序。
destroy()
通知服务器客户端将不再使用此协议对象。这不会影响任何其他对象,包括 prioritizer 对象。
get_overlay_prioritized_surface(id: new_id<overlay_prioritized_surface>, surface: object<wl_surface>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<overlay_prioritized_surface> | the new prioritized interface id |
| surface | object<wl_surface> | the surface |
为给定的 wl_surface 实例化接口扩展,以添加 overlay 优先级排序提示支持。如果给定的 wl_surface 已经关联了 prioritization 对象,将产生 delegate_exists 协议错误。
error { overlay_hinted_surface_exists }
参数 | 值 | 描述 |
|---|---|---|
| overlay_hinted_surface_exists | 0 | 该 surface 已经关联了 prioritizer 对象 |
wl_surface 对象的附加接口,允许客户端为 surface 的 overlay 优先级排序指定提示。
destroy()
关联的 wl_surface 的 overlay 优先级排序将被移除。 更改在下次 wl_surface.commit 时生效。
error { bad_value, no_surface }
参数 | 值 | 描述 |
|---|---|---|
| bad_value | 0 | 半径或大小中的负值 |
| no_surface | 1 | wl_surface 已被销毁 |
overlay_priority { none, regular, preferred_low_latency_canvas, required_hardware_protection }
参数 | 值 | 描述 |
|---|---|---|
| none | 0 | 此 surface 不需要 overlay 提升 |
| regular | 1 | surface 可被视为提升候选 |
| preferred_low_latency_canvas | 2 | 该 surface 是低延迟画布,提升为 overlay 效果更好 |
| required_hardware_protection | 3 | 该 surface 包含受保护内容,需要提升为 overlay |
合成器支持
Copyright
Copyright 2021 The Chromium Authors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.