summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglimage.h
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-02 11:38:45 +0000
committerEric Engestrom <[email protected]>2019-02-06 11:53:24 +0000
commit54fa5eceae237598d6fb329ec7cbe1d3a85e7d39 (patch)
tree870badc295851feaba8cf7e43318ed9542a7c0a7 /src/egl/main/eglimage.h
parenta81d5587d6ad20506c13199a1f4573fdf6350709 (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/eglimage.h')
-rw-r--r--src/egl/main/eglimage.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h
index 87517921320..6d2e7ba8a2d 100644
--- a/src/egl/main/eglimage.h
+++ b/src/egl/main/eglimage.h
@@ -92,14 +92,14 @@ struct _egl_image
EGLBoolean
-_eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy,
+_eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *disp,
const EGLint *attrib_list);
static inline void
-_eglInitImage(_EGLImage *img, _EGLDisplay *dpy)
+_eglInitImage(_EGLImage *img, _EGLDisplay *disp)
{
- _eglInitResource(&img->Resource, sizeof(*img), dpy);
+ _eglInitResource(&img->Resource, sizeof(*img), disp);
}
@@ -153,10 +153,10 @@ _eglUnlinkImage(_EGLImage *img)
* Return NULL if the handle has no corresponding linked image.
*/
static inline _EGLImage *
-_eglLookupImage(EGLImage image, _EGLDisplay *dpy)
+_eglLookupImage(EGLImage image, _EGLDisplay *disp)
{
_EGLImage *img = (_EGLImage *) image;
- if (!dpy || !_eglCheckResource((void *) img, _EGL_RESOURCE_IMAGE, dpy))
+ if (!disp || !_eglCheckResource((void *) img, _EGL_RESOURCE_IMAGE, disp))
img = NULL;
return img;
}