Lines Matching defs:dpy
56 static EGLDisplay dpy;
75 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
77 if (dpy == EGL_NO_DISPLAY) {
82 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion);
91 returnValue = EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig);
99 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
106 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs);
112 returnValue = eglMakeCurrent(dpy, surface, surface, context);
117 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
119 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
127 eglSwapBuffers(dpy, surface);
135 eglSwapBuffers(dpy, surface);