Path: blob/21.2-virgl/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.h
4573 views
/**********************************************************1* Copyright 2010 VMware, Inc. All rights reserved.2*3* Permission is hereby granted, free of charge, to any person4* obtaining a copy of this software and associated documentation5* files (the "Software"), to deal in the Software without6* restriction, including without limitation the rights to use, copy,7* modify, merge, publish, distribute, sublicense, and/or sell copies8* of the Software, and to permit persons to whom the Software is9* furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice shall be12* included in all copies or substantial portions of the Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,15* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND17* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS18* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN19* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN20* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE21* SOFTWARE.22*23**********************************************************/242526#ifndef WRAPPER_SW_WINSYS27#define WRAPPER_SW_WINSYS2829struct sw_winsys;30struct pipe_screen;3132/*33* Wrap a pipe screen.34*/35struct sw_winsys *wrapper_sw_winsys_wrap_pipe_screen(struct pipe_screen *screen);3637/*38* Destroy the sw_winsys and return the wrapped pipe_screen.39* Not destroying it as sw_winsys::destroy does.40*/41struct pipe_screen *wrapper_sw_winsys_dewrap_pipe_screen(struct sw_winsys *sw_winsys);4243#endif444546