diff options
author | Eric Engestrom <[email protected]> | 2019-02-02 11:38:45 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-06 11:53:24 +0000 |
commit | 54fa5eceae237598d6fb329ec7cbe1d3a85e7d39 (patch) | |
tree | 870badc295851feaba8cf7e43318ed9542a7c0a7 /src/egl/main/eglsync.h | |
parent | a81d5587d6ad20506c13199a1f4573fdf6350709 (diff) |
egl: use coherent variable names
`EGLDisplay` variables (the opaque Khronos type) have mostly been
consistently called `dpy`, as this is the name used in the Khronos
specs.
However, `_EGLDisplay` variables (our internal struct) have been
randomly called `dpy` when there was no local variable clash with
`EGLDisplay`s, and `disp` otherwise.
Let's be consistent and use `dpy` for the Khronos type, and `disp`
for our struct.
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/egl/main/eglsync.h')
-rw-r--r-- | src/egl/main/eglsync.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/main/eglsync.h b/src/egl/main/eglsync.h index 5ac76f3ac3d..fdb122beb26 100644 --- a/src/egl/main/eglsync.h +++ b/src/egl/main/eglsync.h @@ -53,12 +53,12 @@ struct _egl_sync extern EGLBoolean -_eglInitSync(_EGLSync *sync, _EGLDisplay *dpy, EGLenum type, +_eglInitSync(_EGLSync *sync, _EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list); extern EGLBoolean -_eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync, +_eglGetSyncAttrib(_EGLDriver *drv, _EGLDisplay *disp, _EGLSync *sync, EGLint attribute, EGLAttrib *value); @@ -111,10 +111,10 @@ _eglUnlinkSync(_EGLSync *sync) * Return NULL if the handle has no corresponding linked sync. */ static inline _EGLSync * -_eglLookupSync(EGLSync handle, _EGLDisplay *dpy) +_eglLookupSync(EGLSync handle, _EGLDisplay *disp) { _EGLSync *sync = (_EGLSync *) handle; - if (!dpy || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, dpy)) + if (!disp || !_eglCheckResource((void *) sync, _EGL_RESOURCE_SYNC, disp)) sync = NULL; return sync; } |