Path: blob/21.2-virgl/include/EGL/eglextchromium.h
4558 views
// Copyright (c) 2013 The Chromium Authors. All rights reserved.1//2// Redistribution and use in source and binary forms, with or without3// modification, are permitted provided that the following conditions are4// met:5//6// * Redistributions of source code must retain the above copyright7// notice, this list of conditions and the following disclaimer.8// * Redistributions in binary form must reproduce the above9// copyright notice, this list of conditions and the following disclaimer10// in the documentation and/or other materials provided with the11// distribution.12// * Neither the name of Google Inc. nor the names of its13// contributors may be used to endorse or promote products derived from14// this software without specific prior written permission.15//16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT20// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.2728// This file contains Chromium-specific EGL extensions declarations.2930#ifndef GPU_EGL_EGLEXTCHROMIUM_H_31#define GPU_EGL_EGLEXTCHROMIUM_H_3233#ifdef __cplusplus34extern "C" {35#endif3637#include <EGL/eglplatform.h>3839/* EGLSyncControlCHROMIUM requires 64-bit uint support */40#if KHRONOS_SUPPORT_INT6441#ifndef EGL_CHROMIUM_sync_control42#define EGL_CHROMIUM_sync_control 143typedef khronos_uint64_t EGLuint64CHROMIUM;44#ifdef EGL_EGLEXT_PROTOTYPES45EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(46EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,47EGLuint64CHROMIUM *msc, EGLuint64CHROMIUM *sbc);48#endif /* EGL_EGLEXT_PROTOTYPES */49typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCVALUESCHROMIUMPROC)50(EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,51EGLuint64CHROMIUM *msc, EGLuint64CHROMIUM *sbc);52#endif53#endif5455#ifndef EGL_EXT_image_flush_external56#define EGL_EXT_image_flush_external 157#define EGL_IMAGE_EXTERNAL_FLUSH_EXT 0x32A258typedef EGLBoolean (EGLAPIENTRYP PFNEGLIMAGEFLUSHEXTERNALEXTPROC) (EGLDisplay dpy, EGLImageKHR image, const EGLAttrib *attrib_list);59typedef EGLBoolean (EGLAPIENTRYP PFNEGLIMAGEINVALIDATEEXTERNALEXTPROC) (EGLDisplay dpy, EGLImageKHR image, const EGLAttrib *attrib_list);60#ifdef EGL_EGLEXT_PROTOTYPES61EGLAPI EGLBoolean EGLAPIENTRY eglImageFlushExternalEXT (EGLDisplay dpy, EGLImageKHR image, const EGLAttrib *attrib_list);62EGLAPI EGLBoolean EGLAPIENTRY eglImageInvalidateExternalEXT (EGLDisplay dpy, EGLImageKHR image, const EGLAttrib *attrib_list);63#endif64#endif /* EGL_EXT_image_flush_external */6566#ifdef __cplusplus67}68#endif6970#endif // GPU_EGL_EGLEXTCHROMIUM_H_717273