Home
last modified time | relevance | path

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

12

/third_party/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp39 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 …]
DGrGLVertexArray.cpp117 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()
205 GR_GL_CALL(gpu->glInterface(), in bindWithIndexBuffer()
DGrGLUtil.h237 GR_GL_CALL(gl, GetIntegerv(e, p)); \
243 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \
249 GR_GL_CALL(gl, GetInternalformativ(t, f, n, s, p)); \
255 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \
261 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \
267 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \
275 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \
346 #define GR_GL_CALL(IFACE, X) \ macro
DGrGLAttachment.cpp13 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X)
18 GR_GL_CALL(gpu->glInterface(), call); \
123 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
DGrGLGpu.cpp46 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
52 GR_GL_CALL(this->glInterface(), call); \
240 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(1, &sampler)); in ~SamplerObjectCache()
249 GR_GL_CALL(fGpu->glInterface(), GenSamplers(1, &s)); in bindSampler()
258 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
260 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
262 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_S, wrapX)); in bindSampler()
263 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_T, wrapY)); in bindSampler()
267 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler()
276 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, 0)); in unbindSampler()
[all …]
/third_party/flutter/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp59 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 …]
DGrGLVertexArray.cpp123 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set()
132 GR_GL_CALL(gpu->glInterface(), VertexAttribIPointer(index, in set()
145 GR_GL_CALL(gpu->glInterface(), VertexAttribDivisor(index, divisor)); in set()
157 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(i)); in enableVertexArrays()
162 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in enableVertexArrays()
174 GR_GL_CALL(gpu->glInterface(), Enable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays()
176 GR_GL_CALL(gpu->glInterface(), Disable(GR_GL_PRIMITIVE_RESTART_FIXED_INDEX)); in enableVertexArrays()
207 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, 0)); in bindWithIndexBuffer()
212 GR_GL_CALL(gpu->glInterface(), in bindWithIndexBuffer()
DGrGLUtil.h139 GR_GL_CALL(gl, GetIntegerv(e, p)); \
145 GR_GL_CALL(gl, GetFramebufferAttachmentParameteriv(t, a, pname, p)); \
151 GR_GL_CALL(gl, GetInternalformativ(t, f, n, s, p)); \
157 GR_GL_CALL(gl, GetNamedFramebufferAttachmentParameteriv(fb, a, pname, p)); \
163 GR_GL_CALL(gl, GetRenderbufferParameteriv(t, pname, p)); \
169 GR_GL_CALL(gl, GetTexLevelParameteriv(t, l, pname, p)); \
177 GR_GL_CALL(gl, GetShaderPrecisionFormat(st, pt, range, precision)); \
247 #define GR_GL_CALL(IFACE, X) \ macro
DGrGLPath.cpp187 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()
DGrGLRenderTarget.cpp18 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
115 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
118 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
137 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
141 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
145 GR_GL_CALL(interface, FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, in completeStencilAttachment()
DGrGLIRect.h41 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); in pushToGLViewport()
45 GR_GL_CALL(gl, Scissor(fLeft, fBottom, fWidth, fHeight)); in pushToGLScissor()
DGrGLGpu.cpp44 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
53 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call)
281 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(1, &sampler)); in ~SamplerObjectCache()
290 GR_GL_CALL(fGpu->glInterface(), GenSamplers(1, &s)); in bindSampler()
299 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
301 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
303 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_S, wrapX)); in bindSampler()
304 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_T, wrapY)); in bindSampler()
307 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler()
328 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(kNumSamplers, fSamplers)); in release()
[all …]
DGrGLStencilAttachment.cpp25 GR_GL_CALL(gl, DeleteRenderbuffers(1, &fRenderbufferID)); in onRelease()
DGrGLBuffer.cpp13 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
22 #define GL_ALLOC_CALL(iface, call) GR_GL_CALL(iface, call)
/third_party/skia/src/gpu/gl/builders/
DGrGLShaderStringBuilder.cpp72 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &source, &sourceLength)); in GrGLCompileAndAttachShader()
75 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader()
82 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader()
86 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader()
92 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader()
95 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader()
104 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
DGrGLProgramBuilder.cpp34 #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()
580 GR_GL_CALL(glGpu->glInterface(), BindAttribLocation(programID, i, in PrecompileProgram()
586 GR_GL_CALL(glGpu->glInterface(), in PrecompileProgram()
591 GR_GL_CALL(glGpu->glInterface(), in PrecompileProgram()
596 GR_GL_CALL(glGpu->glInterface(), LinkProgram(programID)); in PrecompileProgram()
598 GR_GL_CALL(glGpu->glInterface(), GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in PrecompileProgram()
/third_party/flutter/skia/src/gpu/gl/builders/
DGrGLShaderStringBuilder.cpp79 GR_GL_CALL(gli, ShaderSource(shaderId, 1, &source, &sourceLength)); in GrGLCompileAndAttachShader()
82 GR_GL_CALL(gli, CompileShader(shaderId)); in GrGLCompileAndAttachShader()
91 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_COMPILE_STATUS, &compiled)); in GrGLCompileAndAttachShader()
95 GR_GL_CALL(gli, GetShaderiv(shaderId, GR_GL_INFO_LOG_LENGTH, &infoLen)); in GrGLCompileAndAttachShader()
101 GR_GL_CALL(gli, GetShaderInfoLog(shaderId, infoLen+1, &length, (char*)log.get())); in GrGLCompileAndAttachShader()
104 GR_GL_CALL(gli, DeleteShader(shaderId)); in GrGLCompileAndAttachShader()
113 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
/third_party/flutter/skia/gm/
Drectangletexture.cpp102 GR_GL_CALL(gl, GenTextures(1, &id)); in createRectangleTextureImg()
103 GR_GL_CALL(gl, BindTexture(kTarget, id)); in createRectangleTextureImg()
104 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST)); in createRectangleTextureImg()
105 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST)); in createRectangleTextureImg()
106 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE)); in createRectangleTextureImg()
107 GR_GL_CALL(gl, TexParameteri(kTarget, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE)); in createRectangleTextureImg()
116 GR_GL_CALL(gl, TexImage2D(kTarget, 0, GR_GL_RGBA, width, height, 0, GR_GL_RGBA, in createRectangleTextureImg()
131 GR_GL_CALL(gl, DeleteTextures(1, &id)); in createRectangleTextureImg()
/third_party/flutter/skia/tests/
DEGLImageTest.cpp43 GR_GL_CALL(glctx0->gl(), DeleteTextures(1, &texID0)); in cleanup()
123 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
132 GR_GL_CALL(glCtx1->gl(), ActiveTexture(GR_GL_TEXTURE0)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 GR_GL_CALL(glCtx1->gl(), BindTexture(texInfo.fTarget, texInfo.fID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
134 GR_GL_CALL(glCtx1->gl(), TexSubImage2D(texInfo.fTarget, 0, 0, 0, kSize, kSize, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
136 GR_GL_CALL(glCtx1->gl(), Finish()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/tests/
DEGLImageTest.cpp41 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()
/third_party/flutter/skia/tools/gpu/gl/
DGLTestContext.cpp307 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()
/third_party/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp266 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture()
272 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
277 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
/third_party/flutter/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp385 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture()
389 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture()
391 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
396 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
/third_party/skia/tools/gpu/gl/angle/
DGLTestContext_angle.cpp396 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture()
400 GR_GL_CALL(this->gl(), BindTexture(GR_GL_TEXTURE_EXTERNAL, texID)); in eglImageToExternalTexture()
402 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
407 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
/third_party/flutter/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp278 GR_GL_CALL(this->gl(), GenTextures(1, &texID)); in eglImageToExternalTexture()
284 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()
289 GR_GL_CALL(this->gl(), DeleteTextures(1, &texID)); in eglImageToExternalTexture()

12