/development/tools/emulator/opengl/system/GLESv2_enc/ |
D | GL2Encoder.cpp | 12 ctx->setError(err); \ 19 ctx->setError(err); \ 88 GL2Encoder *ctx = (GL2Encoder *)self; in s_glGetError() local 89 GLenum err = ctx->getError(); in s_glGetError() 91 ctx->setError(GL_NO_ERROR); in s_glGetError() 95 return ctx->m_glGetError_enc(self); in s_glGetError() 101 GL2Encoder *ctx = (GL2Encoder *) self; in s_glFlush() local 102 ctx->m_glFlush_enc(self); in s_glFlush() 103 ctx->m_stream->flush(); in s_glFlush() 128 GL2Encoder *ctx = (GL2Encoder *)self; in s_glPixelStorei() local [all …]
|
D | GL2EncoderUtils.cpp | 23 GL2Encoder *ctx = (GL2Encoder *)self; in pixelDataSize() local 24 assert (ctx->state() != NULL); in pixelDataSize() 25 return ctx->state()->pixelDataSize(width, height, format, type, pack); in pixelDataSize() 36 GL2Encoder * ctx = (GL2Encoder *) self; in uniformType() local 37 assert (ctx->shared() != NULL); in uniformType() 38 return ctx->shared()->getProgramUniformType(program, location); in uniformType()
|
/development/tools/emulator/opengl/system/GLESv1_enc/ |
D | GLEncoder.cpp | 41 ctx->setError(err); \ 48 ctx->setError(err); \ 54 GLEncoder *ctx = (GLEncoder *)self; in s_glGetError() local 55 GLenum err = ctx->getError(); in s_glGetError() 57 ctx->setError(GL_NO_ERROR); in s_glGetError() 61 return ctx->m_glGetError_enc(self); in s_glGetError() 81 GLEncoder *ctx = (GLEncoder *)self; in s_glGetIntegerv() local 82 assert(ctx->m_state != NULL); in s_glGetIntegerv() 84 GLint * compressedTextureFormats = ctx->getCompressedTextureFormats(); in s_glGetIntegerv() 85 if (ctx->m_num_compressedTextureFormats > 0 && compressedTextureFormats != NULL) { in s_glGetIntegerv() [all …]
|
D | GLEncoderUtils.cpp | 22 GLEncoder *ctx = (GLEncoder *)self; in pixelDataSize() local 23 return ctx->pixelDataSize(width, height, format, type, pack); in pixelDataSize()
|
/development/tools/emulator/opengl/host/libs/GLESv1_dec/ |
D | GLDecoder.cpp | 83 GLDecoder *ctx = (GLDecoder *)self; in s_glFinishRoundTrip() local 84 ctx->glFinish(); in s_glFinishRoundTrip() 90 GLDecoder *ctx = (GLDecoder *)self; in s_glVertexPointerOffset() local 91 ctx->glVertexPointer(size, type, stride, (void *)offset); in s_glVertexPointerOffset() 96 GLDecoder *ctx = (GLDecoder *)self; in s_glColorPointerOffset() local 97 ctx->glColorPointer(size, type, stride, (void *)offset); in s_glColorPointerOffset() 102 GLDecoder *ctx = (GLDecoder *)self; in s_glTexCoordPointerOffset() local 103 ctx->glTexCoordPointer(size, type, stride, (void *) offset); in s_glTexCoordPointerOffset() 108 GLDecoder *ctx = (GLDecoder *)self; in s_glNormalPointerOffset() local 109 ctx->glNormalPointer(type, stride, (void *)offset); in s_glNormalPointerOffset() [all …]
|
/development/tools/emulator/opengl/host/libs/Translator/GLES_V2/ |
D | GLESv2Imp.cpp | 39 static void initContext(GLEScontext* ctx,ShareGroupPtr grp); 40 static void deleteGLESContext(GLEScontext* ctx); 41 static void setShareGroup(GLEScontext* ctx,ShareGroupPtr grp); 68 static void initContext(GLEScontext* ctx,ShareGroupPtr grp) { in initContext() argument 69 if (!ctx->isInitialized()) { in initContext() 70 ctx->setShareGroup(grp); in initContext() 71 ctx->init(); in initContext() 80 static void deleteGLESContext(GLEScontext* ctx) { in deleteGLESContext() argument 81 delete ctx; in deleteGLESContext() 84 static void setShareGroup(GLEScontext* ctx,ShareGroupPtr grp) { in setShareGroup() argument [all …]
|
D | GLESv2Validate.cpp | 140 bool GLESv2Validate::arrayIndex(GLEScontext * ctx,GLuint index) { in arrayIndex() argument 141 return index < (GLuint)ctx->getCaps()->maxVertexAttribs; in arrayIndex() 144 bool GLESv2Validate::pixelType(GLEScontext * ctx,GLenum type) { in pixelType() argument 148 return GLESvalidate::pixelType(ctx, type); in pixelType() 151 bool GLESv2Validate::pixelFrmt(GLEScontext* ctx,GLenum format) { in pixelFrmt() argument 155 return GLESvalidate::pixelFrmt(ctx, format); in pixelFrmt()
|
D | GLESv2Validate.h | 35 static bool arrayIndex(GLEScontext * ctx,GLuint index); 36 static bool pixelType(GLEScontext * ctx,GLenum type); 37 static bool pixelFrmt(GLEScontext* ctx,GLenum format);
|
/development/tools/emulator/opengl/host/libs/Translator/GLES_CM/ |
D | GLEScmImp.cpp | 42 static void initContext(GLEScontext* ctx,ShareGroupPtr grp); 43 static void deleteGLESContext(GLEScontext* ctx); 44 static void setShareGroup(GLEScontext* ctx,ShareGroupPtr grp); 71 static void initContext(GLEScontext* ctx,ShareGroupPtr grp) { in initContext() argument 72 if (!ctx->isInitialized()) { in initContext() 73 ctx->setShareGroup(grp); in initContext() 74 ctx->init(); in initContext() 84 static void deleteGLESContext(GLEScontext* ctx) { in deleteGLESContext() argument 85 if(ctx) delete ctx; in deleteGLESContext() 88 static void setShareGroup(GLEScontext* ctx,ShareGroupPtr grp) { in setShareGroup() argument [all …]
|
/development/tools/emulator/opengl/host/libs/Translator/include/GLcommon/ |
D | GLESmacros.h | 6 GLEScontext *ctx = s_eglIface->getGLESContext(); \ 10 GLEScmContext *ctx = static_cast<GLEScmContext *>(s_eglIface->getGLESContext()); \ 11 if(!ctx) return; 15 GLESv2Context *ctx = static_cast<GLESv2Context *>(s_eglIface->getGLESContext()); \ 16 if(!ctx) return; 20 GLEScontext *ctx = s_eglIface->getGLESContext(); \ 21 if(!ctx) return failure_ret; 25 GLEScmContext *ctx = static_cast<GLEScmContext *>(s_eglIface->getGLESContext()); \ 26 if(!ctx) return failure_ret; 30 GLESv2Context *ctx = static_cast<GLESv2Context *>(s_eglIface->getGLESContext()); \ [all …]
|
/development/tools/yuv420sp2rgb/ |
D | yuv420sp2rgb.c | 46 rgb_context *ctx); 62 rgb_context ctx; in color_convert_common() local 64 ctx.buffer = buffer; in color_convert_common() 65 ctx.size = size; /* debug */ in color_convert_common() 66 ctx.width = width; in color_convert_common() 67 ctx.height = height; in color_convert_common() 68 ctx.rotate = rotate; in color_convert_common() 74 ctx.i = i; in color_convert_common() 75 ctx.j = j; in color_convert_common() 76 cb(nB, nB, nB, &ctx); in color_convert_common() [all …]
|
/development/tools/emulator/opengl/host/libs/GLESv2_dec/ |
D | GL2Decoder.cpp | 20 GL2Decoder *ctx = (GL2Decoder *) userData; in s_getProc() local 22 if (ctx == NULL || ctx->m_GL2library == NULL) { in s_getProc() 31 func = (void *) ctx->m_GL2library->findSymbol(name); in s_getProc() 68 GL2Decoder *ctx = (GL2Decoder *)self; in s_glFinishRoundTrip() local 69 ctx->glFinish(); in s_glFinishRoundTrip() 75 GL2Decoder *ctx = (GL2Decoder *) self; in s_glGetCompressedTextureFormats() local 78 ctx->glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &nFormats); in s_glGetCompressedTextureFormats() 82 ctx->glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, formats); in s_glGetCompressedTextureFormats() 89 GL2Decoder *ctx = (GL2Decoder *) self; in s_glVertexAttribPointerData() local 90 if (ctx->m_contextData != NULL) { in s_glVertexAttribPointerData() [all …]
|
/development/tools/emulator/opengl/host/libs/Translator/GLcommon/ |
D | FramebufferData.cpp | 127 void FramebufferData::validate(GLEScontext* ctx) in validate() argument 140 …ctx->dispatcher().glGetFramebufferAttachmentParameterivEXT(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT_OES… in validate() 143 …ctx->dispatcher().glGetFramebufferAttachmentParameterivEXT(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT_OES… in validate() 147 …ctx->dispatcher().glGetFramebufferAttachmentParameterivEXT(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT_O… in validate() 150 …ctx->dispatcher().glGetFramebufferAttachmentParameterivEXT(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT_O… in validate() 166 ctx->dispatcher().glGetIntegerv(GL_RENDERBUFFER_BINDING, &prev); in validate() 167 ctx->dispatcher().glBindRenderbufferEXT(GL_RENDERBUFFER, name); in validate() 168 … ctx->dispatcher().glGetRenderbufferParameterivEXT(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &width); in validate() 169 …ctx->dispatcher().glGetRenderbufferParameterivEXT(GL_RENDERBUFFER, GL_RENDERBUFFER_HEIGHT, &height… in validate() 170 ctx->dispatcher().glBindRenderbufferEXT(GL_RENDERBUFFER, prev); in validate() [all …]
|
D | GLESvalidate.cpp | 13 bool GLESvalidate::pixelType(GLEScontext * ctx, GLenum type) { in pixelType() argument 14 if ((ctx && ctx->getCaps()->GL_EXT_PACKED_DEPTH_STENCIL) && in pixelType() 18 if (ctx && in pixelType() 19 (ctx->getCaps()->GL_ARB_HALF_FLOAT_PIXEL || ctx->getCaps()->GL_NV_HALF_FLOAT) && in pixelType() 45 bool GLESvalidate::pixelFrmt(GLEScontext* ctx ,GLenum format) { in pixelFrmt() argument 46 if (ctx && ctx->getCaps()->GL_EXT_TEXTURE_FORMAT_BGRA8888 && format == GL_BGRA_EXT) in pixelFrmt() 48 if (ctx && ctx->getCaps()->GL_EXT_PACKED_DEPTH_STENCIL && format == GL_DEPTH_STENCIL_OES) in pixelFrmt()
|
/development/tools/emulator/opengl/tests/gles_android_wrapper/ |
D | glesv2_emul_ifc.cpp | 12 gl2_wrapper_context_t *ctx = new gl2_wrapper_context_t; in createFromLib() local 13 if (ctx == NULL) { in createFromLib() 17 ctx->initDispatchByName(ApiInitializer::s_getProc, initializer); in createFromLib() 20 return ctx; in createFromLib()
|
D | glesv1_emul_ifc.cpp | 12 gl_wrapper_context_t *ctx = new gl_wrapper_context_t; in createFromLib() local 13 if (ctx == NULL) { in createFromLib() 17 ctx->initDispatchByName(ApiInitializer::s_getProc, initializer); in createFromLib() 20 return ctx; in createFromLib()
|
/development/tools/emulator/opengl/host/libs/Translator/EGL/ |
D | MacNative.m | 89 EmuGLContext* ctx = (EmuGLContext *)context; 91 if(ctx == nil){ 95 [ctx preBind:1]; 96 [ctx setPixelBuffer:pbuff cubeMapFace:0 mipMapLevel:level currentVirtualScreen:0]; 97 [ctx makeCurrentContext]; 103 EmuGLContext* ctx = (EmuGLContext *)context; 105 if(ctx == nil){ 108 [ctx preBind:0]; 109 [ctx setView: win]; 110 [ctx makeCurrentContext]; [all …]
|
D | EglValidate.cpp | 66 bool EglValidate::releaseContext(EGLContext ctx,EGLSurface s1,EGLSurface s2) { in releaseContext() argument 67 return (ctx == EGL_NO_CONTEXT) && in releaseContext() 72 bool EglValidate::badContextMatch(EGLContext ctx,EGLSurface s1,EGLSurface s2) { in badContextMatch() argument 73 return ctx != EGL_NO_CONTEXT ? (s1 == EGL_NO_SURFACE || s2 == EGL_NO_SURFACE): in badContextMatch()
|
D | EglDisplay.h | 54 EGLContext addContext(ContextPtr ctx ); 55 ContextPtr getContext(EGLContext ctx); 56 bool removeContext(EGLContext ctx); 57 bool removeContext(ContextPtr ctx);
|
D | EglValidate.h | 26 static bool releaseContext(EGLContext ctx,EGLSurface s1,EGLSurface s2); 27 static bool badContextMatch(EGLContext ctx,EGLSurface s1,EGLSurface s2);
|
/development/tools/emulator/opengl/tests/ut_renderer/ |
D | RendererContext.cpp | 22 EGLContext ctx; in create() local 28 ctx = eglCreateContext(dpy, config, shared, context_attributes); in create() 31 return new RendererContext(dpy, ctx, version); in create()
|
D | Renderer.h | 44 …int createContext(RenderingThread *thread, const ClientHandle & ctx, const ClientHandle shareCtx, … 45 int destroyContext(RenderingThread *thread,const ClientHandle & ctx); 47 … const ClientHandle & drawSurface, const ClientHandle & readSurface, const ClientHandle & ctx);
|
/development/tools/emulator/opengl/system/GLESv2/ |
D | gl2.cpp | 12 #define GET_CONTEXT gl2_client_context_t * ctx = getEGLThreadInfo()->hostConn->gl2Encoder(); 103 ctx->set_glEGLImageTargetTexture2DOES(glEGLImageTargetTexture2DOES); in init() 104 ctx->set_glEGLImageTargetRenderbufferStorageOES(glEGLImageTargetRenderbufferStorageOES); in init() 105 ctx->set_glGetString(my_glGetString); in init()
|
/development/tools/emulator/opengl/system/GLESv1/ |
D | gl.cpp | 13 #define GET_CONTEXT gl_client_context_t * ctx = getEGLThreadInfo()->hostConn->glEncoder(); 103 ctx->set_glEGLImageTargetTexture2DOES(glEGLImageTargetTexture2DOES); in init() 104 ctx->set_glEGLImageTargetRenderbufferStorageOES(glEGLImageTargetRenderbufferStorageOES); in init() 105 ctx->set_glGetString(my_glGetString); in init()
|
/development/tools/glesv2debugger/src/com/android/glesv2debugger/ |
D | GLServerShader.java | 151 for (Context ctx : context.shares) { in getShader() 152 GLShader shader = ctx.serverShader.shaders.get(name); in getShader() 163 for (Context ctx : context.shares) { in getProgram() 164 GLProgram program = ctx.serverShader.programs.get(name); in getProgram() 202 for (Context ctx : context.shares) in glDeleteProgram() 203 if (ctx.serverShader.current == program) in glDeleteProgram() 253 for (Context ctx : context.shares) in glUseProgram() 254 if (ctx.serverShader.current == oldCurrent) in glUseProgram()
|