Home
last modified time | relevance | path

Searched refs:glInterface (Results 1 – 25 of 43) sorted by relevance

12

/external/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()
206 GR_GL_CALL(gpu->glInterface(), in bindWithIndexBuffer()
DGrGLBuffer.cpp14 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
15 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glGpu()->glInterface(), RET, X)
20 GR_GL_CALL(this->glGpu()->glInterface(), call); \
24 GR_GL_CALL_NOERRCHECK(this->glGpu()->glInterface(), call); \
DGrGLUniformHandler.cpp16 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
17 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->glGpu()->glInterface(), R, X)
DGrGLAttachment.cpp16 const GrGLInterface* gl = gpuGL->glInterface(); in onRelease()
DGrGLGpu.cpp45 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
46 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X)
51 GR_GL_CALL(this->glInterface(), call); \
55 GR_GL_CALL_NOERRCHECK(this->glInterface(), call); \
239 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(1, &sampler)); in ~SamplerObjectCache()
248 GR_GL_CALL(fGpu->glInterface(), GenSamplers(1, &s)); in bindSampler()
257 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
259 GR_GL_CALL(fGpu->glInterface(), in bindSampler()
261 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_S, wrapX)); in bindSampler()
262 GR_GL_CALL(fGpu->glInterface(), SamplerParameteri(s, GR_GL_TEXTURE_WRAP_T, wrapY)); in bindSampler()
[all …]
DGrGLProgram.cpp21 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
22 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
DGrGLRenderTarget.cpp19 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
129 const GrGLInterface* interface = gpu->glInterface(); in completeStencilAttachment()
DGrGLContext.h78 const GrGLInterface* glInterface() const { return fInterface.get(); } in glInterface() function
/external/skqp/src/gpu/gl/
DGrGLVertexArray.cpp101 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()
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 …]
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()
DGrGLBuffer.cpp13 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
14 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glGpu()->glInterface(), RET, X)
105 CLEAR_ERROR_BEFORE_ALLOC(gpu->glInterface()); in GrGLBuffer()
107 GL_ALLOC_CALL(gpu->glInterface(), BufferData(target, in GrGLBuffer()
111 if (CHECK_ALLOC_ERROR(gpu->glInterface()) != GR_GL_NO_ERROR) { in GrGLBuffer()
DGrGLPathRendering.cpp19 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
20 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->gpu()->glInterface(), RET, X)
57 const GrGLInterface* glInterface = gpu->glInterface(); in GrGLPathRendering() local
58 fCaps.bindFragmentInputSupport = (bool)glInterface->fFunctions.fBindFragmentInputLocation; in GrGLPathRendering()
DGrGLGpu.cpp41 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
42 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(this->glInterface(), RET, X)
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 …]
DGrGLProgram.cpp23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
DGrGLUniformHandler.cpp16 #define GL_CALL(X) GR_GL_CALL(this->glGpu()->glInterface(), X)
17 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->glGpu()->glInterface(), R, X)
DGrGLStencilAttachment.cpp24 const GrGLInterface* gl = gpuGL->glInterface(); in onRelease()
DGrGLRenderTarget.cpp18 #define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
114 const GrGLInterface* interface = gpu->glInterface(); in completeStencilAttachment()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp34 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
35 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X)
39 GR_GL_CALL(gpu->glInterface(), DeleteShader(shaderIDs[i])); in cleanup_shaders()
45 GR_GL_CALL(gpu->glInterface(), DeleteProgram(programID)); in cleanup_program()
281 GR_GL_CALL_NOERRCHECK(this->gpu()->glInterface(), in finalize()
557 const GrGLInterface* gl = glGpu->glInterface(); in PrecompileProgram()
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()
[all …]
/external/skqp/platform_tools/android/apps/skottie/src/main/cpp/
Dnative-lib.cpp65 sk_sp<const GrGLInterface> glInterface(GrGLCreateNativeInterface()); in Java_org_skia_skottie_SkottieRunner_nCreateProxy() local
66 if (!glInterface.get()) { in Java_org_skia_skottie_SkottieRunner_nCreateProxy()
73 sk_sp<GrContext> grContext = GrContext::MakeGL(std::move(glInterface), options); in Java_org_skia_skottie_SkottieRunner_nCreateProxy()
/external/skia/platform_tools/android/apps/skottie/skottielib/src/main/cpp/
Dnative-lib.cpp75 sk_sp<const GrGLInterface> glInterface = GrGLMakeNativeInterface(); in Java_org_skia_skottie_SkottieRunner_nCreateProxy() local
76 if (!glInterface.get()) { in Java_org_skia_skottie_SkottieRunner_nCreateProxy()
82 sk_sp<GrDirectContext> dContext = GrDirectContext::MakeGL(std::move(glInterface), options); in Java_org_skia_skottie_SkottieRunner_nCreateProxy()
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp29 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
30 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X)
256 GrGLClearErr(this->gpu()->glInterface()); in finalize()
257 GR_GL_CALL_NOERRCHECK(this->gpu()->glInterface(), in finalize()
260 if (GR_GL_GET_ERROR(this->gpu()->glInterface()) == GR_GL_NO_ERROR) { in finalize()
DGrGLShaderStringBuilder.cpp17 #define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X)
18 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(gpu->glInterface(), R, X)
/external/skia/src/gpu/
DGrDirectContext.cpp981 sk_sp<GrDirectContext> GrDirectContext::MakeGL(sk_sp<const GrGLInterface> glInterface) { in MakeGL() argument
983 return MakeGL(std::move(glInterface), defaultOptions); in MakeGL()
1024 sk_sp<GrDirectContext> GrDirectContext::MakeGL(sk_sp<const GrGLInterface> glInterface, in MakeGL() argument
1029 auto copy = sk_make_sp<GrGLInterface>(*glInterface); in MakeGL()
1031 make_get_error_with_random_oom(glInterface->fFunctions.fGetError); in MakeGL()
1036 glInterface = std::move(copy); in MakeGL()
1039 direct->fGpu = GrGLGpu::Make(std::move(glInterface), options, direct.get()); in MakeGL()

12