/frameworks/rs/driver/ |
D | rsdGL.cpp | 131 ALOGE(" EGL ver %i %i", dc->gl.egl.majorVersion, dc->gl.egl.minorVersion); in DumpDebug() 132 ALOGE(" EGL context %p surface %p, Display=%p", dc->gl.egl.context, dc->gl.egl.surface, in DumpDebug() 133 dc->gl.egl.display); in DumpDebug() 134 ALOGE(" GL vendor: %s", dc->gl.gl.vendor); in DumpDebug() 135 ALOGE(" GL renderer: %s", dc->gl.gl.renderer); in DumpDebug() 136 ALOGE(" GL Version: %s", dc->gl.gl.version); in DumpDebug() 137 ALOGE(" GL Extensions: %s", dc->gl.gl.extensions); in DumpDebug() 138 ALOGE(" GL int Versions %i %i", dc->gl.gl.majorVersion, dc->gl.gl.minorVersion); in DumpDebug() 140 ALOGV("MAX Textures %i, %i %i", dc->gl.gl.maxVertexTextureUnits, in DumpDebug() 141 dc->gl.gl.maxFragmentTextureImageUnits, dc->gl.gl.maxTextureImageUnits); in DumpDebug() [all …]
|
D | rsdFrameBufferObj.cpp | 131 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_WIDTH, &width); in setActive() 132 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_HEIGHT, &height); in setActive() 150 if(dc->gl.wndSurface != dc->gl.currentWndSurface) { in setActive() 151 rsdGLSetInternalSurface(rsc, dc->gl.wndSurface); in setActive()
|
D | rsdProgram.cpp | 67 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); in rsdProgramVertexSetActive() 80 dc->gl.shaderCache->cleanupVertex(drv); in rsdProgramVertexDestroy() 101 dc->gl.shaderCache->setActiveFragment((RsdShader*)pf->mHal.drv); in rsdProgramFragmentSetActive() 114 dc->gl.shaderCache->cleanupFragment(drv); in rsdProgramFragmentDestroy()
|
D | rsdShader.cpp | 420 if (!dc->gl.gl.OES_texture_npot && tex->getType()->getIsNp2()) { in setupSampler() 422 (dc->gl.gl.NV_texture_npot_2D_mipmap || dc->gl.gl.IMG_texture_npot)) { in setupSampler() 423 if (dc->gl.gl.NV_texture_npot_2D_mipmap) { in setupSampler() 459 float anisoValue = rsMin(dc->gl.gl.EXT_texture_max_aniso, s->mHal.state.aniso); in setupSampler() 460 if (dc->gl.gl.EXT_texture_max_aniso > 1.0f) { in setupSampler() 475 uint32_t numTexturesAvailable = dc->gl.gl.maxFragmentTextureImageUnits; in setupTextures()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | CubeRenderer.java | 44 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 51 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame() 57 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame() 58 gl.glLoadIdentity(); in onDrawFrame() 59 gl.glTranslatef(0, 0, -3.0f); in onDrawFrame() 60 gl.glRotatef(mAngle, 0, 1, 0); in onDrawFrame() 61 gl.glRotatef(mAngle*0.25f, 1, 0, 0); in onDrawFrame() 63 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); in onDrawFrame() 64 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); in onDrawFrame() 66 gl.glScalef(mScale, mScale, mScale); in onDrawFrame() [all …]
|
D | Cube.java | 89 public void draw(GL10 gl) in draw() argument 91 gl.glFrontFace(GL10.GL_CW); in draw() 92 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); in draw() 93 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer); in draw() 94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); in draw()
|
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/ |
D | ClearActivity.java | 70 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument 74 public void onSurfaceChanged(GL10 gl, int w, int h) { in onSurfaceChanged() argument 76 gl.glMatrixMode(GL10.GL_PROJECTION); in onSurfaceChanged() 77 gl.glLoadIdentity(); in onSurfaceChanged() 86 gl.glFrustumf(fl, fr, fb, ft, 1.0f, 2000.0f); in onSurfaceChanged() 89 gl.glMatrixMode(GL10.GL_MODELVIEW); in onSurfaceChanged() 90 gl.glLoadIdentity(); in onSurfaceChanged() 91 gl.glViewport(0, 0, w, h); in onSurfaceChanged() 94 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 95 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame() [all …]
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
D | TriangleRenderer.java | 37 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument 43 gl.glDisable(GL10.GL_DITHER); in onSurfaceCreated() 49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, in onSurfaceCreated() 52 gl.glClearColor(.5f, .5f, .5f, 1); in onSurfaceCreated() 53 gl.glShadeModel(GL10.GL_SMOOTH); in onSurfaceCreated() 56 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 62 gl.glDisable(GL10.GL_DITHER); in onDrawFrame() 70 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame() 76 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame() 77 gl.glLoadIdentity(); in onDrawFrame() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLWrapperBase.java | 32 public GLWrapperBase(GL gl) { in GLWrapperBase() argument 33 mgl = (GL10) gl; in GLWrapperBase() 34 if (gl instanceof GL10Ext) { in GLWrapperBase() 35 mgl10Ext = (GL10Ext) gl; in GLWrapperBase() 37 if (gl instanceof GL11) { in GLWrapperBase() 38 mgl11 = (GL11) gl; in GLWrapperBase() 40 if (gl instanceof GL11Ext) { in GLWrapperBase() 41 mgl11Ext = (GL11Ext) gl; in GLWrapperBase() 43 if (gl instanceof GL11ExtensionPack) { in GLWrapperBase() 44 mgl11ExtensionPack = (GL11ExtensionPack) gl; in GLWrapperBase()
|
D | GLDebugHelper.java | 79 public static GL wrap(GL gl, int configFlags, Writer log) { in wrap() argument 81 gl = new GLErrorWrapper(gl, configFlags); in wrap() 86 gl = new GLLogWrapper(gl, log, logArgumentNames); in wrap() 88 return gl; in wrap()
|
D | GLU.java | 71 public static void gluLookAt(GL10 gl, float eyeX, float eyeY, float eyeZ, in gluLookAt() argument 79 gl.glMultMatrixf(scratch, 0); in gluLookAt() 92 public static void gluOrtho2D(GL10 gl, float left, float right, in gluOrtho2D() argument 94 gl.glOrthof(left, right, bottom, top, -1.0f, 1.0f); in gluOrtho2D() 111 public static void gluPerspective(GL10 gl, float fovy, float aspect, in gluPerspective() argument 117 gl.glFrustumf(left, right, bottom, top, zNear, zFar); in gluPerspective()
|
D | GLSurfaceView.java | 669 GL wrap(GL gl); in wrap() argument 733 void onSurfaceCreated(GL10 gl, EGLConfig config); in onSurfaceCreated() argument 758 void onSurfaceChanged(GL10 gl, int width, int height); in onSurfaceChanged() argument 775 void onDrawFrame(GL10 gl); in onDrawFrame() argument 1142 GL gl = mEglContext.getGL(); in createGL() local 1146 gl = view.mGLWrapper.wrap(gl); in createGL() 1158 gl = GLDebugHelper.wrap(gl, configFlags, log); in createGL() 1161 return gl; in createGL() 1307 GL10 gl = null; in guardedRun() local 1526 gl = (GL10) mEglHelper.createGL(); in guardedRun() [all …]
|
/frameworks/native/opengl/tests/testViewport/src/com/android/test/ |
D | TestView.java | 186 public void createBufferObjects(GL gl) { in createBufferObjects() argument 189 GL11 gl11 = (GL11) gl; in createBufferObjects() 209 public void draw(GL10 gl) { in draw() argument 210 GL11 gl11 = (GL11) gl; in draw() 212 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); in draw() 219 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); in draw() 230 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 231 gl.glClearColor(0,0,1,1); in onDrawFrame() 232 gl.glClear(GL10.GL_COLOR_BUFFER_BIT); in onDrawFrame() 233 mGrid.draw(gl); in onDrawFrame() [all …]
|
/frameworks/native/opengl/libs/GLES2/ |
D | gl2.cpp | 46 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; \ 69 [api] "J"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 104 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 138 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 172 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 220 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 255 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 306 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; in glGetString() 315 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; in glGetStringi() 330 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; in glGetBooleanv() [all …]
|
/frameworks/native/opengl/libagl/ |
D | BufferObjectManager.h | 40 namespace gl { 62 gl::buffer_t const* bind(GLuint buffer); 63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage); 69 KeyedVector<GLuint, gl::buffer_t*> mBuffers;
|
D | egl.cpp | 88 namespace gl { namespace 152 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context() local 153 return static_cast<egl_context_t*>(gl->rasterizer.base); in context() 177 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl) = 0; 178 virtual EGLBoolean bindReadSurface(ogles_context_t* gl) = 0; 247 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl); 248 virtual EGLBoolean bindReadSurface(ogles_context_t* gl); 606 EGLBoolean egl_window_surface_v2_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument 615 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface() 616 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface() [all …]
|
/frameworks/native/opengl/libs/GLES_CM/ |
D | gl.cpp | 102 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; \ 125 [api] "J"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 160 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 194 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 228 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \ 276 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 311 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \ 352 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; in glGetString()
|
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/ |
D | TestView.java | 71 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 75 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument 79 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
|
/frameworks/native/opengl/tests/gl_jni/src/com/android/gljni/ |
D | GLJNIView.java | 71 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 75 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument 79 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
|
/frameworks/native/opengl/libs/tools/ |
D | genfiles | 21 ./glapigen ../../include/GLES/gl.h > ../GLES_CM/gl_api.in 26 ./glentrygen ../../include/GLES/gl.h > /tmp/gl_entries.in 43 cat ../../include/GLES/gl.h \
|
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/ |
D | TestFramerateView.java | 72 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 83 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument 87 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLId.java | 28 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset); in glDeleteTextures() argument 30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); in glDeleteBuffers() argument
|
D | GLES20IdImpl.java | 25 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset) { in glDeleteTextures() argument 32 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset) { in glDeleteBuffers() argument
|
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/ |
D | GL2JavaView.java | 64 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument 79 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument 83 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
|
/frameworks/native/opengl/tests/testViewport/ |
D | README | 24 I think the bug is that the gl.glViewport() call in onSurfaceChanged() is 27 NOTE: If a gl.glViewport call is added at the beginning of the onDrawFrame()
|