Home
last modified time | relevance | path

Searched refs:gl (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/rs/driver/
DrsdGL.cpp131 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 …]
DrsdFrameBufferObj.cpp131 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()
DrsdProgram.cpp67 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()
DrsdShader.cpp420 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/
DCubeRenderer.java44 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 …]
DCube.java89 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/
DClearActivity.java70 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/
DTriangleRenderer.java37 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/
DGLWrapperBase.java32 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()
DGLDebugHelper.java79 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()
DGLU.java71 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()
DGLSurfaceView.java670 GL wrap(GL gl); in wrap() argument
734 void onSurfaceCreated(GL10 gl, EGLConfig config); in onSurfaceCreated() argument
759 void onSurfaceChanged(GL10 gl, int width, int height); in onSurfaceChanged() argument
776 void onDrawFrame(GL10 gl); in onDrawFrame() argument
1143 GL gl = mEglContext.getGL(); in createGL() local
1147 gl = view.mGLWrapper.wrap(gl); in createGL()
1159 gl = GLDebugHelper.wrap(gl, configFlags, log); in createGL()
1162 return gl; in createGL()
1309 GL10 gl = null; in guardedRun() local
1528 gl = (GL10) mEglHelper.createGL(); in guardedRun()
[all …]
/frameworks/native/opengl/tests/testViewport/src/com/android/test/
DTestView.java186 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/base/tests/GamePerformance/src/android/gameperformance/
DCustomOpenGLView.java43 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in CustomOpenGLView()
45 gl.glClearDepthf(1.0f); in CustomOpenGLView()
46 gl.glEnable(GL10.GL_DEPTH_TEST); in CustomOpenGLView()
47 gl.glDepthFunc(GL10.GL_LEQUAL); in CustomOpenGLView()
49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, in CustomOpenGLView()
53 public void onSurfaceChanged(GL10 gl, int width, int height) { in CustomOpenGLView()
58 public void onDrawFrame(GL10 gl) { in CustomOpenGLView()
61 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in CustomOpenGLView()
/frameworks/native/libs/renderengine/
DAndroid.bp51 "gl/GLESRenderEngine.cpp",
52 "gl/GLExtensions.cpp",
53 "gl/GLFramebuffer.cpp",
54 "gl/GLImage.cpp",
55 "gl/ImageManager.cpp",
56 "gl/Program.cpp",
57 "gl/ProgramCache.cpp",
DRenderEngine.cpp33 return renderengine::gl::GLESRenderEngine::create(hwcFormat, featureFlags, imageCacheSize); in create()
36 return renderengine::gl::GLESRenderEngine::create(hwcFormat, featureFlags, imageCacheSize); in create()
/frameworks/native/opengl/libs/GLES2/
Dgl2.cpp46 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)) \
/frameworks/native/opengl/libagl/
DBufferObjectManager.h40 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;
Degl.cpp90 namespace gl { namespace
154 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context() local
155 return static_cast<egl_context_t*>(gl->rasterizer.base); in context()
179 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl) = 0;
180 virtual EGLBoolean bindReadSurface(ogles_context_t* gl) = 0;
249 virtual EGLBoolean bindDrawSurface(ogles_context_t* gl);
250 virtual EGLBoolean bindReadSurface(ogles_context_t* gl);
608 EGLBoolean egl_window_surface_v2_t::bindDrawSurface(ogles_context_t* gl) in bindDrawSurface() argument
617 gl->rasterizer.procs.colorBuffer(gl, &buffer); in bindDrawSurface()
618 if (depth.data != gl->rasterizer.state.buffers.depth.data) in bindDrawSurface()
[all …]
/frameworks/native/opengl/libs/GLES_CM/
Dgl.cpp102 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/
DTestView.java71 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/
DGLJNIView.java71 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/testFramerate/src/com/android/testframerate/
DTestFramerateView.java72 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/
DGLId.java28 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
DGLES20IdImpl.java25 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

1234