/external/chromium_org/third_party/angle/src/libGLESv2/ |
validationES2.h | 12 namespace gl namespace 17 bool ValidateES2TexImageParameters(gl::Context *context, GLenum target, GLint level, GLenum internalformat, bool isCompressed, bool isSubImage, 21 bool ValidateES2CopyTexImageParameters(gl::Context* context, GLenum target, GLint level, GLenum internalformat, bool isSubImage, 25 bool ValidateES2TexStorageParameters(gl::Context *context, GLenum target, GLsizei levels, GLenum internalformat, 28 bool ValidateES2FramebufferTextureParameters(gl::Context *context, GLenum target, GLenum attachment, 31 bool ValidES2ReadFormatType(gl::Context *context, GLenum format, GLenum type);
|
main.cpp | 16 namespace gl namespace 66 gl::AllocateCurrent(); 71 gl::DeallocateCurrent(); 76 gl::DeallocateCurrent(); 87 namespace gl namespace 127 gl::error(GL_OUT_OF_MEMORY); 148 gl::Context *context = glGetCurrentContext();
|
VertexArray.cpp | 13 namespace gl namespace 54 ASSERT(index < gl::MAX_VERTEX_ATTRIBS); 60 ASSERT(attributeIndex < gl::MAX_VERTEX_ATTRIBS); 64 void VertexArray::setAttributeState(unsigned int attributeIndex, gl::Buffer *boundBuffer, GLint size, GLenum type, 67 ASSERT(attributeIndex < gl::MAX_VERTEX_ATTRIBS);
|
/external/chromium_org/third_party/skia/src/gpu/gl/ |
GrGLIRect.h | 13 #include "gl/GrGLInterface.h" 17 * Helper struct for dealing with the fact that Ganesh and GL use different 26 void pushToGLViewport(const GrGLInterface* gl) const { 27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); 30 void pushToGLScissor(const GrGLInterface* gl) const { 31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); 34 void setFromGLViewport(const GrGLInterface* gl) { 36 GR_GL_GetIntegerv(gl, GR_GL_VIEWPORT, (GrGLint*) this); 40 // want to simultaneously make relative to GL's viewport
|
GrGLUtil.h | 11 #include "gl/GrGLInterface.h" 54 #define GR_GL_GetIntegerv(gl, e, p) \ 57 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 60 #define GR_GL_GetFramebufferAttachmentParameteriv(gl, t, a, pname, p) \ 63 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 66 #define GR_GL_GetRenderbufferParameteriv(gl, t, pname, p) \ 69 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 71 #define GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) \ 74 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 103 void GrGLCheckErr(const GrGLInterface* gl, [all...] |
/external/skia/src/gpu/gl/ |
GrGLIRect.h | 13 #include "gl/GrGLInterface.h" 17 * Helper struct for dealing with the fact that Ganesh and GL use different 26 void pushToGLViewport(const GrGLInterface* gl) const { 27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); 30 void pushToGLScissor(const GrGLInterface* gl) const { 31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); 34 void setFromGLViewport(const GrGLInterface* gl) { 36 GR_GL_GetIntegerv(gl, GR_GL_VIEWPORT, (GrGLint*) this); 40 // want to simultaneously make relative to GL's viewport
|
GrGLUtil.h | 11 #include "gl/GrGLInterface.h" 54 #define GR_GL_GetIntegerv(gl, e, p) \ 57 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 60 #define GR_GL_GetFramebufferAttachmentParameteriv(gl, t, a, pname, p) \ 63 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 66 #define GR_GL_GetRenderbufferParameteriv(gl, t, pname, p) \ 69 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 71 #define GR_GL_GetTexLevelParameteriv(gl, t, l, pname, p) \ 74 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 103 void GrGLCheckErr(const GrGLInterface* gl, [all...] |
/external/deqp/framework/opengl/ |
gluPixelTransfer.cpp | 51 const glw::Functions& gl = context.getFunctions(); local 60 gl.pixelStorei(GL_PACK_ALIGNMENT, getTransferAlignment(dst.getFormat())); 61 gl.readPixels(x, y, width, height, format.format, format.dataType, dst.getDataPtr()); 70 const glw::Functions& gl = context.getFunctions(); local 79 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat())); 80 gl.texImage2D(target, level, internalFormat, width, height, 0, format.format, format.dataType, src.getDataPtr()); 89 const glw::Functions& gl = context.getFunctions(); local 99 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat())); 100 gl.texImage3D(target, level, internalFormat, width, height, depth, 0, format.format, format.dataType, src.getDataPtr()); 109 const glw::Functions& gl = context.getFunctions() local 128 const glw::Functions& gl = context.getFunctions(); local [all...] |
/external/deqp/modules/gles31/functional/ |
es31fStencilTexturingTests.cpp | 137 const glw::Functions& gl = renderCtx.getFunctions(); local 145 gl.useProgram (program.getProgram()); 146 gl.viewport (0, 0, width, height); 147 gl.clear (GL_STENCIL_BUFFER_BIT); 148 gl.enable (GL_STENCIL_TEST); 149 gl.stencilOp (GL_KEEP, GL_KEEP, GL_INCR_WRAP); 150 gl.stencilFunc (GL_ALWAYS, 0, ~0u); 151 GLU_EXPECT_NO_ERROR(gl.getError(), "State setup failed"); 161 gl.disable(GL_STENCIL_TEST); 240 const glw::Functions& gl = renderCtx.getFunctions() local 305 const glw::Functions& gl = renderCtx.getFunctions(); local 364 const glw::Functions& gl = renderCtx.getFunctions(); local 524 const glw::Functions& gl = renderCtx.getFunctions(); local 579 const glw::Functions& gl = renderCtx.getFunctions(); local 665 const glw::Functions& gl = renderCtx.getFunctions(); local 754 const glw::Functions& gl = renderCtx.getFunctions(); local 811 const glw::Functions& gl = renderCtx.getFunctions(); local 885 const glw::Functions& gl = renderCtx.getFunctions(); local 944 const glw::Functions& gl = renderCtx.getFunctions(); local [all...] |
es31fMultisampleTests.cpp | 130 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog()); 133 gl.enableLogging(true); 139 gl.glGetMultisamplefv(GL_SAMPLE_POSITION, ndx, samplePos.getPtr()); 140 GLU_EXPECT_NO_ERROR(gl.glGetError(), "getMultisamplefv"); 246 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 255 gl.getIntegerv(GL_SAMPLES, &m_numSamples); 256 GLU_EXPECT_NO_ERROR(gl.getError(), "getIntegerv(GL_SAMPLES)"); 267 m_attrPositionLoc = gl.getAttribLocation(m_program->getProgram(), "a_position"); 268 m_attrColorLoc = gl.getAttribLocation(m_program->getProgram(), "a_color"); 269 GLU_EXPECT_NO_ERROR(gl.getError(), "getAttribLocation") 308 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 368 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 413 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 428 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 488 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 557 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 580 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 721 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 738 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 886 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 900 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
es31fTessellationGeometryInteractionTests.cpp | 187 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 189 gl.genBuffers(1, &m_patchBuffer); 190 gl.bindBuffer(GL_ARRAY_BUFFER, m_patchBuffer); 191 gl.bufferData(GL_ARRAY_BUFFER, sizeof(patchBufferData), patchBufferData, GL_STATIC_DRAW); 192 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buffer"); 209 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 225 gl.viewport(0, 0, RENDER_SIZE, RENDER_SIZE); 226 gl.clearColor(0.0f, 0.0f, 0.0f, 1.0f); 227 GLU_EXPECT_NO_ERROR(gl.getError(), "set viewport"); 229 gl.enable(GL_BLEND) 488 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 508 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local [all...] |
es31fIndirectComputeDispatchTests.cpp | 159 static int getResultBlockAlignedSize (const glw::Functions& gl) 163 gl.getIntegerv(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, &alignment); 184 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 201 gl.bindBuffer(GL_DISPATCH_INDIRECT_BUFFER, buffer); 202 gl.bufferData(GL_DISPATCH_INDIRECT_BUFFER, (glw::GLsizeiptr)data.size(), &data[0], GL_STATIC_DRAW); 241 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 248 gl.useProgram(program.getProgram()); 250 gl.bindBuffer(GL_DISPATCH_INDIRECT_BUFFER, buffer); 251 gl.bufferData(GL_DISPATCH_INDIRECT_BUFFER, (glw::GLsizeiptr)m_bufferSize, DE_NULL, GL_STATIC_DRAW); 252 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, buffer) 265 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 294 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 342 const glw::Functions& gl = renderCtx.getFunctions(); local [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
test_helper.cc | 19 #include "ui/gl/gl_mock.h" 63 ::gfx::MockGLInterface* gl, 104 EXPECT_CALL(*gl, GenTextures(array_size, _)) 109 EXPECT_CALL(*gl, BindTexture(target, texture_ids[ii])) 123 EXPECT_CALL(*gl, TexImage2D(faces[ii], 0, GL_RGBA, 1, 1, 0, GL_RGBA, 129 EXPECT_CALL(*gl, TexImage2D(target, 0, GL_RGBA, 1, 1, 0, GL_RGBA, 136 EXPECT_CALL(*gl, BindTexture(target, 0)) 142 ::gfx::MockGLInterface* gl, 148 gl, GL_TEXTURE_2D, use_default_textures); 150 gl, GL_TEXTURE_CUBE_MAP, use_default_textures) [all...] |
/development/samples/Compass/src/com/example/android/compass/ |
CompassActivity.java | 92 public void onDrawFrame(GL10 gl) { 99 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 105 gl.glMatrixMode(GL10.GL_MODELVIEW); 106 gl.glLoadIdentity(); 107 gl.glTranslatef(0, 0, -2); 117 gl.glMultMatrixf(mR, 0); 119 //gl.glMultMatrixf(mI, 0); 121 gl.glVertexPointer(3, GL_FLOAT, 0, mVertexBuffer); 122 gl.glColorPointer(4, GL_FLOAT, 0, mColorBuffer); 123 gl.glDrawElements(GL_LINES, 6, GL_UNSIGNED_BYTE, mIndexBuffer) [all...] |
/external/deqp/modules/gles3/stress/ |
es3sSpecialFloatTests.cpp | 264 const glw::Functions& gl = m_context.getRenderContext().getFunctions(); local 266 const GLint positionLoc = gl.getAttribLocation(patternProgram.getProgram(), "a_pos"); 284 gl.genTextures(1, &textureID); 285 gl.bindTexture(GL_TEXTURE_2D, textureID); 286 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, buffer[0].getPtr()); 287 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 288 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 291 gl.clearColor(0.0f, 0.0f, 0.0f, 1.0f); 292 gl.clear(GL_COLOR_BUFFER_BIT); 293 gl.viewport(0, 0, TEST_CANVAS_SIZE, TEST_CANVAS_SIZE) [all...] |
/external/chromium_org/third_party/skia/platform_tools/android/app/src/com/skia/ |
SkiaSampleRenderer.java | 29 public void onDrawFrame(GL10 gl) { 34 public void onSurfaceChanged(GL10 gl, int width, int height) { 39 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 40 if (gl instanceof GL11) { 42 ((GL11) gl).glGetIntegerv(GL11.GL_SAMPLES, value, 0); 50 gl.glClearStencil(0); 51 gl.glClear(GL10.GL_STENCIL_BUFFER_BIT);
|
/external/skia/platform_tools/android/app/src/com/skia/ |
SkiaSampleRenderer.java | 29 public void onDrawFrame(GL10 gl) { 34 public void onSurfaceChanged(GL10 gl, int width, int height) { 39 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 40 if (gl instanceof GL11) { 42 ((GL11) gl).glGetIntegerv(GL11.GL_SAMPLES, value, 0); 50 gl.glClearStencil(0); 51 gl.glClear(GL10.GL_STENCIL_BUFFER_BIT);
|
/external/chromium_org/content/renderer/gpu/ |
mailbox_output_surface.cc | 57 GLES2Interface* gl = context_provider_->ContextGL(); local 66 gl->WaitSyncPointCHROMIUM(current_backing_.sync_point); 71 gl->DeleteTextures(1, &texture.texture_id); 76 gl->GenTextures(1, ¤t_backing_.texture_id); 78 gl->BindTexture(GL_TEXTURE_2D, current_backing_.texture_id); 79 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 80 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 81 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); 82 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 83 gl->TexImage2D(GL_TEXTURE_2D 101 GLES2Interface* gl = context_provider_->ContextGL(); local 135 GLES2Interface* gl = context_provider_->ContextGL(); local [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
TextureLibrary.java | 82 public Texture loadTexture(Context context, GL10 gl, int resourceID) { 84 texture = loadBitmap(context, gl, texture); 89 public void loadAll(Context context, GL10 gl) { 92 loadBitmap(context, gl, mTextureHash[x]); 98 public void deleteAll(GL10 gl) { 105 gl.glDeleteTextures(1, mTextureNameWorkspace, 0); 106 int error = gl.glGetError(); 127 protected Texture loadBitmap(Context context, GL10 gl, Texture texture) { 128 assert gl != null; 132 gl.glGenTextures(1, mTextureNameWorkspace, 0) [all...] |
Grid.java | 205 public static void beginDrawing(GL10 gl, boolean useTexture) { 206 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 209 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); 210 gl.glEnable(GL10.GL_TEXTURE_2D); 212 gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); 213 gl.glDisable(GL10.GL_TEXTURE_2D); 217 public void beginDrawingStrips(GL10 gl, boolean useTexture) { 218 beginDrawing(gl, useTexture); 220 gl.glVertexPointer(3, mCoordinateType, 0, mVertexBuffer); 223 gl.glTexCoordPointer(2, mCoordinateType, 0, mTexCoordBuffer) [all...] |
/external/chromium_org/ui/aura/bench/ |
bench_main.cc | 37 #include "ui/gl/gl_surface.h" 142 gpu::gles2::GLES2Interface* gl = context_provider->ContextGL(); local 143 gl->WaitSyncPointCHROMIUM(sync_point); 144 gl->DeleteTextures(1, &texture); 145 gl->ShallowFlushCHROMIUM(); 184 gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL(); local 186 gl->GenTextures(1, &texture); 187 gl->BindTexture(GL_TEXTURE_2D, texture); 188 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 189 gl->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR) 224 gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL(); local 231 gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL(); variable [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d11/ |
Clear11.h | 14 namespace gl namespace 31 void clearFramebuffer(const gl::ClearParameters &clearParams, gl::Framebuffer *frameBuffer); 44 ID3D11BlendState *getBlendState(const gl::ClearParameters &clearParams, const std::vector<RenderTarget11*>& rts); 69 ID3D11DepthStencilState *getDepthStencilState(const gl::ClearParameters &clearParams);
|
/frameworks/native/opengl/tests/testViewport/src/com/android/test/ |
TestView.java | 48 import javax.microedition.khronos.opengles.GL; 186 public void createBufferObjects(GL gl) { 189 GL11 gl11 = (GL11) gl; 209 public void draw(GL10 gl) { 210 GL11 gl11 = (GL11) gl; 212 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 219 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); 230 public void onDrawFrame(GL10 gl) { 231 gl.glClearColor(0,0,1,1) [all...] |
/external/deqp/modules/gles3/functional/ |
es3fShaderFragDataTests.cpp | 149 const glw::Functions& gl = renderCtx.getFunctions(); local 188 gl.clearColor (1.0f, 0.0f, 0.0f, 1.0f); 189 gl.clear (GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); 191 gl.viewport (0, 0, viewportW, viewportH); 192 gl.useProgram (program.getProgram()); 193 gl.uniform1i (gl.getUniformLocation(program.getProgram(), "u_index"), 0); 197 GLU_EXPECT_NO_ERROR(gl.getError(), "Rendering failed"); 205 GLU_EXPECT_NO_ERROR(gl.getError(), "Reading pixels failed"); 248 const glw::Functions& gl = renderCtx.getFunctions() local [all...] |
/external/chromium_org/cc/resources/ |
resource_provider.cc | 44 IdAllocator(GLES2Interface* gl, size_t id_allocation_chunk_size) 45 : gl_(gl), 115 // TODO(kaanb): The GL pipeline assumes a 4-byte alignment for the 126 ScopedSetActiveTexture(GLES2Interface* gl, GLenum unit) 127 : gl_(gl), unit_(unit) { 147 TextureIdAllocator(GLES2Interface* gl, 149 : IdAllocator(gl, texture_id_allocation_chunk_size) {} 171 BufferIdAllocator(GLES2Interface* gl, size_t buffer_id_allocation_chunk_size) 172 : IdAllocator(gl, buffer_id_allocation_chunk_size) {} 196 QueryFence(gpu::gles2::GLES2Interface* gl, unsigned query_id 754 GLES2Interface* gl = ContextGL(); local 842 GLES2Interface* gl = ContextGL(); local 848 GLES2Interface* gl = ContextGL(); local 854 GLES2Interface* gl = ContextGL(); local 860 GLES2Interface* gl = ContextGL(); local 870 GLES2Interface* gl = ContextGL(); local 891 GLES2Interface* gl = ContextGL(); local 931 GLES2Interface* gl = ContextGL(); local 1023 GLES2Interface* gl = ContextGL(); local 1030 GLES2Interface* gl = ContextGL(); local 1037 GLES2Interface* gl = ContextGL(); local 1067 GLES2Interface* gl = ContextGL(); local 1291 GLES2Interface* gl = ContextGL(); local 1306 GLES2Interface* gl = ContextGL(); local 1382 GLES2Interface* gl = ContextGL(); local 1408 GLES2Interface* gl = ContextGL(); local 1510 GLES2Interface* gl = ContextGL(); local 1669 GLES2Interface* gl = ContextGL(); local 1814 GLES2Interface* gl = ContextGL(); local 1872 GLES2Interface* gl = ContextGL(); local 1894 GLES2Interface* gl = ContextGL(); local 1908 GLES2Interface* gl = ContextGL(); local 1949 GLES2Interface* gl = ContextGL(); local 1998 GLES2Interface* gl = ContextGL(); local 2016 GLES2Interface* gl = ContextGL(); local 2053 GLES2Interface* gl = ContextGL(); local 2091 GLES2Interface* gl = ContextGL(); local 2120 GLES2Interface* gl = ContextGL(); local 2149 GLES2Interface* gl = ContextGL(); local 2182 GLES2Interface* gl = ContextGL(); local 2201 GLES2Interface* gl = ContextGL(); local 2229 GLES2Interface* gl = ContextGL(); local [all...] |