/sdk/emulator/opengl/tests/ut_renderer/ |
RendererSurface.cpp | 25 EGLConfig RendererSurface::getEglConfig(EGLDisplay eglDisplay, SurfaceConfig config) 27 EGLConfig eglConfig; 37 if (!eglChooseConfig(eglDisplay, attrib, &eglConfig, 1, &nConfigs)) { 42 if (eglGetConfigAttrib(eglDisplay, eglConfig, EGL_BUFFER_SIZE, &ibuf)) { 47 if (eglGetConfigAttrib(eglDisplay, eglConfig, EGL_DEPTH_SIZE, &ibuf)) { 58 return eglConfig; 81 EGLConfig eglConfig = getEglConfig(eglDisplay, config); 82 if (eglConfig == 0) [all...] |
RendererSurface.h | 31 EGLConfig eglConfig() { return m_config; } 35 static EGLConfig getEglConfig(EGLDisplay eglDisplay, SurfaceConfig config); 40 RendererSurface(EGLDisplay display, NativeWindowType window, EGLSurface surface, EGLConfig config) : 48 EGLConfig m_config;
|
/external/jmonkeyengine/engine/src/android/jme3test/android/ |
DemoAndroidHarness.java | 21 String eglConfig = bundle.getString("EGLCONFIG"); 22 if (eglConfig.equals("Best")) 26 else if (eglConfig.equals("Legacy"))
|
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 26 import javax.microedition.khronos.egl.EGLConfig; 169 EGLConfig eglConfig = chooseEglConfig(); 170 if (eglConfig == null) { 171 throw new RuntimeException("eglConfig not initialized"); 174 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); 176 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); 199 private static EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { 201 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list) [all...] |
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/ |
GL2JNIView.java | 44 import javax.microedition.khronos.egl.EGLConfig; 58 * an EGLConfig that supports 2.0. This is done by providing a config 63 * - The class must select the surface's format, then choose an EGLConfig 97 /* We need to choose an EGLConfig that matches the format of 112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 116 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 158 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 173 EGLConfig[] configs = new EGLConfig[numConfigs] [all...] |
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
GL2JNIView.java | 43 import javax.microedition.khronos.egl.EGLConfig; 80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 84 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 121 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 131 EGLConfig[] configs = new EGLConfig[numConfigs]; 137 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, 138 EGLConfig[] configs) { 139 EGLConfig closestConfig = null [all...] |
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
GLPerfView.java | 43 import javax.microedition.khronos.egl.EGLConfig; 80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 84 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 121 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 131 EGLConfig[] configs = new EGLConfig[numConfigs]; 137 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, 138 EGLConfig[] configs) { 139 EGLConfig closestConfig = null [all...] |
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
GLDualGL2View.java | 36 import javax.microedition.khronos.egl.EGLConfig; 83 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 87 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 124 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 134 EGLConfig[] configs = new EGLConfig[numConfigs]; 140 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, 141 EGLConfig[] configs) { 142 EGLConfig closestConfig = null [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 29 import javax.microedition.khronos.egl.EGLConfig; 108 EGLConfig mEglConfig; 111 private EGLConfig chooseEglConfig() { 113 EGLConfig[] configs = new EGLConfig[1]; 137 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { 139 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list);
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
MosaicRendererSurfaceView.java | 29 import javax.microedition.khronos.egl.EGLConfig; 84 /* We need to choose an EGLConfig that matches the format of 102 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 107 display, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); 149 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 164 EGLConfig[] configs = new EGLConfig[numConfigs]; 175 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, 176 EGLConfig[] configs) [all...] |
/frameworks/base/core/java/android/view/ |
HardwareRenderer.java | 37 import javax.microedition.khronos.egl.EGLConfig; 767 static EGLConfig sEglConfig; [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 37 import javax.microedition.khronos.egl.EGLConfig; 142 private EGLConfig mEglConfig; 378 throw new RuntimeException("eglConfig not initialized"); 404 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { 406 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 409 private EGLConfig chooseEglConfig() { 411 EGLConfig[] configs = new EGLConfig[1];
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ImageWallpaper.java | 39 import javax.microedition.khronos.egl.EGLConfig; 122 private EGLConfig mEglConfig; 625 throw new RuntimeException("eglConfig not initialized"); 679 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { 681 return egl.eglCreateContext(eglDisplay, eglConfig, EGL_NO_CONTEXT, attrib_list); 684 private EGLConfig chooseEglConfig() { 686 EGLConfig[] configs = new EGLConfig[1];
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GLSurfaceViewCustom.java | 31 import javax.microedition.khronos.egl.EGLConfig; 96 * A given Android device may support multiple EGLConfig rendering configurations. 99 * GLSurfaceView has to do when starting to render is choose what EGLConfig to use. 101 * By default GLSurfaceView chooses a EGLConfig that has an RGB_888 pixel format, 104 * If you would prefer a different EGLConfig 402 * view will choose an EGLConfig that is compatible with the current 681 * that it still needs. The {@link #onSurfaceCreated(GL10, EGLConfig)} method 709 * @param config the EGLConfig of the created surface. Can be used 712 void onSurfaceCreated(GL10 gl, EGLConfig config); 770 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
GLSurfaceView.java | 24 import javax.microedition.khronos.egl.EGLConfig; 603 * that it still needs. The {@link #onSurfaceCreated(GL10, EGLConfig)} method 631 * @param config the EGLConfig of the created surface. Can be used 634 void onSurfaceCreated(GL10 gl, EGLConfig config); 701 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); 708 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { 729 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, 737 EGLConfig config, Object nativeWindow) { 748 * An interface for choosing an EGLConfig configuration from a list o [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLSurfaceView.java | 25 import javax.microedition.khronos.egl.EGLConfig; 92 * A given Android device may support multiple EGLConfig rendering configurations. 95 * GLSurfaceView has to do when starting to render is choose what EGLConfig to use. 97 * By default GLSurfaceView chooses a EGLConfig that has an RGB_888 pixel format, 100 * If you would prefer a different EGLConfig 398 * view will choose an EGLConfig that is compatible with the current 677 * that it still needs. The {@link #onSurfaceCreated(GL10, EGLConfig)} method 705 * @param config the EGLConfig of the created surface. Can be used 708 void onSurfaceCreated(GL10 gl, EGLConfig config); 760 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) [all...] |