19e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com/* 29e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com * Mesa 3-D graphics library 39e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com * Version: 7.12 49e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com * 59e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com * Copyright (C) 2010-2011 LunarG Inc. 69e49fb63d355446b91d20ff78ad78b297e89a50dcaryclark@google.com * 7b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com * Permission is hereby granted, free of charge, to any person obtaining a 8b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com * copy of this software and associated documentation files (the "Software"), 9b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com * to deal in the Software without restriction, including without limitation 10b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com * the rights to use, copy, modify, merge, publish, distribute, sublicense, 11d88e0894d0156f4d427b812fec69bfba3eec7a8dcaryclark@google.com * and/or sell copies of the Software, and to permit persons to whom the 1227accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * Software is furnished to do so, subject to the following conditions: 1327accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * 1427accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * The above copyright notice and this permission notice shall be included 1527accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * in all copies or substantial portions of the Software. 1627accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * 1727accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1827accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1927accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 2027accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 2127accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2227accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2327accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * DEALINGS IN THE SOFTWARE. 2427accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com * 25a461ff0866526bc51dbd4c4f9f066a727ec21510caryclark@google.com * Authors: 26fa0588ff672564af1c235a63589573829035a60bcaryclark@google.com * Chia-I Wu <olv@lunarg.com> 27b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com */ 2824bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.com 29b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com#ifndef ANDROID_SW_WINSYS 30b45a1b46ee25e9b19800b028bb1ca925212ac7b4caryclark@google.com#define ANDROID_SW_WINSYS 311577e8f9c5bc8436cc71d3438c6d0b9f02c38338caryclark@google.com 3224bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.com#include <sys/cdefs.h> 33cef7e3fc4bc6223ab0e42ed754e2a09028479c0bcaryclark@google.com#include <hardware/gralloc.h> 344917f17bf6bd8bff7f4b03717dcb02561cf227c9caryclark@google.com 35a5764233aa6b207c4169fff7fccae567a160a0fdcaryclark@google.com__BEGIN_DECLS 3624bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.com 3724bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.comstruct sw_winsys; 3824bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.com 39cef7e3fc4bc6223ab0e42ed754e2a09028479c0bcaryclark@google.comstruct android_winsys_handle { 40b1c42bbdcff20257b30d155fe014d3e04233de45caryclark@google.com buffer_handle_t handle; 4124bec79d6f3d71ff97b50db72461a3892bd4f6b5caryclark@google.com int stride; 4227accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com}; 4327accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com 4427accef223a27fba437f5e825d99edbae20a045bcaryclark@google.comstruct sw_winsys * 4527accef223a27fba437f5e825d99edbae20a045bcaryclark@google.comandroid_create_sw_winsys(void); 4627accef223a27fba437f5e825d99edbae20a045bcaryclark@google.com 47235f56a92f6eb6accbb243e11b3c45e3798f38f2caryclark@google.com__END_DECLS 48 49#endif /* ANDROID_SW_WINSYS */ 50