/external/skia/bench/ |
D | GLBench.cpp | 67 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 …]
|
D | GLInstancedArraysBench.cpp | 203 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 …]
|
D | GLVertexAttributesBench.cpp | 200 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 …]
|
D | GLVec4ScalarBench.cpp | 236 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/ |
D | GrGLProgramDataManager.cpp | 74 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 …]
|
D | GrGLUtil.h | 75 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
|
D | SkGLContext.cpp | 173 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()
|
D | GrGLRenderTarget.cpp | 16 #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()
|
D | GrGLVertexArray.cpp | 48 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()
|
D | GrGLPath.cpp | 178 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()
|
D | GrGLIRect.h | 27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport() 31 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
|
D | GrGLStencilAttachment.cpp | 25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
|
D | GrGLGpu.h | 453 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()
|
D | GrGLTexture.cpp | 13 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
|
D | GrGLUniformHandler.cpp | 14 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
|
D | GrGLBufferImpl.cpp | 11 #define GL_CALL(GPU, X) GR_GL_CALL(GPU->glInterface(), X)
|
D | GrGLGpu.cpp | 27 #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 …]
|
D | GrGLProgram.cpp | 23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
|
/external/skia/src/gpu/gl/builders/ |
D | GrGLShaderStringBuilder.cpp | 14 #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()
|
D | GrGLProgramBuilder.cpp | 28 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
|
/external/skia/tests/ |
D | TextureStorageAllocator.cpp | 30 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()
|
D | EGLImageTest.cpp | 35 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()
|
D | RectangleTextureTest.cpp | 189 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/ |
D | rectangletexture.cpp | 90 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/ |
D | SkANGLEGLContext.cpp | 151 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()
|