diff options
author | Chia-I Wu <[email protected]> | 2010-10-23 12:52:26 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-10-23 15:26:28 +0800 |
commit | d19afc57fe49816f3f3290410e0124d326577be2 (patch) | |
tree | 8d90c500c91f8c2e703a05259c85406d4261c3ed /src/egl/main/eglsurface.h | |
parent | dc4f845c37a8446de19036e24fd397a0aa864c02 (diff) |
egl: Use reference counting to replace IsLinked or IsBound.
Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update
_eglBindContext and drivers to do reference counting.
Diffstat (limited to 'src/egl/main/eglsurface.h')
-rw-r--r-- | src/egl/main/eglsurface.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/egl/main/eglsurface.h b/src/egl/main/eglsurface.h index b833258bf69..ef01b32ede3 100644 --- a/src/egl/main/eglsurface.h +++ b/src/egl/main/eglsurface.h @@ -68,19 +68,6 @@ _eglSwapInterval(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint in /** - * Return true if there is a context bound to the surface. - * - * The binding is considered a reference to the surface. Drivers should not - * destroy a surface when it is bound. - */ -static INLINE EGLBoolean -_eglIsSurfaceBound(_EGLSurface *surf) -{ - return (surf->CurrentContext != NULL); -} - - -/** * Increment reference count for the surface. */ static INLINE _EGLSurface * @@ -151,18 +138,4 @@ _eglGetSurfaceHandle(_EGLSurface *surf) } -/** - * Return true if the surface is linked to a display. - * - * The link is considered a reference to the surface (the display is owning the - * surface). Drivers should not destroy a surface when it is linked. - */ -static INLINE EGLBoolean -_eglIsSurfaceLinked(_EGLSurface *surf) -{ - _EGLResource *res = (_EGLResource *) surf; - return (res && _eglIsResourceLinked(res)); -} - - #endif /* EGLSURFACE_INCLUDED */ |