/frameworks/native/opengl/tests/swapinterval/ |
D | swapinterval.cpp | 45 EGLDisplay dpy; in main() local 50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 51 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 52 eglGetConfigs(dpy, NULL, 0, &numConfigs); in main() 56 dpy, configAttribs, window, &config); in main() 59 eglTerminate(dpy); in main() 64 eglGetConfigAttrib(dpy, config, EGL_RED_SIZE, &r); in main() 65 eglGetConfigAttrib(dpy, config, EGL_GREEN_SIZE, &g); in main() 66 eglGetConfigAttrib(dpy, config, EGL_BLUE_SIZE, &b); in main() 67 eglGetConfigAttrib(dpy, config, EGL_ALPHA_SIZE, &a); in main() [all …]
|
/frameworks/native/opengl/tools/glgen/specs/egl/ |
D | EGL14.spec | 3 EGLBoolean eglInitialize ( EGLDisplay dpy, EGLint *major, EGLint *minor ) 4 EGLBoolean eglTerminate ( EGLDisplay dpy ) 5 const char * eglQueryString ( EGLDisplay dpy, EGLint name ) 6 EGLBoolean eglGetConfigs ( EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_conf… 7 EGLBoolean eglChooseConfig ( EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint … 8 EGLBoolean eglGetConfigAttrib ( EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value ) 9 EGLSurface eglCreateWindowSurface ( EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, cons… 10 EGLSurface eglCreatePbufferSurface ( EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list ) 11 EGLSurface eglCreatePixmapSurface ( EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, c… 12 EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) [all …]
|
/frameworks/native/opengl/include/EGL/ |
D | eglext.h | 84 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, E… 85 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); 87 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenu… 88 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); 141 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_l… 142 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync); 143 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTi… 144 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 145 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute… 147 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLi… [all …]
|
D | egl.h | 252 EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); 253 EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy); 255 EGLAPI const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name); 257 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, 259 EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, 262 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, 265 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, 268 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, 270 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, 273 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface); [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | EGL14.java | 167 EGLDisplay dpy, in eglInitialize() argument 177 EGLDisplay dpy in eglTerminate() argument 183 EGLDisplay dpy, in eglQueryString() argument 189 EGLDisplay dpy, in eglGetConfigs() argument 200 EGLDisplay dpy, in eglChooseConfig() argument 213 EGLDisplay dpy, in eglGetConfigAttrib() argument 223 EGLDisplay dpy, in _eglCreateWindowSurface() argument 231 EGLDisplay dpy, in _eglCreateWindowSurfaceTexture() argument 238 public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy, in eglCreateWindowSurface() argument 257 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); in eglCreateWindowSurface() [all …]
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 202 EGLDisplay dpy = egl_display_t::getFromNativeDisplay(display); in eglGetDisplay() local 203 return dpy; in eglGetDisplay() 210 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) in eglInitialize() argument 214 egl_display_ptr dp = get_display(dpy); in eglInitialize() 222 EGLBoolean eglTerminate(EGLDisplay dpy) in eglTerminate() argument 230 egl_display_ptr dp = get_display(dpy); in eglTerminate() 242 EGLBoolean eglGetConfigs( EGLDisplay dpy, in eglGetConfigs() argument 248 const egl_display_ptr dp = validate_display(dpy); in eglGetConfigs() 261 dp->disp.dpy, configs, config_size, num_config); in eglGetConfigs() 267 EGLBoolean eglChooseConfig( EGLDisplay dpy, const EGLint *attrib_list, in eglChooseConfig() argument [all …]
|
D | egl_display.h | 85 static egl_display_t* get(EGLDisplay dpy); 112 DisplayImpl() : dpy(EGL_NO_DISPLAY), state(NOT_INITIALIZED) { } in DisplayImpl() 113 EGLDisplay dpy; member 189 explicit egl_display_ptr(egl_display_t* dpy): mDpy(dpy) { in egl_display_ptr() argument 236 inline egl_display_ptr get_display(EGLDisplay dpy) { in get_display() argument 237 return egl_display_ptr(egl_display_t::get(dpy)); in get_display() 242 inline egl_display_t* get_display_nowake(EGLDisplay dpy) { in get_display_nowake() argument 243 return egl_display_t::get(dpy); in get_display_nowake() 248 egl_display_ptr validate_display(EGLDisplay dpy); 249 egl_display_ptr validate_display_connection(EGLDisplay dpy, [all …]
|
D | egl_object.cpp | 64 egl_surface_t::egl_surface_t(egl_display_t* dpy, EGLConfig config, in egl_surface_t() argument 67 egl_object_t(dpy), surface(surface), config(config), win(win), cnx(cnx) in egl_surface_t() 87 egl_context_t::egl_context_t(EGLDisplay dpy, EGLContext context, EGLConfig config, in egl_context_t() argument 89 egl_object_t(get_display_nowake(dpy)), dpy(dpy), context(context), in egl_context_t()
|
/frameworks/native/opengl/tests/angeles/include/GLES/ |
D | egl.h | 197 GLAPI EGLBoolean APIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor); 198 GLAPI EGLBoolean APIENTRY eglTerminate (EGLDisplay dpy); 199 GLAPI const char * APIENTRY eglQueryString (EGLDisplay dpy, EGLint name); 202 GLAPI EGLBoolean APIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EG… 203 GLAPI EGLBoolean APIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *co… 204 GLAPI EGLBoolean APIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, E… 206 GLAPI EGLSurface APIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, NativeWindowTyp… 207 GLAPI EGLSurface APIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, NativePixmapTyp… 208 GLAPI EGLSurface APIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *… 209 GLAPI EGLBoolean APIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface); [all …]
|
/frameworks/native/opengl/tests/fillrate/ |
D | fillrate.cpp | 46 EGLDisplay dpy; in main() local 50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 51 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 54 dpy, configAttribs, window, &config); in main() 60 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 61 context = eglCreateContext(dpy, config, NULL, NULL); in main() 62 eglMakeCurrent(dpy, surface, surface, context); in main() 63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 119 eglSwapInterval(dpy, 1); in main() [all …]
|
/frameworks/native/opengl/tests/gl_perf/ |
D | gl2_perf.cpp | 56 static EGLDisplay dpy; variable 75 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 77 if (dpy == EGL_NO_DISPLAY) { in main() 82 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main() 90 returnValue = EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig); in main() 98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); in main() 105 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); in main() 111 returnValue = eglMakeCurrent(dpy, surface, surface, context); in main() 116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() [all …]
|
/frameworks/native/opengl/tests/linetex/ |
D | linetex.cpp | 47 EGLDisplay dpy; in main() local 51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 52 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 55 dpy, configAttribs, window, &config); in main() 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 62 context = eglCreateContext(dpy, config, NULL, NULL); in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 109 eglSwapBuffers(dpy, surface); in main() [all …]
|
/frameworks/native/opengl/tests/filter/ |
D | filter.cpp | 40 EGLDisplay dpy; in main() local 47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 48 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 51 dpy, s_configAttribs, window, &config); in main() 52 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 55 eglChooseConfig(dpy, s_configAttribs, &config, 1, &numConfigs); in main() 57 surface = eglCreatePbufferSurface(dpy, config, attribs); in main() 62 context = eglCreateContext(dpy, config, NULL, NULL); in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() [all …]
|
/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 47 EGLDisplay dpy; in main() local 51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 52 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 55 dpy, configAttribs, window, &config); in main() 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 62 context = eglCreateContext(dpy, config, NULL, NULL); in main() 63 eglMakeCurrent(dpy, surface, surface, context); in main() 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 113 eglSwapBuffers(dpy, surface); in main() [all …]
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 43 EGLDisplay dpy; in main() local 47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 48 eglInitialize(dpy, &majorVersion, &minorVersion); in main() 51 dpy, configAttribs, window, &config); in main() 57 surface = eglCreateWindowSurface(dpy, config, window, NULL); in main() 58 context = eglCreateContext(dpy, config, NULL, NULL); in main() 59 eglMakeCurrent(dpy, surface, surface, context); in main() 60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); in main() 61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); in main() 116 eglSwapBuffers(dpy, surface); in main()
|
/frameworks/native/opengl/libagl/ |
D | egl.cpp | 54 EGLBoolean EGLAPI eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, 104 static egl_display_t& get_display(EGLDisplay dpy); 106 static EGLBoolean is_valid(EGLDisplay dpy) { in is_valid() 107 return ((uintptr_t(dpy)-1U) >= NUM_DISPLAYS) ? EGL_FALSE : EGL_TRUE; in is_valid() 116 egl_display_t& egl_display_t::get_display(EGLDisplay dpy) { in get_display() argument 117 return gDisplays[uintptr_t(dpy)-1U]; in get_display() 126 EGLDisplay dpy; member 147 EGLDisplay dpy; member 152 egl_surface_t(EGLDisplay dpy, EGLConfig config, int32_t depthFormat); 174 egl_surface_t::egl_surface_t(EGLDisplay dpy, in egl_surface_t() argument [all …]
|
/frameworks/native/opengl/tests/gl2_basic/ |
D | gl2_basic.cpp | 178 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { in printEGLConfiguration() argument 219 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); in printEGLConfiguration() 229 int printEGLConfigurations(EGLDisplay dpy) { in printEGLConfigurations() argument 231 EGLint returnVal = eglGetConfigs(dpy, NULL, 0, &numConfig); in printEGLConfigurations() 245 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations() 254 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations() 276 EGLDisplay dpy; in main() local 279 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 281 if (dpy == EGL_NO_DISPLAY) { in main() 286 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main() [all …]
|
/frameworks/native/opengl/tests/include/ |
D | EGLUtils.h | 40 EGLDisplay dpy, 46 EGLDisplay dpy, 77 EGLDisplay dpy, in selectConfigForPixelFormat() argument 91 if (eglGetConfigs(dpy, NULL, 0, &numConfigs) == EGL_FALSE) in selectConfigForPixelFormat() 95 if (eglChooseConfig(dpy, attrs, configs, numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat() 104 eglGetConfigAttrib(dpy, configs[i], EGL_NATIVE_VISUAL_ID, &nativeVisualId); in selectConfigForPixelFormat() 122 EGLDisplay dpy, in selectConfigForNativeWindow() argument 137 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); in selectConfigForNativeWindow()
|
/frameworks/native/opengl/tests/gl_yuvtex/ |
D | gl_yuvtex.cpp | 93 bool setupYuvTexSurface(EGLDisplay dpy, EGLContext context) { in setupYuvTexSurface() argument 131 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface() 173 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { in printEGLConfiguration() argument 214 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); in printEGLConfiguration() 239 EGLDisplay dpy; in main() local 242 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 244 if (dpy == EGL_NO_DISPLAY) { in main() 249 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main() 258 returnValue = EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig); in main() 267 printEGLConfiguration(dpy, myConfig); in main() [all …]
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 136 EGLDisplay dpy; in initGraphics() local 140 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initGraphics() 141 eglInitialize(dpy, &majorVersion, &minorVersion); in initGraphics() 144 dpy, configAttribs, window, &config); in initGraphics() 150 surface = eglCreateWindowSurface(dpy, config, window, NULL); in initGraphics() 155 context = eglCreateContext(dpy, config, NULL, NULL); in initGraphics() 159 eglMakeCurrent(dpy, surface, surface, context); in initGraphics() 162 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth); in initGraphics() 163 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight); in initGraphics() 165 sEglDisplay = dpy; in initGraphics()
|
/frameworks/base/core/jni/ |
D | com_google_android_gles_jni_EGLImpl.cpp | 125 EGLDisplay dpy = getDisplay(_env, display); in jni_eglInitialize() local 126 jboolean success = eglInitialize(dpy, NULL, NULL); in jni_eglInitialize() 147 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQueryContext() local 153 success = eglQueryContext(dpy, ctx, attribute, base); in jni_eglQueryContext() 166 EGLDisplay dpy = getDisplay(_env, display); in jni_eglQuerySurface() local 173 success = eglQuerySurface(dpy, sur, attribute, base); in jni_eglQuerySurface() 180 EGLDisplay dpy = getDisplay(_env, display); in jni_getInitCount() local 181 egl_display_t* eglDisplay = get_display_nowake(dpy); in jni_getInitCount() 198 EGLDisplay dpy = getDisplay(_env, display); in jni_eglChooseConfig() local 208 success = eglChooseConfig(dpy, attrib_base, configs ? nativeConfigs : 0, config_size, &num); in jni_eglChooseConfig() [all …]
|
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
D | gl2_copyTexImage.cpp | 282 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { in printEGLConfiguration() argument 323 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); in printEGLConfiguration() 333 int printEGLConfigurations(EGLDisplay dpy) { in printEGLConfigurations() argument 335 EGLint returnVal = eglGetConfigs(dpy, NULL, 0, &numConfig); in printEGLConfigurations() 349 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); in printEGLConfigurations() 358 printEGLConfiguration(dpy, configs[i]); in printEGLConfigurations() 384 EGLDisplay dpy; in main() local 387 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 389 if (dpy == EGL_NO_DISPLAY) { in main() 394 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main() [all …]
|
/frameworks/native/opengl/tests/gl2_yuvtex/ |
D | gl2_yuvtex.cpp | 193 bool setupYuvTexSurface(EGLDisplay dpy, EGLContext context) { in setupYuvTexSurface() argument 236 EGLImageKHR img = eglCreateImageKHR(dpy, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, in setupYuvTexSurface() 283 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { in printEGLConfiguration() argument 324 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); in printEGLConfiguration() 349 EGLDisplay dpy; in main() local 352 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() 354 if (dpy == EGL_NO_DISPLAY) { in main() 359 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); in main() 368 returnValue = EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig); in main() 377 printEGLConfiguration(dpy, myConfig); in main() [all …]
|
/frameworks/native/opengl/tests/configdump/ |
D | configdump.cpp | 71 EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); in main() local 72 eglInitialize(dpy, 0, 0); in main() 73 eglGetConfigs(dpy, NULL, 0, &n); in main() 75 eglGetConfigs(dpy, configs, n, &n); in main() 81 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); in main() 87 eglTerminate(dpy); in main()
|
/frameworks/native/opengl/tools/glgen/stubs/egl/ |
D | eglCreateWindowSurface.java | 4 EGLDisplay dpy, in _eglCreateWindowSurface() argument 12 EGLDisplay dpy, in _eglCreateWindowSurfaceTexture() argument 19 public static EGLSurface eglCreateWindowSurface(EGLDisplay dpy, in eglCreateWindowSurface() argument 38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); in eglCreateWindowSurface() 40 surface = _eglCreateWindowSurfaceTexture(dpy, config, in eglCreateWindowSurface()
|