Home
last modified time | relevance | path

Searched refs:GR_GL_CALL (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/bench/
DGLBench.cpp67 GR_GL_CALL(gl, ShaderSource(shader, 1, &shaderSrc, nullptr)); in CompileShader()
70 GR_GL_CALL(gl, CompileShader(shader)); in CompileShader()
75 GR_GL_CALL(gl, GetShaderiv(shader, GR_GL_COMPILE_STATUS, &success)); in CompileShader()
77 GR_GL_CALL(gl, GetShaderInfoLog(shader, 512, nullptr, infoLog)); in CompileShader()
91 GR_GL_CALL(gl, AttachShader(shaderProgram, vertexShader)); in CreateProgram()
92 GR_GL_CALL(gl, AttachShader(shaderProgram, fragmentShader)); in CreateProgram()
93 GR_GL_CALL(gl, LinkProgram(shaderProgram)); in CreateProgram()
98 GR_GL_CALL(gl, GetProgramiv(shaderProgram, GR_GL_LINK_STATUS, &success)); in CreateProgram()
100 GR_GL_CALL(gl, GetProgramInfoLog(shaderProgram, 512, nullptr, infoLog)); in CreateProgram()
103 GR_GL_CALL(gl, DeleteShader(vertexShader)); in CreateProgram()
[all …]
DGLInstancedArraysBench.cpp203 GR_GL_CALL(gl, GenBuffers(1, &posVBO)); in setupInstanceVbo()
204 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, posVBO)); in setupInstanceVbo()
205 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(positions), positions, GR_GL_STATIC_DRAW)); in setupInstanceVbo()
206 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in setupInstanceVbo()
207 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, 2 * sizeof(GrGLfloat), in setupInstanceVbo()
212 GR_GL_CALL(gl, GenBuffers(1, &instanceVBO)); in setupInstanceVbo()
213 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, instanceVBO)); in setupInstanceVbo()
214 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW)); in setupInstanceVbo()
215 GR_GL_CALL(gl, EnableVertexAttribArray(1)); in setupInstanceVbo()
216 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, 3 * sizeof(GrGLfloat), in setupInstanceVbo()
[all …]
DGLVertexAttributesBench.cpp200 GR_GL_CALL(gl, GenBuffers(1, &fVBO)); in setup()
204 GR_GL_CALL(gl, ClearColor(0.03f, 0.03f, 0.03f, 1.0f)); in setup()
205 GR_GL_CALL(gl, Clear(GR_GL_COLOR_BUFFER_BIT)); in setup()
208 GR_GL_CALL(gl, UseProgram(fProgram)); in setup()
215 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVBO)); in glDraw()
216 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in glDraw()
217 GR_GL_CALL(gl, VertexAttribPointer(0, 4, GR_GL_FLOAT, GR_GL_FALSE, (GrGLsizei)fStride, in glDraw()
223 GR_GL_CALL(gl, EnableVertexAttribArray(attribId)); in glDraw()
224 GR_GL_CALL(gl, VertexAttribPointer(attribId, 4, GR_GL_FLOAT, GR_GL_FALSE, in glDraw()
229 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, fVertices.count(), fVertices.begin(), in glDraw()
[all …]
DGLVec4ScalarBench.cpp236 GR_GL_CALL(gl, GenBuffers(1, &fVboId)); in setupSingleVbo()
237 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, fVboId)); in setupSingleVbo()
238 GR_GL_CALL(gl, EnableVertexAttribArray(0)); in setupSingleVbo()
239 GR_GL_CALL(gl, EnableVertexAttribArray(1)); in setupSingleVbo()
240 GR_GL_CALL(gl, VertexAttribPointer(0, 2, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), in setupSingleVbo()
242 GR_GL_CALL(gl, VertexAttribPointer(1, 3, GR_GL_FLOAT, GR_GL_FALSE, sizeof(Vertex), in setupSingleVbo()
244 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(vertices), vertices, GR_GL_STATIC_DRAW)); in setupSingleVbo()
263 GR_GL_CALL(gl, UseProgram(fProgram)); in setup()
270 GR_GL_CALL(gl, DrawArrays(GR_GL_TRIANGLES, 0, kVerticesPerTri * kNumTriPerDraw)); in glDraw()
283 GR_GL_CALL(gl, BindBuffer(GR_GL_ARRAY_BUFFER, 0)); in teardown()
[all …]
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp74 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fFSLocation, texUnit)); in setSampler()
77 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fVSLocation, texUnit)); in setSampler()
87 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fFSLocation, v0)); in set1f()
90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fVSLocation, v0)); in set1f()
106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fFSLocation, arrayCount, v)); in set1fv()
109 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fVSLocation, arrayCount, v)); in set1fv()
119 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fFSLocation, v0, v1)); in set2f()
122 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fVSLocation, v0, v1)); in set2f()
135 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fFSLocation, arrayCount, v)); in set2fv()
138 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fVSLocation, arrayCount, v)); in set2fv()
[all …]
DGrGLUtil.h75 GR_GL_CALL(gl, GetIntegerv(e, p)); \
81 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \
87 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \
93 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \
99 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \
107 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \
183 #define GR_GL_CALL(IFACE, X) \ macro
DSkGLContext.cpp173 GR_GL_CALL(fGL, GenTextures(1, &id)); in createTextureRectangle()
174 GR_GL_CALL(fGL, BindTexture(GR_GL_TEXTURE_RECTANGLE, id)); in createTextureRectangle()
175 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MAG_FILTER, in createTextureRectangle()
177 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MIN_FILTER, in createTextureRectangle()
179 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_S, in createTextureRectangle()
181 GR_GL_CALL(fGL, TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_T, in createTextureRectangle()
183 GR_GL_CALL(fGL, TexImage2D(GR_GL_TEXTURE_RECTANGLE, 0, internalFormat, width, height, 0, in createTextureRectangle()
DGrGLRenderTarget.cpp16 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
80 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
83 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
98 GR_GL_CALL(interface, BindFramebuffer(GR_GL_FRAMEBUFFER, this->renderFBOID())); in completeStencilAttachment()
99 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
103 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
107 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
DGrGLVertexArray.cpp48 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(index)); in set()
61 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set()
70 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, in set()
89 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in disableUnusedArrays()
121 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, ibufferID)); in bindWithIndexBuffer()
DGrGLPath.cpp178 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], in init_path_object_for_general_path()
235 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], in InitPathObjectPathData()
248 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke()
250 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke()
253 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_JOIN_STYLE, join)); in InitPathObjectStroke()
255 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_END_CAPS, cap)); in InitPathObjectStroke()
256 GR_GL_CALL(gpu->glInterface(), PathParameterf(pathID, GR_GL_PATH_STROKE_BOUND, 0.02f)); in InitPathObjectStroke()
260 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, 0, nullptr, 0, GR_GL_FLOAT, nullptr)); in InitPathObjectEmptyPath()
DGrGLIRect.h27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport()
31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
DGrGLStencilAttachment.cpp25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
DGrGLGpu.h453 GR_GL_CALL(gpu->glInterface(), BindVertexArray(arrayID)); in setVertexArrayID()
481 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ARRAY_BUFFER, id)); in setVertexBufferID()
495 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, id)); in setIndexBufferIDOnDefaultVertexArray()
DGrGLTexture.cpp13 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
DGrGLUniformHandler.cpp14 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
DGrGLBufferImpl.cpp11 #define GL_CALL(GPU, X) GR_GL_CALL(GPU->glInterface(), X)
DGrGLGpu.cpp27 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
38 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call)
1901 GR_GL_CALL(this->glInterface(), BindBuffer(type, id)); in bindBuffer()
2792 GR_GL_CALL(gl, StencilFunc(glFunc, ref, mask)); in set_gl_stencil()
2793 GR_GL_CALL(gl, StencilMask(writeMask)); in set_gl_stencil()
2794 GR_GL_CALL(gl, StencilOp(glFailOp, GR_GL_KEEP, glPassOp)); in set_gl_stencil()
2796 GR_GL_CALL(gl, StencilFuncSeparate(glFace, glFunc, ref, mask)); in set_gl_stencil()
2797 GR_GL_CALL(gl, StencilMaskSeparate(glFace, writeMask)); in set_gl_stencil()
2798 GR_GL_CALL(gl, StencilOpSeparate(glFace, glFailOp, GR_GL_KEEP, glPassOp)); in set_gl_stencil()
3240 GR_GL_CALL(this->glInterface(), GenFramebuffers(1, tempFBOID)); in bindSurfaceFBOForCopy()
[all …]
DGrGLProgram.cpp23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
/external/skia/src/gpu/gl/builders/
DGrGLShaderStringBuilder.cpp14 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X)
39 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &sourceStr, &sourceLength)); in GrGLCompileAndAttachShader()
41 GR_GL_CALL(gli, ShaderSource(shaderId, count, strings, lengths)); in GrGLCompileAndAttachShader()
54 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader()
63 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader()
67 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader()
73 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader()
78 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader()
92 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
DGrGLProgramBuilder.cpp28 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
/external/skia/tests/
DTextureStorageAllocator.cpp30 GR_GL_CALL(allocator->m_gl, GenTextures(1, &id)); in allocateTextureStorage()
31 GR_GL_CALL(allocator->m_gl, BindTexture(target, id)); in allocateTextureStorage()
32 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST)); in allocateTextureStorage()
33 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST)); in allocateTextureStorage()
34 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE)); in allocateTextureStorage()
35 GR_GL_CALL(allocator->m_gl, TexParameteri(target, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE)); in allocateTextureStorage()
36 GR_GL_CALL(allocator->m_gl, TexImage2D(target, 0, GR_GL_RGBA, width, height, 0, GR_GL_RGBA, in allocateTextureStorage()
48 GR_GL_CALL(allocator->m_gl, DeleteTextures(1, &(info->fID))); in deallocateTextureStorage()
DEGLImageTest.cpp35 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); in cleanup()
149 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
150 GR_GL_CALL(glCtx1->gl(), BindTexture(backendTexture1->fTarget, backendTexture1->fID)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
151 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(backendTexture1->fTarget, 0, 0, 0, kSize, kSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
153 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp189 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
203 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/gm/
Drectangletexture.cpp90 GR_GL_CALL(gl, GenTextures(1, &id)); in createRectangleTextureImg()
91 GR_GL_CALL(gl, BindTexture(TARGET, id)); in createRectangleTextureImg()
92 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MAG_FILTER, in createRectangleTextureImg()
94 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_MIN_FILTER, in createRectangleTextureImg()
96 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_S, in createRectangleTextureImg()
98 GR_GL_CALL(gl, TexParameteri(TARGET, GR_GL_TEXTURE_WRAP_T, in createRectangleTextureImg()
100 GR_GL_CALL(gl, TexImage2D(TARGET, 0, GR_GL_RGBA, width, height, 0, in createRectangleTextureImg()
117 GR_GL_CALL(gl, DeleteTextures(1, &id)); in createRectangleTextureImg()
/external/skia/src/gpu/gl/angle/
DSkANGLEGLContext.cpp151 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); in destroyEGLImage()
165 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture()
169 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture()
171 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
176 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()

12