/frameworks/native/opengl/tests/configdump/ |
configdump.cpp | 71 EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); local 72 eglInitialize(dpy, 0, 0); 73 eglGetConfigs(dpy, NULL, 0, &n); 75 eglGetConfigs(dpy, configs, n, &n); 81 eglGetConfigAttrib(dpy, configs[i], attributes[attr].attribute, &value); 87 eglTerminate(dpy);
|
/cts/tests/tests/openglperf/jni/ |
OpenGlPerfNativeJni.cpp | 26 typedef EGLSyncKHR EGLAPIENTRY (*TypeEglCreateSyncKHR)(EGLDisplay dpy, \ 28 typedef EGLBoolean EGLAPIENTRY (*TypeEglDestroySyncKHR)(EGLDisplay dpy, \ 30 typedef EGLint EGLAPIENTRY (*TypeEglClientWaitSyncKHR)(EGLDisplay dpy, \ 62 EGLDisplay dpy = eglGetCurrentDisplay(); local 63 if (!IsEglKHRFenceSyncSupported(dpy)) { 66 EGLSyncKHR sync = mEglCreateSyncKHR(dpy, EGL_SYNC_FENCE_KHR, NULL); 71 EGLint result = mEglClientWaitSyncKHR(dpy, sync, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, waitTimeInNs); 79 mEglDestroySyncKHR(dpy, sync);
|
/frameworks/native/libs/gui/ |
SyncFeatures.cpp | 31 EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name); 41 EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); local 44 const char* exts = eglQueryStringImplementationANDROID(dpy, EGL_EXTENSIONS);
|
/frameworks/native/opengl/tests/filter/ |
filter.cpp | 40 EGLDisplay dpy; local 47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 48 eglInitialize(dpy, &majorVersion, &minorVersion); 51 dpy, s_configAttribs, window, &config); 52 surface = eglCreateWindowSurface(dpy, config, window, NULL); 55 eglChooseConfig(dpy, s_configAttribs, &config, 1, &numConfigs); 57 surface = eglCreatePbufferSurface(dpy, config, attribs); 62 context = eglCreateContext(dpy, config, NULL, NULL); 63 eglMakeCurrent(dpy, surface, surface, context); 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w) [all...] |
/frameworks/native/opengl/tests/finish/ |
finish.cpp | 47 EGLDisplay dpy; local 51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 52 eglInitialize(dpy, &majorVersion, &minorVersion); 55 dpy, configAttribs, window, &config); 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); 62 context = eglCreateContext(dpy, config, NULL, NULL); 63 eglMakeCurrent(dpy, surface, surface, context); 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 113 eglSwapBuffers(dpy, surface) [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
gl2_perf.cpp | 56 static EGLDisplay dpy; variable 75 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 77 if (dpy == EGL_NO_DISPLAY) { 82 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion); 90 returnValue = EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig); 98 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 105 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); 111 returnValue = eglMakeCurrent(dpy, surface, surface, context); 116 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 118 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h) [all...] |
/frameworks/native/opengl/tests/linetex/ |
linetex.cpp | 47 EGLDisplay dpy; local 51 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 52 eglInitialize(dpy, &majorVersion, &minorVersion); 55 dpy, configAttribs, window, &config); 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); 62 context = eglCreateContext(dpy, config, NULL, NULL); 63 eglMakeCurrent(dpy, surface, surface, context); 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 109 eglSwapBuffers(dpy, surface) [all...] |
/frameworks/native/opengl/tests/textures/ |
textures.cpp | 43 EGLDisplay dpy; local 47 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 48 eglInitialize(dpy, &majorVersion, &minorVersion); 51 dpy, configAttribs, window, &config); 57 surface = eglCreateWindowSurface(dpy, config, window, NULL); 58 context = eglCreateContext(dpy, config, NULL, NULL); 59 eglMakeCurrent(dpy, surface, surface, context); 60 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 61 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 116 eglSwapBuffers(dpy, surface) [all...] |
/device/generic/goldfish/opengl/system/egl/ |
eglContext.h | 29 EGLContext_t(EGLDisplay dpy, EGLConfig config, EGLContext_t* shareCtx); 32 EGLDisplay dpy; member in struct:EGLContext_t
|
/frameworks/native/opengl/tests/fillrate/ |
fillrate.cpp | 46 EGLDisplay dpy; local 50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 51 eglInitialize(dpy, &majorVersion, &minorVersion); 54 dpy, configAttribs, window, &config); 60 surface = eglCreateWindowSurface(dpy, config, window, NULL); 61 context = eglCreateContext(dpy, config, NULL, NULL); 62 eglMakeCurrent(dpy, surface, surface, context); 63 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 64 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 119 eglSwapInterval(dpy, 1) [all...] |
/frameworks/native/opengl/tests/swapinterval/ |
swapinterval.cpp | 45 EGLDisplay dpy; local 50 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 51 eglInitialize(dpy, &majorVersion, &minorVersion); 52 eglGetConfigs(dpy, NULL, 0, &numConfigs); 56 dpy, configAttribs, window, &config); 59 eglTerminate(dpy); 64 eglGetConfigAttrib(dpy, config, EGL_RED_SIZE, &r); 65 eglGetConfigAttrib(dpy, config, EGL_GREEN_SIZE, &g); 66 eglGetConfigAttrib(dpy, config, EGL_BLUE_SIZE, &b); 67 eglGetConfigAttrib(dpy, config, EGL_ALPHA_SIZE, &a) [all...] |
/hardware/qcom/display/libhwcomposer/ |
hwc_uevents.cpp | 85 int dpy = isHDMI(str) ? HWC_DISPLAY_EXTERNAL : extDpyNum; local 88 ctx->mExtDisplay->setExtDpyNum(dpy); 114 if(ctx->mFBUpdate[dpy]) { 116 delete ctx->mFBUpdate[dpy]; 117 ctx->mFBUpdate[dpy] = NULL; 119 if(ctx->mCopyBit[dpy]){ 121 delete ctx->mCopyBit[dpy]; 122 ctx->mCopyBit[dpy] = NULL; 124 if(ctx->mMDPComp[dpy]) { 125 delete ctx->mMDPComp[dpy]; [all...] |
hwc_vsync.cpp | 36 int hwc_vsync_control(hwc_context_t* ctx, int dpy, int enable) 40 ioctl(ctx->dpyAttr[dpy].fd, MSMFB_OVERLAY_VSYNC_CTRL, 42 ALOGE("%s: vsync control failed. Dpy=%d, enable=%d : %s", 43 __FUNCTION__, dpy, enable, strerror(errno)); 53 int dpy = HWC_DISPLAY_PRIMARY; local 124 ctx->proc->vsync(ctx->proc, dpy, cur_timestamp);
|
/sdk/emulator/opengl/tests/ut_renderer/ |
X11Windowing.cpp | 83 Display *dpy = XOpenDisplay(NULL); local 84 return (NativeDisplayType)dpy; 89 Display *dpy = (Display *) _dpy; local 91 long defaultScreen = DefaultScreen( dpy ); 92 Window rootWindow = RootWindow(dpy, defaultScreen); 93 int depth = DefaultDepth(dpy, defaultScreen); 96 XMatchVisualInfo(dpy, defaultScreen, depth, TrueColor, visualInfo); 102 Colormap x11Colormap = XCreateColormap(dpy, rootWindow, visualInfo->visual, AllocNone); 110 Window win = XCreateWindow( dpy, 116 XMapWindow(dpy, win) 124 Display *dpy = (Display *)_dpy; local [all...] |
/frameworks/native/opengl/libs/EGL/ |
egl_display.cpp | 57 egl_display_t* egl_display_t::get(EGLDisplay dpy) { 58 uintptr_t index = uintptr_t(dpy)-1U; 98 if (cnx->dso && disp.dpy == EGL_NO_DISPLAY) { 99 EGLDisplay dpy = cnx->egl.eglGetDisplay(display); local 100 disp.dpy = dpy; 101 if (dpy == EGL_NO_DISPLAY) { 153 disp[i].dpy = cnx->egl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 157 EGLDisplay idpy = disp.dpy; 159 //ALOGD("initialized dpy=%p, ver=%d.%d, cnx=%p" [all...] |
egl_object.h | 132 egl_surface_t(egl_display_t* dpy, EGLConfig config, 148 egl_context_t(EGLDisplay dpy, EGLContext context, EGLConfig config, 154 EGLDisplay dpy; member in class:android::egl_context_t
|
Loader.cpp | 160 int dpy, impl; local 161 if (sscanf(line, "%u %u %s", &dpy, &impl, tag) == 3) { 162 //ALOGD(">>> %u %u %s", dpy, impl, tag);
|
egl_display.h | 85 static egl_display_t* get(EGLDisplay dpy); 112 DisplayImpl() : dpy(EGL_NO_DISPLAY), state(NOT_INITIALIZED) { } 113 EGLDisplay dpy; member in struct:android::egl_display_t::DisplayImpl 189 explicit egl_display_ptr(egl_display_t* dpy): mDpy(dpy) { 236 inline egl_display_ptr get_display(EGLDisplay dpy) { 237 return egl_display_ptr(egl_display_t::get(dpy)); 242 inline egl_display_t* get_display_nowake(EGLDisplay dpy) { 243 return egl_display_t::get(dpy); 248 egl_display_ptr validate_display(EGLDisplay dpy); [all...] |
/frameworks/native/opengl/tests/angeles/ |
app-linux.cpp | 136 EGLDisplay dpy; local 140 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 141 eglInitialize(dpy, &majorVersion, &minorVersion); 144 dpy, configAttribs, window, &config); 150 surface = eglCreateWindowSurface(dpy, config, window, NULL); 155 context = eglCreateContext(dpy, config, NULL, NULL); 159 eglMakeCurrent(dpy, surface, surface, context); 162 eglQuerySurface(dpy, surface, EGL_WIDTH, &sWindowWidth); 163 eglQuerySurface(dpy, surface, EGL_HEIGHT, &sWindowHeight); 165 sEglDisplay = dpy; [all...] |
/sdk/emulator/opengl/host/libs/libOpenglRender/ |
FBConfig.cpp | 71 EGLDisplay dpy = fb->getDisplay(); local 73 if (dpy == EGL_NO_DISPLAY) { 82 if (!s_egl.eglGetConfigs(dpy, NULL, 0, &nConfigs)) { 87 s_egl.eglGetConfigs(dpy, configs, nConfigs, &nConfigs); 103 s_egl.eglGetConfigAttrib(dpy, configs[i], 111 s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_RED_SIZE, &redSize); 112 s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_BLUE_SIZE, &blueSize); 113 s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_GREEN_SIZE, &greenSize); 116 s_fbConfigs[j++] = new FBConfig(dpy, configs[i]); 150 EGLDisplay dpy = fb->getDisplay() local [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
DisplayRefreshRateTest.java | 180 Display dpy = wm.getDefaultDisplay(); local 181 float claimedFps = dpy.getRefreshRate();
|
/external/webkit/Source/ThirdParty/ANGLE/src/libEGL/ |
libEGL.cpp | 121 EGLBoolean __stdcall eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) 123 TRACE("(EGLDisplay dpy = 0x%0.8p, EGLint *major = 0x%0.8p, EGLint *minor = 0x%0.8p)", 124 dpy, major, minor); 128 if (dpy == EGL_NO_DISPLAY) 133 egl::Display *display = static_cast<egl::Display*>(dpy); 153 EGLBoolean __stdcall eglTerminate(EGLDisplay dpy) 155 TRACE("(EGLDisplay dpy = 0x%0.8p)", dpy); 159 if (dpy == EGL_NO_DISPLAY) 164 egl::Display *display = static_cast<egl::Display*>(dpy); 949 EGLDisplay dpy = egl::getCurrentDisplay(); local [all...] |
/frameworks/native/cmds/flatland/ |
GLHelper.cpp | 221 sp<IBinder> dpy = mSurfaceComposerClient->getBuiltInDisplay(0); local 222 if (dpy == NULL) { 228 status_t err = mSurfaceComposerClient->getDisplayInfo(dpy, &info);
|
/frameworks/native/libs/gui/tests/ |
SurfaceTextureClient_test.cpp | 137 EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); local 139 ASSERT_NE(EGL_NO_DISPLAY, dpy); 143 EXPECT_TRUE(eglInitialize(dpy, &majorVersion, &minorVersion)); 158 EXPECT_TRUE(eglChooseConfig(dpy, configAttribs, &myConfig, 1, 162 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), 168 eglDestroySurface(dpy, eglSurface); 171 eglTerminate(dpy); 500 EGLDisplay dpy; member in class:android::MyThread 504 eglMakeCurrent(dpy, sur, sur, ctx); 509 eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT) [all...] |
/frameworks/native/opengl/tests/gl2_basic/ |
gl2_basic.cpp | 178 void printEGLConfiguration(EGLDisplay dpy, EGLConfig config) { 219 EGLint returnVal = eglGetConfigAttrib(dpy, config, names[j].attribute, &value); 229 int printEGLConfigurations(EGLDisplay dpy) { 231 EGLint returnVal = eglGetConfigs(dpy, NULL, 0, &numConfig); 245 returnVal = eglGetConfigs(dpy, configs, numConfig, &numConfig); 254 printEGLConfiguration(dpy, configs[i]); 276 EGLDisplay dpy; local 279 dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); 281 if (dpy == EGL_NO_DISPLAY) { 286 returnValue = eglInitialize(dpy, &majorVersion, &minorVersion) [all...] |