/external/skia/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 39 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms() 50 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i() 62 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv() 71 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f() 87 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv() 96 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i() 108 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv() 117 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f() 129 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v)); in set2fv() 138 GR_GL_CALL(fGpu->glInterface(), Uniform3i(uni.fLocation, i0, i1, i2)); in set3i() [all …]
|
D | GrGLVertexArray.cpp | 117 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set() 126 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, in set() 139 GR_GL_CALL(gpu->glInterface(), VertexAttribDivisor(index, divisor)); in set() 151 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(i)); in enableVertexArrays() 156 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in enableVertexArrays() 168 GR_GL_CALL(gpu->glInterface(), Enable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays() 170 GR_GL_CALL(gpu->glInterface(), Disable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays() 201 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, 0)); in bindWithIndexBuffer() 206 GR_GL_CALL(gpu->glInterface(), in bindWithIndexBuffer()
|
D | GrGLRenderTarget.cpp | 19 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X) 142 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 145 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 151 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 155 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 159 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
|
D | GrGLUtil.h | 175 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 181 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 187 GR_GL_CALL(gl, GetInternalformativ(t, f, n, s, p)); \ 193 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \ 199 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 205 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 213 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \ 281 #define GR_GL_CALL(IFACE, X) \ macro
|
D | GrGLAttachment.cpp | 17 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
|
/external/skqp/src/gpu/gl/ |
D | GrGLProgramDataManager.cpp | 59 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms() 69 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i() 81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv() 90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f() 106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv() 115 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i() 127 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv() 136 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f() 148 GR_GL_CALL(fGpu->glInterface(), Uniform2fv(uni.fLocation, arrayCount, v)); in set2fv() 157 GR_GL_CALL(fGpu->glInterface(), Uniform3i(uni.fLocation, i0, i1, i2)); in set3i() [all …]
|
D | GrGLVertexArray.cpp | 101 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set() 110 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, in set() 124 GR_GL_CALL(gpu->glInterface(), VertexAttribDivisor(index, divisor)); in set() 136 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(i)); in enableVertexArrays() 141 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in enableVertexArrays() 153 GR_GL_CALL(gpu->glInterface(), Enable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays() 155 GR_GL_CALL(gpu->glInterface(), Disable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays() 184 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, 0)); in bindWithIndexBuffer() 187 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, in bindWithIndexBuffer()
|
D | GrGLUtil.h | 121 GR_GL_CALL(gl, GetIntegerv(e, p)); \ 127 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \ 133 GR_GL_CALL(gl, GetInternalformativ(t, f, n, s, p)); \ 139 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \ 145 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \ 151 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \ 159 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \ 229 #define GR_GL_CALL(IFACE, X) \ macro
|
D | GrGLPath.cpp | 187 GR_GL_CALL(gpu->glInterface(), in init_path_object_for_general_path() 246 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], in InitPathObjectPathData() 257 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke() 259 GR_GL_CALL(gpu->glInterface(), in InitPathObjectStroke() 262 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_JOIN_STYLE, join)); in InitPathObjectStroke() 264 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_END_CAPS, cap)); in InitPathObjectStroke() 265 GR_GL_CALL(gpu->glInterface(), PathParameterf(pathID, GR_GL_PATH_STROKE_BOUND, 0.02f)); in InitPathObjectStroke() 269 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, 0, nullptr, 0, GR_GL_FLOAT, nullptr)); in InitPathObjectEmptyPath()
|
D | GrGLRenderTarget.cpp | 18 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X) 117 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 120 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 139 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 143 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment() 147 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
|
D | GrGLIRect.h | 41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport() 45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
|
D | GrGLGpu.cpp | 41 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) 52 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call) 236 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(kNumSamplers, fSamplers)); in ~SamplerObjectCache() 243 GR_GL_CALL(fGpu->glInterface(), GenSamplers(1, &s)); in bindSampler() 252 GR_GL_CALL(fGpu->glInterface(), in bindSampler() 254 GR_GL_CALL(fGpu->glInterface(), in bindSampler() 256 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_S, wrapX)); in bindSampler() 257 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_T, wrapY)); in bindSampler() 260 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler() 281 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(kNumSamplers, fSamplers)); in release() [all …]
|
D | GrGLStencilAttachment.cpp | 25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
|
/external/skia/src/gpu/gl/builders/ |
D | GrGLShaderStringBuilder.cpp | 71 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &source, &sourceLength)); in GrGLCompileAndAttachShader() 74 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader() 81 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader() 85 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader() 91 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader() 94 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader() 103 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
|
D | GrGLProgramBuilder.cpp | 34 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X) 39 GR_GL_CALL(gpu->glInterface(), DeleteShader(shaderIDs[i])); in cleanup_shaders() 45 GR_GL_CALL(gpu->glInterface(), DeleteProgram(programID)); in cleanup_program() 611 GR_GL_CALL(glGpu->glInterface(), BindAttribLocation(programID, i, in PrecompileProgram() 617 GR_GL_CALL(glGpu->glInterface(), in PrecompileProgram() 622 GR_GL_CALL(glGpu->glInterface(), in PrecompileProgram() 627 GR_GL_CALL(glGpu->glInterface(), LinkProgram(programID)); in PrecompileProgram() 629 GR_GL_CALL(glGpu->glInterface(), GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in PrecompileProgram()
|
/external/skqp/src/gpu/gl/builders/ |
D | GrGLShaderStringBuilder.cpp | 17 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X) 128 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &glsl, &glslLength)); in GrGLCompileAndAttachShader() 131 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader() 140 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader() 146 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader() 152 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader() 160 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader() 174 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
|
/external/skqp/gm/ |
D | rectangletexture.cpp | 93 GR_GL_CALL(gl, GenTextures(1, &id)); in createRectangleTextureImg() 94 GR_GL_CALL(gl, BindTexture(kTarget, id)); in createRectangleTextureImg() 95 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST)); in createRectangleTextureImg() 96 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST)); in createRectangleTextureImg() 97 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE)); in createRectangleTextureImg() 98 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE)); in createRectangleTextureImg() 107 GR_GL_CALL(gl, TexImage2D(kTarget, 0, GR_GL_RGBA, width, height, 0, format, in createRectangleTextureImg() 122 GR_GL_CALL(gl, DeleteTextures(1, &id)); in createRectangleTextureImg()
|
/external/skia/tests/ |
D | EGLImageTest.cpp | 41 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); in cleanup() 120 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 129 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 130 GR_GL_CALL(glCtx1->gl(), BindTexture(texInfo.fTarget, texInfo.fID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 131 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(texInfo.fTarget, 0, 0, 0, kSize, kSize, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 133 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
/external/skqp/tests/ |
D | EGLImageTest.cpp | 44 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); in cleanup() 124 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 133 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 134 GR_GL_CALL(glCtx1->gl(), BindTexture(texInfo.fTarget, texInfo.fID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 135 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(texInfo.fTarget, 0, 0, 0, kSize, kSize, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 137 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | RectangleTextureTest.cpp | 143 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 175 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
/external/skqp/tools/gpu/gl/ |
D | GLTestContext.cpp | 307 GR_GL_CALL(fGL.get(), Flush()); in submit() 313 GR_GL_CALL(fGL.get(), Finish()); in finish() 333 GR_GL_CALL(fGL.get(), GenTextures(1, &id)); in createTextureRectangle() 334 GR_GL_CALL(fGL.get(), BindTexture(GR_GL_TEXTURE_RECTANGLE, id)); in createTextureRectangle() 335 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MAG_FILTER, in createTextureRectangle() 337 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_MIN_FILTER, in createTextureRectangle() 339 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_S, in createTextureRectangle() 341 GR_GL_CALL(fGL.get(), TexParameteri(GR_GL_TEXTURE_RECTANGLE, GR_GL_TEXTURE_WRAP_T, in createTextureRectangle() 343 GR_GL_CALL(fGL.get(), TexImage2D(GR_GL_TEXTURE_RECTANGLE, 0, internalFormat, width, height, 0, in createTextureRectangle()
|
/external/skqp/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 292 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); in destroyEGLImage() 307 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture() 311 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture() 313 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture() 318 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
|
/external/skqp/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 255 GR_GL_CALL(this->gl(), EGLDestroyImage(fDisplay, image)); in destroyEGLImage() 271 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture() 277 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture() 282 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
|
/external/skia/tools/gpu/gl/angle/ |
D | GLTestContext_angle.cpp | 392 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture() 396 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture() 398 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture() 403 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
|
/external/skia/tools/gpu/gl/egl/ |
D | CreatePlatformGLTestContext_egl.cpp | 390 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture() 396 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture() 401 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
|