Path: blob/main/gpu_display/protocol/virtio-gpu-metadata-v1.xml
5394 views
<?xml version="1.0" encoding="UTF-8"?>1<protocol name="wp_virtio_gpu_metadata_v1">2<copyright>3Copyright 2021 The Chromium Authors.4Permission is hereby granted, free of charge, to any person obtaining a5copy of this software and associated documentation files (the "Software"),6to deal in the Software without restriction, including without limitation7the rights to use, copy, modify, merge, publish, distribute, sublicense,8and/or sell copies of the Software, and to permit persons to whom the9Software is furnished to do so, subject to the following conditions:10The above copyright notice and this permission notice (including the next11paragraph) shall be included in all copies or substantial portions of the12Software.13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING18FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER19DEALINGS IN THE SOFTWARE.20</copyright>2122<interface name="wp_virtio_gpu_metadata_v1" version="1">23<description summary="attach virtio gpu metadata">24The global interface which allows attaching virtio-gpu metadata25to wl_surface objects.26</description>2728<enum name="error">29<entry name="surface_metadata_exists" value="0"30summary="the surface already has a metadata object associated"/>31</enum>3233<request name="get_surface_metadata">34<description summary="extend surface interface for attaching metadata">35Instantiate an virtio_gpu_surface_metadata_v1 extension for the given36wl_surface to attach virtio gpu metadata. If the given wl_surface37already has a surface metadata object associated, the38surface_metadata_exists protocol error is raised.39</description>40<arg name="id" type="new_id" interface="wp_virtio_gpu_surface_metadata_v1"41summary="the new metadata interface id"/>42<arg name="surface" type="object" interface="wl_surface"43summary="the surface"/>44</request>45</interface>4647<interface name="wp_virtio_gpu_surface_metadata_v1" version="1">48<description summary="interface to attach virtio gpu metadata to a wl_surface">49An additional interface to a wl_surface object, which allows the50client to attach additional metadata to the surface.5152If the wl_surface associated with the virtio_gpu_surface_metadata_v1 is53destroyed, all virtio_gpu_surface_metadata_v1 requests except 'destroy'54raise the protocol error no_surface.5556If the virtio_gpu_surface_metadata_v1 object is destroyed, the metadata57state is removed from the wl_surface. The change will be applied58on the next wl_surface.commit.59</description>6061<enum name="error">62<entry name="no_surface" value="0"63summary="the wl_surface was destroyed"/>64</enum>6566<request name="set_scanout_id">67<description summary="set the virtio gpu scanout id of the surface">68Set the virtio gpu scanout id of the associated wl_surface.69</description>70<arg name="scanout_id" type="uint" summary="virtio gpu scanout id"/>71</request>72</interface>7374</protocol>757677