Lines Matching refs:screen
86 _eglInitScreen(_EGLScreen *screen, _EGLDisplay *dpy, EGLint num_modes) in _eglInitScreen() argument
88 memset(screen, 0, sizeof(_EGLScreen)); in _eglInitScreen()
90 screen->Display = dpy; in _eglInitScreen()
91 screen->NumModes = num_modes; in _eglInitScreen()
92 screen->StepX = 1; in _eglInitScreen()
93 screen->StepY = 1; in _eglInitScreen()
97 screen->Modes = (_EGLMode *) calloc(num_modes, sizeof(*screen->Modes)); in _eglInitScreen()
98 screen->NumModes = (screen->Modes) ? num_modes : 0; in _eglInitScreen()
107 _eglLinkScreen(_EGLScreen *screen) in _eglLinkScreen() argument
112 assert(screen && screen->Display); in _eglLinkScreen()
113 display = screen->Display; in _eglLinkScreen()
121 screen->Handle = _eglAllocScreenHandle(); in _eglLinkScreen()
122 for (i = 0; i < screen->NumModes; i++) in _eglLinkScreen()
123 screen->Modes[i].Handle = screen->Handle + i; in _eglLinkScreen()
125 _eglAppendArray(display->Screens, (void *) screen); in _eglLinkScreen()
127 return screen->Handle; in _eglLinkScreen()
136 _eglLookupScreen(EGLScreenMESA screen, _EGLDisplay *display) in _eglLookupScreen() argument
145 if (scr->Handle == screen) { in _eglLookupScreen()